Function at 0x4b893c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, dword [ebp + 0x10]
mov byte [ebp - 9], 0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], 0x40
jl 0x4b8b3c
mov eax, dword [ebp - 0x10]
cmp word [eax], 0x5a4d
jne 0x4b8b3c
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x3c]
mov edx, eax
add edx, 0xf8
cmp edx, dword [ebp - 4]
jg 0x4b8b3c
mov ebx, eax
add ebx, dword [ebp - 0x10]
cmp dword [ebx], 0x4550
jne 0x4b8b3c
movzx eax, word [ebx + 0x16]
test ah, 0x20
jne 0x4b8b3c
test al, 2
je 0x4b8b3c
movzx eax, word [ebx + 0x14]
cmp eax, 0xe0
jne 0x4b8b3c
mov edi, ebx
add edi, 0xf8
push edi
mov ecx, ebx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.004b8854
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x4b8b3c
push 0x40
push 0x1000
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
push 0
call fcn.00407984
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x4b8b3c
mov eax, dword [ebx + 0x54]
mov dword [ebp - 0x14], eax
movzx eax, word [ebx + 6]
dec eax
cmp eax, 0
jl 0x4b8a30
mov ebx, eax
lea eax, [ebx + ebx*4]
mov eax, dword [edi + eax*8 + 0x14]
test eax, eax
je 0x4b8a2a
cmp eax, dword [ebp - 0x14]
jae 0x4b8a2a
mov dword [ebp - 0x14], eax
dec ebx
cmp ebx, 0xffffffff
jne 0x4b8a17
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.004032ac
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
add eax, dword [edx + 0x3c]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, 0xf8
mov dword [esi], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, dword [eax + 0x38]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov eax, dword [eax + 0x54]
call fcn.004b8840
mov edx, dword [ebp + 0xc]
add eax, dword [edx]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
movzx eax, word [eax + 6]
dec eax
test eax, eax
jl 0x4b8b38
inc eax
mov dword [ebp - 0x1c], eax
xor ebx, ebx
lea edi, [ebx + ebx*4]
mov eax, dword [esi]
mov eax, dword [eax + edi*8 + 0xc]
test eax, eax
je 0x4b8aa8
mov edx, dword [ebp + 0xc]
add eax, dword [edx]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
cmp dword [eax + edi*8 + 0x10], 0
je 0x4b8b15
lea eax, [ebx + ebx*4]
mov edx, dword [esi]
mov ecx, dword [edx + eax*8 + 0x10]
mov eax, dword [esi]
mov eax, dword [eax + edi*8 + 0x14]
add eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
call fcn.004032ac
mov eax, dword [esi]
mov eax, dword [eax + edi*8 + 8]
mov edx, dword [esi]
cmp eax, dword [edx + edi*8 + 0x10]
jae 0x4b8af7
lea eax, [ebx + ebx*4]
mov edx, dword [esi]
mov eax, dword [edx + eax*8 + 0x10]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
mov edx, dword [edx + 0x38]
call fcn.004b8840
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
jmp 0x4b8b2e
lea eax, [ebx + ebx*4]
mov edx, dword [esi]
mov eax, dword [edx + eax*8 + 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
mov edx, dword [edx + 0x38]
call fcn.004b8840
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
jmp 0x4b8b2e
mov eax, dword [esi]
mov eax, dword [eax + edi*8 + 8]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
mov edx, dword [edx + 0x38]
call fcn.004b8840
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
inc ebx
dec dword [ebp - 0x1c]
jne 0x4b8a93
mov byte [ebp - 9], 1
movzx eax, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc