Function at 0x4ef168
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4ef37d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x1c]
mov edx, dword [eax]
call dword [edx + 8]
mov esi, dword [ebp - 4]
cmp word [esi], 0x5a4d
je 0x4ef1c5
lea edx, [ebp - 0x14]
mov eax, 0x4eeb98
call fcn.00409f4c
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x4eeaf8]
call fcn.00419358
call fcn.00405a30
push esi
lea edi, [ebx + 0x40]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
pop esi
mov eax, dword [ebx + 0x7c]
mov dword [ebp - 0xc], eax
mov ecx, eax
sub ecx, 0x40
mov edx, esi
add edx, 0x40
mov eax, dword [ebx + 0x2c]
mov edi, dword [eax]
call dword [edi + 0x10]
mov eax, esi
add eax, dword [ebp - 0xc]
cmp dword [eax], 0x4550
je 0x4ef217
lea edx, [ebp - 0x18]
mov eax, 0x4eeba0
call fcn.00409f4c
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x4eeaf8]
call fcn.00419358
call fcn.00405a30
add dword [ebp - 0xc], 4
mov eax, esi
add eax, dword [ebp - 0xc]
push esi
mov esi, eax
lea edi, [ebx + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
add dword [ebp - 0xc], 0x14
mov edi, esi
add edi, dword [ebp - 0xc]
cmp word [edi], 0x10b
je 0x4ef25d
lea edx, [ebp - 0x1c]
mov eax, 0x4eeba8
call fcn.00409f4c
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x4eeaf8]
call fcn.00419358
call fcn.00405a30
movzx edx, word [ebx + 0x18]
lea eax, [ebx + 0x80]
call fcn.00404278
movzx ecx, word [ebx + 0x18]
mov edx, dword [ebx + 0x80]
mov eax, edi
call fcn.004043fc
movzx eax, word [ebx + 0x18]
add dword [ebp - 0xc], eax
movzx edx, word [ebx + 0xa]
movzx eax, dx
add eax, eax
add eax, eax
add eax, eax
lea eax, [eax + eax*4]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
add esi, dword [ebp - 0xc]
xor eax, eax
movzx edi, dx
dec edi
test edi, edi
jl 0x4ef2c4
inc edi
test eax, eax
jne 0x4ef2b1
mov eax, dword [esi + 0x14]
jmp 0x4ef2be
mov edx, dword [esi + 0x14]
test edx, edx
jbe 0x4ef2be
cmp edx, eax
jae 0x4ef2be
mov eax, edx
add esi, 0x28
dec edi
jne 0x4ef2a8
mov edi, eax
sub edi, dword [ebp - 0x10]
mov dword [ebx + 0x34], edi
test edi, edi
jle 0x4ef2eb
mov eax, edi
call fcn.00404244
mov dword [ebx + 0x30], eax
mov edx, dword [ebx + 0x30]
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x34]
call fcn.004043fc
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004f1020
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004f1100
movzx edi, word [ebx + 0xa]
dec edi
test edi, edi
jl 0x4ef334
inc edi
mov eax, dword [ebp - 4]
mov esi, eax
add esi, dword [ebp - 0xc]
push esi
push eax
push 0
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4ed8d4]
call fcn.004efbe0
mov edx, eax
mov eax, dword [ebx + 0x1c]
call fcn.00435e3c
add dword [ebp - 0xc], 0x28
dec edi
jne 0x4ef309
mov eax, dword [esi + 0x14]
add eax, dword [esi + 0x10]
mov esi, eax
mov edi, dword [ebp - 8]
sub edi, esi
mov dword [ebx + 0x3c], edi
test edi, edi
jle 0x4ef362
mov eax, edi
call fcn.00404244
mov dword [ebx + 0x38], eax
mov edx, dword [ebx + 0x38]
mov eax, dword [ebp - 4]
add eax, esi
mov ecx, dword [ebx + 0x3c]
call fcn.004043fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ef384
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00406b38
ret