Function at 0x4a6b24
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 [0x4f28e0]
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 [0x4f28ec]
test eax, eax
jl 0x4a6c5e
mov eax, 0x58
call fcn.00402f74
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov edx, 0x58
call fcn.00403a24
xor edx, edx
push ebp
push 0x4a6c4d
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 [0x4f290c]
test eax, eax
jl 0x4a6bdd
mov eax, dword [ebp - 0x28]
cmp dword [eax + 8], 0
seta al
jmp 0x4a6bdf
xor eax, eax
test al, al
je 0x4a6c37
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0xc], 0
jne 0x4a6c37
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
call fcn.00402f74
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4a6c37
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 [0x4f28f0]
test eax, eax
jge 0x4a6c37
mov eax, dword [ebp - 0x24]
call fcn.00402f90
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a6c54
mov eax, dword [ebp - 0x28]
call fcn.00402f90
ret
cmp dword [ebp - 0x24], 0
je 0x4a6e85
xor edx, edx
push ebp
push 0x4a6e7e
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 0x4a6c8c
call fcn.00404b54
jmp 0x4a6e85
mov eax, dword [ebp - 0x2c]
cmp word [eax], 0x5a4d
je 0x4a6ca0
call fcn.00404b54
jmp 0x4a6e85
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 0x4a6cc4
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x4a6cd2
jmp 0x4a6cc8
pop edx
pop eax
jle 0x4a6cd2
call fcn.00404b54
jmp 0x4a6e85
mov ebx, ecx
add ebx, dword [ebp - 0x2c]
cmp dword [ebx], 0x4550
je 0x4a6ce9
call fcn.00404b54
jmp 0x4a6e85
test byte [ebx + 0x16], 2
je 0x4a6cfa
movzx eax, word [ebx + 0x14]
cmp eax, 0xe0
je 0x4a6d04
call fcn.00404b54
jmp 0x4a6e85
mov esi, ebx
add esi, 0xf8
push esi
mov ecx, ebx
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x2c]
call fcn.004a6a38
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4a6d31
call fcn.00404b54
jmp 0x4a6e85
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00402f74
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x4a6e68
mov eax, dword [ebx + 0x54]
mov dword [ebp - 0x30], eax
movzx edi, word [ebx + 6]
dec edi
test edi, edi
jl 0x4a6d75
inc edi
xor ebx, ebx
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 0x14]
test eax, eax
je 0x4a6d71
cmp eax, dword [ebp - 0x30]
jae 0x4a6d71
mov dword [ebp - 0x30], eax
inc ebx
dec edi
jne 0x4a6d5e
mov edx, dword [ebp - 4]
mov edx, dword [edx]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
call fcn.00403170
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.004a6a24
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 0x4a6e64
inc edi
xor ebx, ebx
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 0xc]
test eax, eax
je 0x4a6ddd
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 0x4a6e44
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.00403170
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 0x4a6e2a
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 0x10]
mov edx, dword [ebp - 0x38]
mov edx, dword [edx + 0x38]
call fcn.004a6a24
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x34], eax
jmp 0x4a6e5c
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 8]
mov edx, dword [ebp - 0x38]
mov edx, dword [edx + 0x38]
call fcn.004a6a24
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x34], eax
jmp 0x4a6e5c
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 8]
mov edx, dword [ebp - 0x38]
mov edx, dword [edx + 0x38]
call fcn.004a6a24
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x34], eax
inc ebx
dec edi
jne 0x4a6dca
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a6e85
mov eax, dword [ebp - 0x24]
call fcn.00402f90
ret
movzx eax, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret