Function at 0x47699c
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 0x4769b9
xor eax, eax
jmp 0x476bd0
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 0x4769d7
xor eax, eax
jmp 0x476bd0
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov ax, word [edx + 0x14]
cmp eax, 0xe0
jne 0x4769f8
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov dx, word [ecx + 0x18]
cmp edx, 0x10b
je 0x4769ff
xor eax, eax
jmp 0x476bd0
mov eax, dword [ebp + 8]
mov dword [0x4b25ac], 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.004768dd
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x476a48
xor eax, eax
jmp 0x476bd0
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 [0x4b25ac]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.0047695d
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 0x476a97
push 0x10
push 0
push 0x4509c8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x476bd0
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 0x476b7f
mov dword [ebp - 0x14], 0
jmp 0x476af6
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 0x476b7d
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x476b14
jmp 0x476aed
mov dword [ebp - 0x1c], 0
jmp 0x476b26
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 0x476b78
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 0x476b76
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 0x476b76
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + eax*4]
add eax, dword [ebp + 8]
jmp 0x476bd0
jmp 0x476b1d
jmp 0x476aed
jmp 0x476bce
mov dword [ebp - 0x14], 0
jmp 0x476b91
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 0x476bce
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
add eax, dword [ebp - 0x14]
cmp dword [ebp - 0xc], eax
jne 0x476bcc
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
cmp dword [edx + ecx*4], 0
je 0x476bcc
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 0x476bd0
jmp 0x476b88
xor eax, eax
mov esp, ebp
pop ebp
ret