Function at 0x494214
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], 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 0x494435
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4943ea
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebx + 0x60]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
je 0x494282
lea edx, [ebp - 0x14]
mov eax, 0x494038
call fcn.00406738
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x493fdc]
call fcn.0040c64c
call fcn.00404234
mov eax, dword [ebp - 4]
mov esi, eax
lea edi, [ebx + 8]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x44]
mov esi, eax
mov ecx, eax
sub ecx, 0x40
mov edx, dword [ebp - 4]
add edx, 0x40
mov eax, dword [ebx + 0x64]
mov edi, dword [eax]
call dword [edi + 0x10]
mov eax, dword [ebp - 4]
add eax, esi
cmp dword [eax], 0x4550
je 0x4942d7
lea edx, [ebp - 0x18]
mov eax, 0x494040
call fcn.00406738
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x493fdc]
call fcn.0040c64c
call fcn.00404234
add esi, 4
mov eax, dword [ebp - 4]
add eax, esi
push esi
mov esi, eax
lea edi, [ebx + 0x48]
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 esi, 0x14
mov edi, dword [ebp - 4]
add edi, esi
cmp word [edi], 0x10b
je 0x49431b
lea edx, [ebp - 0x1c]
mov eax, 0x494048
call fcn.00406738
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x493fdc]
call fcn.0040c64c
call fcn.00404234
movzx edx, word [ebx + 0x58]
lea eax, [ebx + 0x5c]
call fcn.0040276c
movzx ecx, word [ebx + 0x58]
mov edx, dword [ebx + 0x5c]
mov eax, edi
call fcn.00402990
movzx eax, word [ebx + 0x58]
add esi, eax
mov edi, dword [ebp - 4]
add edi, esi
movzx eax, word [ebx + 0x4a]
shl eax, 3
lea eax, [eax + eax*4]
add eax, esi
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x14]
sub eax, dword [ebp - 0xc]
mov dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 0
jle 0x49437a
mov eax, dword [ebx + 0x6c]
call fcn.0040272c
mov dword [ebx + 0x68], eax
mov ecx, dword [ebx + 0x6c]
mov edx, dword [ebx + 0x68]
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
call fcn.00402990
movzx eax, word [ebx + 0x4a]
dec eax
test eax, eax
jl 0x4943b4
inc eax
mov dword [ebp - 0x10], eax
mov edi, dword [ebp - 4]
add edi, esi
push edi
mov eax, dword [edi + 0x14]
add eax, dword [ebp - 4]
push eax
mov ecx, ebx
mov dl, 1
mov eax, dword [0x493e60]
call fcn.00494ec0
mov edx, eax
mov eax, dword [ebx + 0x60]
call fcn.00428718
add esi, 0x28
dec dword [ebp - 0x10]
jne 0x494387
mov esi, dword [edi + 0x14]
add esi, dword [edi + 0x10]
mov edi, dword [ebp - 8]
sub edi, esi
mov dword [ebx + 0x74], edi
test edi, edi
jle 0x4943e0
mov eax, edi
call fcn.0040272c
mov dword [ebx + 0x70], eax
mov ecx, dword [ebx + 0x74]
mov edx, dword [ebx + 0x70]
mov eax, dword [ebp - 4]
add eax, esi
call fcn.00402990
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49441a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49443c
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.0040481c
ret