Function at 0x4111a7
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 0x4111c4
xor eax, eax
jmp 0x4113db
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 0x4111e2
xor eax, eax
jmp 0x4113db
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov ax, word [edx + 0x14]
cmp eax, 0xe0
jne 0x411203
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov dx, word [ecx + 0x18]
cmp edx, 0x10b
je 0x41120a
xor eax, eax
jmp 0x4113db
mov eax, dword [ebp + 8]
mov dword [0x52cc70], 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.00410d7c
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x411253
xor eax, eax
jmp 0x4113db
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 [0x52cc70]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.00410dfc
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 0x4112a2
push 0x10
push 0
push str.Error_in_GetProcAddressDirectly__
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x4113db
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 0x41138a
mov dword [ebp - 0x14], 0
jmp 0x411301
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 0x411388
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x41131f
jmp 0x4112f8
mov dword [ebp - 0x1c], 0
jmp 0x411331
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 0x411383
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 0x411381
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 0x411381
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + eax*4]
add eax, dword [ebp + 8]
jmp 0x4113db
jmp 0x411328
jmp 0x4112f8
jmp 0x4113d9
mov dword [ebp - 0x14], 0
jmp 0x41139c
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 0x4113d9
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
add eax, dword [ebp - 0x14]
cmp dword [ebp - 0xc], eax
jne 0x4113d7
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
cmp dword [edx + ecx*4], 0
je 0x4113d7
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 0x4113db
jmp 0x411393
xor eax, eax
mov esp, ebp
pop ebp
ret