Function at 0x40c9d1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov dword [ebp - 4], 0
push 0x2c
call fcn.0047957d
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0xb
rep stosd dword es:[edi], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 0xc], 0
je 0x40ca39
cmp dword [ebp + 8], 0
je 0x40ca39
xor eax, eax
jmp 0x40ca3e
mov eax, 1
test eax, eax
je 0x40ca50
mov eax, 0
jmp 0x40cff7
push dword [ebp + 0xc]
call fcn.0040d00b
mov dword [ebp - 0x24], eax
cmp word [ebp - 0x24], 0x5a4d
je 0x40ca71
mov eax, 0
jmp 0x40cff7
fild dword [ebp + 0xc]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fadd qword [0x513c5f]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
call fcn.00402762
push eax
call fcn.0040d00b
cwde
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40caed
fild dword [ebp + 0xc]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fild dword [ebp - 4]
fstp qword [ebp - 0x30]
fadd qword [ebp - 0x30]
fstp qword [ebp - 0x38]
mov dword [ebp - 0x3c], esp
push 2
fld qword [ebp - 0x38]
call fcn.00402762
push eax
mov eax, 0x45
call fcn.0047958f
cmp dword [ebp - 0x3c], esp
je 0x40cae1
push 6
call fcn.00479583
add esp, 4
test eax, eax
jne 0x40caed
xor eax, eax
jmp 0x40caf2
mov eax, 1
test eax, eax
je 0x40cb04
mov eax, 0
jmp 0x40cff7
fild dword [ebp + 0xc]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fild dword [ebp - 4]
fstp qword [ebp - 0x2c]
fadd qword [ebp - 0x2c]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.00402762
mov dword [ebp - 4], eax
push dword [ebp - 4]
call fcn.0040d00b
mov dword [ebp - 0x24], eax
cmp word [ebp - 0x24], 0x4550
je 0x40cb45
mov eax, 0
jmp 0x40cff7
fild dword [ebp - 4]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fadd qword [0x513c67]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
call fcn.00402762
push eax
call fcn.0040d027
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40cbc0
fild dword [ebp + 0xc]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fild dword [ebp - 4]
fstp qword [ebp - 0x30]
fadd qword [ebp - 0x30]
fstp qword [ebp - 0x38]
mov dword [ebp - 0x3c], esp
push 0x28
fld qword [ebp - 0x38]
call fcn.00402762
push eax
mov eax, 0x45
call fcn.0047958f
cmp dword [ebp - 0x3c], esp
je 0x40cbb4
push 6
call fcn.00479583
add esp, 4
test eax, eax
jne 0x40cbc0
xor eax, eax
jmp 0x40cbc5
mov eax, 1
test eax, eax
je 0x40cbd7
mov eax, 0
jmp 0x40cff7
fild dword [ebp + 0xc]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fild dword [ebp - 4]
fstp qword [ebp - 0x2c]
fadd qword [ebp - 0x2c]
fstp qword [ebp - 0x34]
mov dword [ebp - 0x38], esp
push 0x28
fld qword [ebp - 0x34]
call fcn.00402762
push eax
mov eax, dword [ebp - 8]
push eax
push 0x28
call fcn.0047957d
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, 0x46
call fcn.0047958f
cmp dword [ebp - 0x38], esp
je 0x40cca4
push 6
call fcn.00479583
add esp, 4
mov ebx, dword [ebp - 0x3c]
push ebx
mov edi, dword [ebp - 0x40]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.00479577
add esp, 4
mov ebx, dword [ebp - 8]
add ebx, 0x1c
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
cmp dword [ebx], 0
je 0x40cd66
mov ebx, dword [ebp - 8]
add ebx, 0x20
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
cmp dword [ebx], 0
je 0x40cd66
mov ebx, dword [ebp - 8]
add ebx, 0x24
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x30]
cmp dword [ebx], 0
je 0x40cd66
xor eax, eax
jmp 0x40cd6b
mov eax, 1
test eax, eax
je 0x40cd7d
mov eax, 0
jmp 0x40cff7
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov ebx, dword [ebp - 8]
add ebx, 0x14
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
fild dword [ebx]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fsub qword [0x513b10]
fstp qword [ebp - 0x30]
mov ebx, dword [ebp - 8]
add ebx, 0x1c
mov dword [ebp - 0x34], ebx
mov ebx, dword [ebp - 0x34]
fild dword [ebx]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
fsub qword [0x513b10]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x44]
call fcn.00402762
push eax
fld qword [ebp - 0x30]
call fcn.00402762
push eax
lea eax, [ebp - 0x14]
mov ebx, eax
pop ecx
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x40cf1e
mov ebx, dword [ebp - 8]
add ebx, 0x28
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
cmp dword [ebx], 0
je 0x40ce32
mov ebx, dword [ebp - 8]
add ebx, 0x28
mov dword [ebp - 0x20], ebx
fild dword [ebp + 0xc]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
mov ebx, dword [ebp - 0x20]
fild dword [ebx]
fstp qword [ebp - 0x30]
fadd qword [ebp - 0x30]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
call fcn.00402762
push eax
call fcn.0040d00b
cwde
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 8]
add ebx, 0x20
mov dword [ebp - 0x20], ebx
fild dword [ebp - 0x14]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fmul qword [0x513c6f]
fstp qword [ebp - 0x30]
fild dword [ebp + 0xc]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
mov ebx, dword [ebp - 0x20]
fild dword [ebx]
fstp qword [ebp - 0x40]
fadd qword [ebp - 0x40]
fadd qword [ebp - 0x30]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
call fcn.00402762
push eax
call fcn.0040d027
mov dword [ebp - 0x4c], eax
fild dword [ebp + 0xc]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
fild dword [ebp - 0x4c]
fstp qword [ebp - 0x5c]
fadd qword [ebp - 0x5c]
fstp qword [ebp - 0x64]
fld qword [ebp - 0x64]
call fcn.00402762
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp dword [ebp + 8], eax
jl 0x40cef7
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x18], eax
jle 0x40cef7
mov ebx, dword [ebp - 8]
add ebx, 0x24
mov dword [ebp - 0x20], ebx
fild dword [ebp + 0xc]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
mov ebx, dword [ebp - 0x20]
fild dword [ebx]
fstp qword [ebp - 0x30]
fadd qword [ebp - 0x30]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
call fcn.00402762
push eax
call fcn.0040d027
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40cef7
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 8]
add ebx, 0x24
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
add dword [ebx], 4
mov ebx, dword [ebp - 8]
add ebx, 0x28
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
add dword [ebx], 2
pop ebx
pop ecx
pop edx
inc ecx
jmp 0x40cdde
add esp, 0xc
cmp dword [ebp - 0xc], 0
je 0x40cf3c
cmp dword [ebp - 0x10], 0
je 0x40cf3c
mov eax, 1
jmp 0x40cf3e
xor eax, eax
test eax, eax
je 0x40cfed
fild dword [ebp + 8]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fild dword [ebp - 0xc]
fstp qword [ebp - 0x2c]
fsub qword [ebp - 0x2c]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fsub qword [0x513c77]
fcomp qword [0x513c7f]
fnstsw ax
test ah, 1
je 0x40cfed
fild dword [ebp + 0xc]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fild dword [ebp - 0x10]
fstp qword [ebp - 0x2c]
fadd qword [ebp - 0x2c]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.00402762
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x47c4d0
call fcn.00479589
add esp, 0x10
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40cfc5
push ebx
call fcn.00479577
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
fild dword [ebp + 8]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fild dword [ebp - 0xc]
fstp qword [ebp - 0x2c]
fsub qword [ebp - 0x2c]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.00402762
jmp 0x40cff7
mov eax, 0
jmp 0x40cff7
push eax
mov ebx, dword [ebp - 8]
push ebx
call fcn.00479577
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc