Function at 0x4a89b4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov byte [ebp - 9], 0
push eax
lea eax, [ebp - 0x11]
push eax
call dword [0x5248e4]
mov dword [ebp - 0x54], 0x18
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x48], 0x240
lea eax, [ebp - 0x11]
mov dword [ebp - 0x4c], eax
xor eax, eax
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [ebp - 0x40], eax
xor eax, eax
mov dword [ebp - 0x24], eax
push 0x20
push 1
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x120089
lea eax, [ebp - 0x18]
push eax
call dword [0x5248f4]
test eax, eax
jl 0x4a8aee
mov eax, 0x58
call fcn.00402f84
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov edx, 0x58
call fcn.00403b14
xor edx, edx
push ebp
push 0x4a8add
push dword fs:[edx]
mov dword fs:[edx], esp
push 5
push 0x58
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [0x524918]
test eax, eax
jl 0x4a8a6d
mov eax, dword [ebp - 0x28]
cmp dword [eax + 8], 0
seta al
jmp 0x4a8a6f
xor eax, eax
test al, al
je 0x4a8ac7
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0xc], 0
jne 0x4a8ac7
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
call fcn.00402f84
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4a8ac7
push 0
push 0
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [0x5248f8]
test eax, eax
jge 0x4a8ac7
mov eax, dword [ebp - 0x24]
call fcn.00402fa0
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8ae4
mov eax, dword [ebp - 0x28]
call fcn.00402fa0
ret
cmp dword [ebp - 0x24], 0
je 0x4a8d15
xor edx, edx
push ebp
push 0x4a8d0e
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x3c], 0x40
jae 0x4a8b1c
call fcn.00404c68
jmp 0x4a8d15
mov eax, dword [ebp - 0x2c]
cmp word [eax], 0x5a4d
je 0x4a8b30
call fcn.00404c68
jmp 0x4a8d15
mov eax, dword [ebp - 0x3c]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x3c]
mov eax, ecx
add eax, 0xf8
cdq
cmp edx, dword [esp + 4]
jne 0x4a8b54
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x4a8b62
jmp 0x4a8b58
pop edx
pop eax
jle 0x4a8b62
call fcn.00404c68
jmp 0x4a8d15
mov ebx, ecx
add ebx, dword [ebp - 0x2c]
cmp dword [ebx], 0x4550
je 0x4a8b79
call fcn.00404c68
jmp 0x4a8d15
test byte [ebx + 0x16], 2
je 0x4a8b8a
movzx eax, word [ebx + 0x14]
cmp eax, 0xe0
je 0x4a8b94
call fcn.00404c68
jmp 0x4a8d15
mov esi, ebx
add esi, 0xf8
push esi
mov ecx, ebx
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x2c]
call fcn.004a88c8
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4a8bc1
call fcn.00404c68
jmp 0x4a8d15
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00402f84
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x4a8cf8
mov eax, dword [ebx + 0x54]
mov dword [ebp - 0x30], eax
movzx edi, word [ebx + 6]
dec edi
test edi, edi
jl 0x4a8c05
inc edi
xor ebx, ebx
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 0x14]
test eax, eax
je 0x4a8c01
cmp eax, dword [ebp - 0x30]
jae 0x4a8c01
mov dword [ebp - 0x30], eax
inc ebx
dec edi
jne 0x4a8bee
mov edx, dword [ebp - 4]
mov edx, dword [edx]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
call fcn.00403180
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
mov edx, dword [edx]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x38], eax
mov esi, dword [ebp - 0x38]
add esi, 0xf8
mov eax, dword [ebp - 0x38]
mov edx, dword [eax + 0x38]
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x54]
call fcn.004a88b4
mov edx, dword [ebp - 4]
add eax, dword [edx]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x38]
movzx edi, word [eax + 6]
dec edi
test edi, edi
jl 0x4a8cf4
inc edi
xor ebx, ebx
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 0xc]
test eax, eax
je 0x4a8c6d
mov edx, dword [ebp - 4]
add eax, dword [edx]
mov dword [ebp - 0x34], eax
lea eax, [ebx + ebx*4]
cmp dword [esi + eax*8 + 0x10], 0
je 0x4a8cd4
lea eax, [ebx + ebx*4]
mov ecx, dword [esi + eax*8 + 0x10]
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 0x14]
add eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x34]
call fcn.00403180
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 8]
lea edx, [ebx + ebx*4]
cmp eax, dword [esi + edx*8 + 0x10]
jae 0x4a8cba
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 0x10]
mov edx, dword [ebp - 0x38]
mov edx, dword [edx + 0x38]
call fcn.004a88b4
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x34], eax
jmp 0x4a8cec
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 8]
mov edx, dword [ebp - 0x38]
mov edx, dword [edx + 0x38]
call fcn.004a88b4
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x34], eax
jmp 0x4a8cec
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 8]
mov edx, dword [ebp - 0x38]
mov edx, dword [edx + 0x38]
call fcn.004a88b4
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x34], eax
inc ebx
dec edi
jne 0x4a8c5a
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8d15
mov eax, dword [ebp - 0x24]
call fcn.00402fa0
ret
movzx eax, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret