Function at 0x46dc60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x502054]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x11c], edx
movzx eax, dx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10c], edi
test edx, edx
je 0x46dff8
mov dword [ebp - 0x118], 0xffff
cmp edx, 0xffff
jae 0x46dca9
mov dword [ebp - 0x118], eax
jmp 0x46dcd7
cmp byte [edx], 0x23
jne 0x46dcd7
lea eax, [edx + 1]
push eax
call fcn.004b4741
add esp, 4
cmp eax, 0xffff
jae 0x46dcd7
test eax, eax
je 0x46dcd7
movzx ecx, ax
movzx eax, cx
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x11c], eax
test edi, edi
je 0x46dff8
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x46dff8
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi], 0x4550
jne 0x46dff8
test eax, eax
jle 0x46dd14
cmp eax, 0x10000000
jae 0x46dd14
lea edx, [edi + 4]
add edx, eax
add eax, 0x18
add eax, edi
jmp 0x46dd19
mov edx, edi
lea eax, [edi + 0x14]
movzx ecx, word [eax]
sub ecx, 0x107
je 0x46dff8
sub ecx, 4
je 0x46dd52
sub ecx, 0x100
jne 0x46dff8
xor edx, edx
mov dword [ebp - 0x114], edx
cmp dword [eax + 0x6c], edx
jbe 0x46dd99
mov ecx, dword [eax + 0x70]
test ecx, ecx
je 0x46dd99
mov edx, dword [eax + 0x74]
jmp 0x46dd69
xor edx, edx
mov dword [ebp - 0x114], edx
cmp dword [eax + 0x5c], edx
jbe 0x46dd99
mov ecx, dword [eax + 0x60]
test ecx, ecx
je 0x46dd99
mov edx, dword [eax + 0x64]
test edx, edx
je 0x46dd97
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x46dd86
lea ebx, [edi + ecx]
xor ecx, ecx
test eax, eax
cmove edx, ecx
mov dword [ebp - 0x114], edx
jmp 0x46dd9b
xor ecx, ecx
xor ebx, ebx
test eax, eax
cmove edx, ecx
mov dword [ebp - 0x114], edx
jmp 0x46dd9b
xor edx, edx
xor ebx, ebx
test ebx, ebx
je 0x46dff8
test edx, edx
je 0x46dff8
mov esi, dword [ebx + 0x14]
test esi, esi
je 0x46dff8
cmp edx, 0x28
ja 0x46ddd7
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 - 0x114], eax
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x20]
mov edx, dword [ebx + 0x24]
add eax, edi
mov dword [ebp - 0x124], eax
lea eax, [edi + ecx]
mov dword [ebp - 0x120], eax
lea ecx, [edi + edx]
xor edx, edx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x108], edx
test esi, esi
je 0x46dff8
nop word [eax + eax]
movzx esi, word [ecx + edx*2]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x46de91
mov ecx, dword [ebp - 0x124]
mov ecx, dword [ecx + edx*4]
add ecx, edi
add edi, eax
cmp edi, ebx
jbe 0x46df90
mov eax, dword [ebp - 0x114]
add eax, ebx
cmp edi, eax
jae 0x46df90
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46de45
sub ecx, edx
lea esi, [ecx + 1]
cmp esi, 0x100
jae 0x46de7f
push esi
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.004abd70
add esp, 0xc
xor eax, eax
test esi, esi
je 0x46de7f
cmp byte [ebp + eax - 0x104], 0x2e
je 0x46deac
inc eax
cmp eax, esi
jb 0x46de70
mov edx, dword [ebp - 0x108]
mov edi, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0x110]
inc edx
mov dword [ebp - 0x108], edx
cmp edx, dword [ebx + 0x14]
jae 0x46dff8
mov eax, dword [ebp - 0x120]
jmp 0x46de10
cmp eax, 0x100
jae 0x46e00d
lea esi, [edi + 1]
mov byte [ebp + eax - 0x104], 0
add esi, eax
je 0x46de7f
cmp byte [esi], 0x23
jne 0x46df30
lea eax, [esi + 1]
test eax, eax
je 0x46de7f
mov edi, dword [ebp - 0x118]
mov ecx, 0xffff
cmp di, cx
jae 0x46de7f
push eax
call fcn.004b4741
mov esi, eax
add esp, 4
cmp esi, 0xffff
ja 0x46de7f
test esi, esi
je 0x46de7f
movzx ecx, di
cmp esi, ecx
jne 0x46de7f
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 1
movzx edx, si
mov ecx, eax
call fcn.0046dc60
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a9913
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x11c]
mov ecx, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x46df58
test dl, dl
je 0x46df54
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x46df58
add eax, 2
add ecx, 2
test dl, dl
jne 0x46df38
xor eax, eax
jmp 0x46df5d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x46de7f
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 1
mov edx, esi
mov ecx, eax
call fcn.0046dc60
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a9913
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x11c]
cmp eax, 0xffff
jbe 0x46dfcf
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x46dfc0
test dl, dl
je 0x46dfbc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x46dfc0
add eax, 2
add ecx, 2
test dl, dl
jne 0x46dfa0
xor eax, eax
jmp 0x46dfc5
sbb eax, eax
or eax, 1
test eax, eax
je 0x46dfe3
mov edx, dword [ebp - 0x108]
mov eax, dword [ebp - 0x118]
lea ecx, [esi + 1]
movzx eax, ax
cmp ecx, eax
jne 0x46de85
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a9913
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a9913
mov esp, ebp
pop ebp
ret 4
call fcn.004a9c90
int3