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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x41641b
xor eax, eax
jmp 0x416627
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp dword [ecx], 0x4550
je 0x416439
xor eax, eax
jmp 0x416627
mov edx, dword [ebp - 0xc]
movzx eax, word [edx + 0x14]
cmp eax, 0xe0
jne 0x416456
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 0x18]
cmp edx, 0x10b
je 0x41645d
xor eax, eax
jmp 0x416627
mov eax, dword [ebp + 8]
mov dword [0x59fdb8], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x78]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
add eax, dword [edx + 0x7c]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.00415fd0
add esp, 8
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x4164a6
xor eax, eax
jmp 0x416627
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x30]
mov edx, dword [eax + 0xc]
sub edx, dword [ecx + 0x14]
mov dword [ebp - 0x24], edx
mov eax, dword [0x59fdb8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.00416050
add esp, 0xc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x78]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
jne 0x4164f5
push 0x10
push 0
push str.Error_in_GetProcAddressDirectly__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x416627
mov edx, dword [ebp - 0x20]
add edx, dword [ebp + 8]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x24]
add ecx, dword [ebp + 8]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x20]
add eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x1c]
add edx, dword [ebp + 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
test edx, edx
je 0x4165d8
mov dword [ebp - 8], 0
jmp 0x416551
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x14]
sub edx, 1
cmp dword [ebp - 8], edx
ja 0x4165d6
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov dword [ebp - 0x38], ecx
cmp dword [ebp - 0x38], 0
jne 0x41656f
jmp 0x416548
mov dword [ebp - 0x34], 0
jmp 0x416581
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x18]
sub ecx, 1
cmp dword [ebp - 0x34], ecx
ja 0x4165d1
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x2c]
movzx ecx, word [eax + edx*2]
cmp ecx, dword [ebp - 8]
jne 0x4165cf
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + edx*4]
add ecx, dword [ebp + 8]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.0041cdb0
add esp, 8
test eax, eax
jne 0x4165cf
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4]
add eax, dword [ebp + 8]
jmp 0x416627
jmp 0x416578
jmp 0x416548
jmp 0x416625
mov dword [ebp - 8], 0
jmp 0x4165ea
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x14]
sub edx, 1
cmp dword [ebp - 8], edx
ja 0x416625
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x10]
add ecx, dword [ebp - 8]
cmp dword [ebp - 0x10], ecx
jne 0x416623
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
cmp dword [eax + edx*4], 0
je 0x416623
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4]
shl eax, 6
add eax, dword [ebp + 8]
jmp 0x416627
jmp 0x4165e1
xor eax, eax
mov esp, ebp
pop ebp
ret