Function at 0x4a68d4
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 [0x4f18e0]
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 [0x4f18ec]
test eax, eax
jl 0x4a6a0e
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 0x4a69fd
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 [0x4f190c]
test eax, eax
jl 0x4a698d
mov eax, dword [ebp - 0x28]
cmp dword [eax + 8], 0
seta al
jmp 0x4a698f
xor eax, eax
test al, al
je 0x4a69e7
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0xc], 0
jne 0x4a69e7
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 0x4a69e7
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 [0x4f18f0]
test eax, eax
jge 0x4a69e7
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 0x4a6a04
mov eax, dword [ebp - 0x28]
call fcn.00402f90
ret
cmp dword [ebp - 0x24], 0
je 0x4a6c35
xor edx, edx
push ebp
push 0x4a6c2e
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 0x4a6a3c
call fcn.00404b48
jmp 0x4a6c35
mov eax, dword [ebp - 0x2c]
cmp word [eax], 0x5a4d
je 0x4a6a50
call fcn.00404b48
jmp 0x4a6c35
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 0x4a6a74
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x4a6a82
jmp 0x4a6a78
pop edx
pop eax
jle 0x4a6a82
call fcn.00404b48
jmp 0x4a6c35
mov ebx, ecx
add ebx, dword [ebp - 0x2c]
cmp dword [ebx], 0x4550
je 0x4a6a99
call fcn.00404b48
jmp 0x4a6c35
test byte [ebx + 0x16], 2
je 0x4a6aaa
movzx eax, word [ebx + 0x14]
cmp eax, 0xe0
je 0x4a6ab4
call fcn.00404b48
jmp 0x4a6c35
mov esi, ebx
add esi, 0xf8
push esi
mov ecx, ebx
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x2c]
call fcn.004a67e8
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4a6ae1
call fcn.00404b48
jmp 0x4a6c35
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 0x4a6c18
mov eax, dword [ebx + 0x54]
mov dword [ebp - 0x30], eax
movzx edi, word [ebx + 6]
dec edi
test edi, edi
jl 0x4a6b25
inc edi
xor ebx, ebx
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 0x14]
test eax, eax
je 0x4a6b21
cmp eax, dword [ebp - 0x30]
jae 0x4a6b21
mov dword [ebp - 0x30], eax
inc ebx
dec edi
jne 0x4a6b0e
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.004a67d4
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 0x4a6c14
inc edi
xor ebx, ebx
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 0xc]
test eax, eax
je 0x4a6b8d
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 0x4a6bf4
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 0x4a6bda
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 0x10]
mov edx, dword [ebp - 0x38]
mov edx, dword [edx + 0x38]
call fcn.004a67d4
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x34], eax
jmp 0x4a6c0c
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 8]
mov edx, dword [ebp - 0x38]
mov edx, dword [edx + 0x38]
call fcn.004a67d4
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x34], eax
jmp 0x4a6c0c
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 8]
mov edx, dword [ebp - 0x38]
mov edx, dword [edx + 0x38]
call fcn.004a67d4
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x34], eax
inc ebx
dec edi
jne 0x4a6b7a
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a6c35
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