Function at 0x411307
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 0x411324
xor eax, eax
jmp 0x41153b
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 0x411342
xor eax, eax
jmp 0x41153b
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov ax, word [edx + 0x14]
cmp eax, 0xe0
jne 0x411363
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov dx, word [ecx + 0x18]
cmp edx, 0x10b
je 0x41136a
xor eax, eax
jmp 0x41153b
mov eax, dword [ebp + 8]
mov dword [0x52dca0], 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.00410edc
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4113b3
xor eax, eax
jmp 0x41153b
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 [0x52dca0]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.00410f5c
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 0x411402
push 0x10
push 0
push str.Error_in_GetProcAddressDirectly__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x41153b
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 0x4114ea
mov dword [ebp - 0x14], 0
jmp 0x411461
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 0x4114e8
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x41147f
jmp 0x411458
mov dword [ebp - 0x1c], 0
jmp 0x411491
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 0x4114e3
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 0x4114e1
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 0x4114e1
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + eax*4]
add eax, dword [ebp + 8]
jmp 0x41153b
jmp 0x411488
jmp 0x411458
jmp 0x411539
mov dword [ebp - 0x14], 0
jmp 0x4114fc
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 0x411539
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
add eax, dword [ebp - 0x14]
cmp dword [ebp - 0xc], eax
jne 0x411537
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
cmp dword [edx + ecx*4], 0
je 0x411537
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 0x41153b
jmp 0x4114f3
xor eax, eax
mov esp, ebp
pop ebp
ret