Function at 0x10047260
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
mov eax, edx
mov dword [ebp - 0x18], eax
push edi
mov edi, ecx
mov dword [ebp - 8], edi
test eax, eax
je 0x10047570
mov dword [ebp - 0x14], 0xffff
cmp eax, 0xffff
jae 0x10047294
movzx eax, ax
mov dword [ebp - 0x14], eax
jmp 0x100472ba
cmp byte [eax], 0x23
jne 0x100472ba
inc eax
push eax
call fcn.100b790e
add esp, 4
cmp eax, 0xffff
jae 0x100472ba
test eax, eax
je 0x100472ba
movzx ecx, ax
movzx eax, cx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
test edi, edi
je 0x10047570
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x10047570
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi], 0x4550
jne 0x10047570
test eax, eax
jle 0x100472f7
cmp eax, 0x10000000
jae 0x100472f7
lea edx, [edi + 4]
add edx, eax
add eax, 0x18
add eax, edi
jmp 0x100472fc
mov edx, edi
lea eax, [edi + 0x14]
movzx ecx, word [eax]
sub ecx, 0x107
je 0x10047570
sub ecx, 4
je 0x10047332
sub ecx, 0x100
jne 0x10047570
xor edx, edx
mov dword [ebp - 0x10], edx
cmp dword [eax + 0x6c], edx
jbe 0x10047370
mov ecx, dword [eax + 0x70]
test ecx, ecx
je 0x10047370
mov edx, dword [eax + 0x74]
jmp 0x10047346
xor edx, edx
mov dword [ebp - 0x10], edx
cmp dword [eax + 0x5c], edx
jbe 0x10047370
mov ecx, dword [eax + 0x60]
test ecx, ecx
je 0x10047370
mov edx, dword [eax + 0x64]
test edx, edx
je 0x1004736e
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x10047360
lea ebx, [ecx + edi]
xor ecx, ecx
test eax, eax
cmove edx, ecx
mov dword [ebp - 0x10], edx
jmp 0x10047372
xor ecx, ecx
xor ebx, ebx
test eax, eax
cmove edx, ecx
mov dword [ebp - 0x10], edx
jmp 0x10047372
xor edx, edx
xor ebx, ebx
test ebx, ebx
je 0x10047570
test edx, edx
je 0x10047570
mov esi, dword [ebx + 0x14]
test esi, esi
je 0x10047570
cmp edx, 0x28
ja 0x100473ab
cmp esi, dword [ebx + 0x18]
mov eax, esi
cmovbe eax, dword [ebx + 0x18]
imul eax, eax, 0xff
sub eax, ebx
add eax, dword [ebx + 0x24]
add eax, edi
mov dword [ebp - 0x10], eax
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x20]
mov edx, dword [ebx + 0x24]
add eax, edi
mov dword [ebp - 0x20], eax
lea eax, [ecx + edi]
mov dword [ebp - 0x1c], eax
lea ecx, [edx + edi]
xor edx, edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
test esi, esi
je 0x10047570
movzx esi, word [ecx + edx*2]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x10047448
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx + edx*4]
add ecx, edi
add edi, eax
cmp edi, ebx
jbe 0x1004751e
mov eax, dword [ebp - 0x10]
add eax, ebx
cmp edi, eax
jae 0x1004751e
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10047401
sub ecx, edx
lea esi, [ecx + 1]
cmp esi, 0x100
jae 0x1004743f
push esi
lea eax, [ebp - 0x120]
push edi
push eax
call fcn.100b3840
add esp, 0xc
xor eax, eax
test esi, esi
je 0x1004743f
nop dword [eax]
cmp byte [ebp + eax - 0x120], 0x2e
je 0x1004745d
inc eax
cmp eax, esi
jb 0x10047430
mov edx, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
inc edx
mov dword [ebp - 4], edx
cmp edx, dword [ebx + 0x14]
jae 0x10047570
mov eax, dword [ebp - 0x1c]
jmp 0x100473d2
lea esi, [edi + 1]
mov byte [ebp + eax - 0x120], 0
add esi, eax
je 0x1004743f
cmp byte [esi], 0x23
jne 0x100474c5
lea eax, [esi + 1]
test eax, eax
je 0x1004743f
mov edi, dword [ebp - 0x14]
mov ecx, 0xffff
cmp di, cx
jae 0x1004743f
push eax
call fcn.100b790e
mov esi, eax
add esp, 4
cmp esi, 0xffff
ja 0x1004743f
test esi, esi
je 0x1004743f
movzx ecx, di
cmp esi, ecx
jne 0x1004743f
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 1
movzx edx, si
mov ecx, eax
call fcn.10047260
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x18]
mov ecx, esi
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100474f0
test dl, dl
je 0x100474ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100474f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x100474d0
xor eax, eax
jmp 0x100474f5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1004743f
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 1
mov edx, esi
mov ecx, eax
call fcn.10047260
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x18]
cmp eax, 0xffff
jbe 0x10047554
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10047548
test dl, dl
je 0x10047544
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10047548
add eax, 2
add ecx, 2
test dl, dl
jne 0x10047528
xor eax, eax
jmp 0x1004754d
sbb eax, eax
or eax, 1
test eax, eax
je 0x10047565
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
lea ecx, [esi + 1]
movzx eax, ax
cmp ecx, eax
jne 0x10047442
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4