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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x34], eax
xor eax, eax
push ebp
push 0x47a6d3
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x34]
call fcn.004040c0
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
jne 0x47a320
cmp dword [ebp + 0xc], 0
je 0x47a6ab
mov ebx, dword [eax]
push 0x40
push ebx
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x47a6ab
cmp word [ebx], 0x5a4d
jne 0x47a6ab
mov esi, dword [ebx + 0x3c]
add esi, ebx
push 0xf8
push esi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x47a6ab
cmp dword [esi], 0x4550
jne 0x47a6ab
lea eax, [esi + 0x78]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x47a6ab
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x47a6ab
mov eax, dword [ebp - 8]
mov esi, dword [eax]
mov edi, ebx
add esi, edi
push 0x28
push esi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x47a6ab
mov eax, dword [esi + 0x20]
add eax, edi
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x24]
add eax, edi
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x1c]
add eax, edi
mov dword [ebp - 0x24], eax
cmp dword [ebp + 0xc], 0
jne 0x47a3bd
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
jne 0x47a3ca
cmp dword [ebp + 0xc], 0xffff
jbe 0x47a47f
mov dword [ebp - 0x10], 0xffffffff
mov edi, dword [esi + 0x18]
dec edi
test edi, edi
jl 0x47a488
inc edi
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
shl eax, 2
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
push 4
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x47a473
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0x2c]
mov edx, dword [edx]
add edx, ebx
call fcn.004042b8
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x1c]
call fcn.00404158
push dword [ebp - 0x34]
push dword [ebp - 0x1c]
push 0x47a6f0
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00404440
cmp dword [ebp + 0xc], 0
je 0x47a473
lea eax, [ebp - 0x3c]
mov edx, dword [ebp + 0xc]
call fcn.004042b8
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x1c]
call fcn.004044cc
jne 0x47a473
mov eax, dword [ebp - 0xc]
add eax, eax
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
push 2
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x47a473
mov eax, dword [ebp - 0x30]
movzx eax, word [eax]
mov dword [ebp - 0x10], eax
inc dword [ebp - 0xc]
dec edi
jne 0x47a3e5
jmp 0x47a488
mov eax, dword [ebp + 0xc]
sub eax, dword [esi + 0x10]
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0xc], 0
je 0x47a67a
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
jne 0x47a67a
cmp dword [ebp - 0x10], 0
jl 0x47a6ab
mov eax, dword [ebp - 0x10]
cmp eax, dword [esi + 0x14]
jg 0x47a6ab
mov edi, dword [ebp - 0x10]
shl edi, 2
add edi, dword [ebp - 0x24]
push 4
push edi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x47a6ab
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov esi, dword [edi]
cmp eax, esi
ja 0x47a4e3
mov edx, dword [ebp - 8]
add eax, dword [edx + 4]
cmp esi, eax
jbe 0x47a4f5
test esi, esi
je 0x47a6ab
add esi, ebx
mov dword [ebp - 4], esi
jmp 0x47a6ab
lea eax, [ebp - 0x40]
mov edx, dword [ebp + 8]
mov edx, dword [edx]
add edx, esi
call fcn.004042b8
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x1c]
call fcn.00404158
mov edx, dword [ebp - 0x1c]
mov eax, 0x47a6fc
call fcn.004046c4
mov ebx, eax
test ebx, ebx
jbe 0x47a6ab
lea eax, [ebp - 0x14]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x1c]
call fcn.004045e0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00404380
mov ecx, eax
lea edx, [ebx + 1]
mov eax, dword [ebp - 0x1c]
call fcn.004045e0
xor ebx, ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
call fcn.00405448
test eax, eax
jle 0x47a5bd
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
call fcn.00405450
mov edi, eax
test edi, edi
jl 0x47a5bd
inc edi
mov dword [ebp - 0xc], 0
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [eax + edx*8]
lea edx, [ebp - 0x44]
call fcn.00408428
mov eax, dword [ebp - 0x44]
push eax
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x14]
call fcn.00408428
mov edx, dword [ebp - 0x48]
pop eax
call fcn.004044cc
jne 0x47a5b7
mov eax, dword [esi + 0xc]
mov edx, dword [ebp - 0xc]
mov ebx, dword [eax + edx*8 + 4]
jmp 0x47a5bd
inc dword [ebp - 0xc]
dec edi
jne 0x47a57d
test ebx, ebx
jne 0x47a61f
mov eax, dword [ebp - 0x14]
call fcn.00404580
push eax
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
call fcn.00405448
inc eax
push eax
lea eax, [esi + 0xc]
mov ecx, 1
mov edx, dword [0x479d30]
call fcn.00405604
add esp, 4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
call fcn.00405450
mov edx, dword [esi + 0xc]
lea eax, [edx + eax*8]
mov edx, dword [ebp - 0x14]
call fcn.00404114
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
call fcn.00405450
mov edx, dword [esi + 0xc]
mov dword [edx + eax*8 + 4], ebx
test ebx, ebx
je 0x47a6ab
mov eax, dword [ebp - 0x18]
cmp byte [eax], 0x23
jne 0x47a666
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x18]
call fcn.00404380
mov ecx, eax
mov edx, 2
mov eax, dword [ebp - 0x18]
call fcn.004045e0
or edx, 0xffffffff
mov eax, dword [ebp - 0x18]
call fcn.00408a0c
cmp eax, 0xffffffff
je 0x47a6ab
push eax
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 4], eax
jmp 0x47a6ab
mov eax, dword [ebp - 0x18]
call fcn.00404580
push eax
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 4], eax
jmp 0x47a6ab
cmp dword [ebp - 0x34], 0
je 0x47a6ab
mov eax, dword [ebp - 0x34]
call fcn.00404380
inc eax
call fcn.004083a4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x34]
call fcn.00404380
push eax
lea eax, [ebp - 0x34]
call fcn.004045d8
mov edx, dword [ebp - 4]
pop ecx
call fcn.004028e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a6da
lea eax, [ebp - 0x48]
mov edx, 6
call fcn.004040e4
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.004040e4
ret