Function at 0x46a90f
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
je 0x46a92c
xor eax, eax
jmp 0x46ab43
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx], 0x4550
je 0x46a94a
xor eax, eax
jmp 0x46ab43
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov ax, word [edx + 0x14]
cmp eax, 0xe0
jne 0x46a96b
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov dx, word [ecx + 0x18]
cmp edx, 0x10b
je 0x46a972
xor eax, eax
jmp 0x46ab43
mov eax, dword [ebp + 8]
mov dword [0x4a04c0], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x78]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 0x7c]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.0046a850
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x46a9bb
xor eax, eax
jmp 0x46ab43
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 0xc]
sub edx, dword [ecx + 0x14]
mov dword [ebp - 0x18], edx
mov eax, dword [0x4a04c0]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.0046a8d0
add esp, 0xc
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x78]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jne 0x46aa0a
push 0x10
push 0
push 0x450998
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x46ab43
mov edx, dword [ebp - 8]
add edx, dword [ebp + 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24]
add ecx, dword [ebp + 8]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x20]
add eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x1c]
add edx, dword [ebp + 8]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
shr ecx, 0x10
and ecx, 0xffff
and ecx, 0xffff
test ecx, ecx
je 0x46aaf2
mov dword [ebp - 0x14], 0
jmp 0x46aa69
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x14]
sub ecx, 1
cmp dword [ebp - 0x14], ecx
ja 0x46aaf0
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x46aa87
jmp 0x46aa60
mov dword [ebp - 0x1c], 0
jmp 0x46aa99
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x18]
sub eax, 1
cmp dword [ebp - 0x1c], eax
ja 0x46aaeb
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
xor eax, eax
mov ax, word [edx + ecx*2]
cmp eax, dword [ebp - 0x14]
jne 0x46aae9
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + ecx*4]
add eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x46aae9
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + eax*4]
add eax, dword [ebp + 8]
jmp 0x46ab43
jmp 0x46aa90
jmp 0x46aa60
jmp 0x46ab41
mov dword [ebp - 0x14], 0
jmp 0x46ab04
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x14]
sub ecx, 1
cmp dword [ebp - 0x14], ecx
ja 0x46ab41
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
add eax, dword [ebp - 0x14]
cmp dword [ebp - 0xc], eax
jne 0x46ab3f
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
cmp dword [edx + ecx*4], 0
je 0x46ab3f
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + eax*4]
shl edx, 6
mov eax, dword [ebp + 8]
add eax, edx
jmp 0x46ab43
jmp 0x46aafb
xor eax, eax
mov esp, ebp
pop ebp
ret