Function at 0x40c865
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
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
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
push dword [ebp + 8]
call fcn.0040d208
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x40
jge 0x40c8f5
mov eax, 0
jmp 0x40d202
push dword [ebp - 4]
call fcn.0040d229
mov dword [ebp - 0x40], eax
cmp word [ebp - 0x40], 0x5a4d
je 0x40c916
mov eax, 0
jmp 0x40d202
fild dword [ebp - 4]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fadd qword [0x4c8480]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
call fcn.004014cb
push eax
call fcn.0040d25b
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fadd qword [0x4c8488]
fstp qword [ebp - 0x48]
fild dword [ebp - 8]
fstp qword [ebp - 0x50]
fld qword [ebp - 0x50]
fsub qword [ebp - 0x48]
fcomp qword [0x4c50dc]
fnstsw ax
test ah, 1
je 0x40c972
mov eax, 0
jmp 0x40d202
fild dword [ebp - 4]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fild dword [ebp - 0xc]
fstp qword [ebp - 0x48]
fadd qword [ebp - 0x48]
fstp qword [ebp - 0x50]
fld qword [ebp - 0x50]
call fcn.004014cb
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
call fcn.0040d25b
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0x4550
je 0x40c9b4
mov eax, 0
jmp 0x40d202
fild dword [ebp - 0x10]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fadd qword [0x4c8490]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
call fcn.004014cb
push eax
call fcn.0040d229
mov dword [ebp - 0x4c], eax
push 0x80000301
push 0
push 2
mov eax, dword [ebp - 0x4c]
cwde
push 0x80000301
push 0
push eax
push 2
mov ebx, 0x41d5a0
call fcn.0041d1ec
add esp, 0x1c
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x40ca18
mov eax, 0
jmp 0x40d202
fild dword [ebp - 0x10]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fadd qword [0x4c8498]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
call fcn.004014cb
push eax
call fcn.0040d229
mov word [ebp - 0x14], ax
mov eax, dword [ebp - 0x14]
cwde
mov dword [ebp - 0x40], eax
fild dword [ebp - 0x40]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fmul qword [0x4c5d9b]
fstp qword [ebp - 0x48]
fild dword [ebp - 0xc]
fstp qword [ebp - 0x50]
fld qword [ebp - 0x50]
fadd qword [ebp - 0x48]
fadd qword [0x4c8488]
fstp qword [ebp - 0x58]
fild dword [ebp - 8]
fstp qword [ebp - 0x60]
fld qword [ebp - 0x60]
fsub qword [ebp - 0x58]
fcomp qword [0x4c50dc]
fnstsw ax
test ah, 1
je 0x40ca91
mov eax, 0
jmp 0x40d202
mov eax, dword [ebp - 0x14]
cwde
mov dword [ebp - 0x40], eax
fild dword [ebp - 0x40]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fmul qword [0x4c5d9b]
fstp qword [ebp - 0x48]
push 1
push 0x40
fld qword [ebp - 0x48]
call fcn.004014cb
push eax
call fcn.0040d28d
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
cwde
mov dword [ebp - 0x40], eax
fild dword [ebp - 0x40]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fsub qword [0x4c50fe]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
call fcn.004014cb
push eax
lea eax, [ebp - 0x1c]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x40cd08
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fmul qword [0x4c5d9b]
fstp qword [ebp - 0x48]
fild dword [ebp - 0x18]
fstp qword [ebp - 0x50]
fld qword [ebp - 0x50]
fadd qword [ebp - 0x48]
fstp qword [ebp - 0x58]
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x60]
fld qword [ebp - 0x60]
fmul qword [0x4c5d9b]
fstp qword [ebp - 0x68]
fild dword [ebp - 4]
fstp qword [ebp - 0x70]
fld qword [ebp - 0x70]
fild dword [ebp - 0xc]
fstp qword [ebp - 0x78]
fadd qword [ebp - 0x78]
fadd qword [ebp - 0x68]
fadd qword [0x4c8488]
fstp qword [ebp - 0x80]
push 0x28
fld qword [ebp - 0x80]
call fcn.004014cb
push eax
fld qword [ebp - 0x58]
call fcn.004014cb
push eax
call fcn.0040d323
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fmul qword [0x4c5d9b]
fstp qword [ebp - 0x48]
fild dword [ebp - 0x18]
fstp qword [ebp - 0x50]
fld qword [ebp - 0x50]
fadd qword [ebp - 0x48]
fadd qword [0x4c50e4]
fstp qword [ebp - 0x58]
fld qword [ebp - 0x58]
call fcn.004014cb
push eax
call fcn.0040d25b
mov dword [ebp - 0x5c], eax
push 0x80000301
push 0
push 0xffff
push 0x80000301
push 0
push dword [ebp - 0x5c]
push 2
mov ebx, 0x41d5a0
call fcn.0041d1ec
add esp, 0x1c
mov dword [ebp - 0x20], eax
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fmul qword [0x4c5d9b]
fstp qword [ebp - 0x48]
fild dword [ebp - 0x18]
fstp qword [ebp - 0x50]
fld qword [ebp - 0x50]
fadd qword [ebp - 0x48]
fadd qword [0x4c6270]
fstp qword [ebp - 0x58]
fld qword [ebp - 0x58]
call fcn.004014cb
push eax
call fcn.0040d25b
mov dword [ebp - 0x24], eax
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fmul qword [0x4c5d9b]
fstp qword [ebp - 0x48]
fild dword [ebp - 0x18]
fstp qword [ebp - 0x50]
fld qword [ebp - 0x50]
fadd qword [ebp - 0x48]
fadd qword [0x4c84a0]
fstp qword [ebp - 0x58]
fld qword [ebp - 0x58]
call fcn.004014cb
push eax
call fcn.0040d25b
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x24], eax
mov eax, 0
setg al
test eax, eax
je 0x40cc5a
mov eax, dword [ebp - 0x24]
jmp 0x40cc5d
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x64], eax
fild dword [ebp - 0x5c]
fstp qword [ebp - 0x6c]
fld qword [ebp - 0x6c]
fild dword [ebp - 0x64]
fstp qword [ebp - 0x74]
fadd qword [ebp - 0x74]
fstp qword [ebp - 0x7c]
fild dword [ebp - 0x10]
fstp qword [ebp - 0x84]
fld qword [ebp - 0x84]
fadd qword [0x4c84a8]
fstp qword [ebp - 0x8c]
fld qword [ebp - 0x8c]
call fcn.004014cb
push eax
call fcn.0040d25b
push eax
fld qword [ebp - 0x7c]
call fcn.004014cb
push eax
call fcn.0040d353
mov dword [ebp - 0x28], eax
fild dword [ebp - 0x10]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fadd qword [0x4c84b0]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
call fcn.004014cb
push eax
call fcn.0040d25b
cmp dword [ebp - 0x28], eax
jle 0x40ccff
fild dword [ebp - 0x10]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fadd qword [0x4c84b0]
fstp qword [ebp - 0x48]
push dword [ebp - 0x28]
fld qword [ebp - 0x48]
call fcn.004014cb
push eax
call fcn.0040d3d4
pop ebx
pop ecx
pop edx
inc ecx
jmp 0x40caef
add esp, 0xc
fild dword [ebp - 0x10]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fadd qword [0x4c84b0]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
call fcn.004014cb
push eax
call fcn.0040d25b
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x40cd4a
push dword [ebp - 0x18]
call fcn.0040d3fb
mov eax, 0
jmp 0x40d202
push 1
push 0x40
push dword [ebp - 0x2c]
call fcn.0040d28d
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x40cd78
push dword [ebp - 0x18]
call fcn.0040d3fb
mov eax, 0
jmp 0x40d202
mov eax, dword [ebp - 0x14]
cwde
mov dword [ebp - 0x40], eax
fild dword [ebp - 0x40]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fmul qword [0x4c5d9b]
fstp qword [ebp - 0x48]
fild dword [ebp - 0xc]
fstp qword [ebp - 0x50]
fld qword [ebp - 0x50]
fadd qword [ebp - 0x48]
fadd qword [0x4c8488]
fstp qword [ebp - 0x58]
fld qword [ebp - 0x58]
call fcn.004014cb
push eax
push dword [ebp - 4]
push dword [ebp - 0x30]
call fcn.0040d323
mov eax, dword [ebp - 0x14]
cwde
xor ecx, ecx
push eax
lea eax, [ebp - 0x1c]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x40cf27
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fsub qword [0x4c50fe]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fmul qword [0x4c5d9b]
fstp qword [ebp - 0x50]
fild dword [ebp - 0x18]
fstp qword [ebp - 0x58]
fld qword [ebp - 0x58]
fadd qword [ebp - 0x50]
fadd qword [0x4c84a0]
fstp qword [ebp - 0x60]
fld qword [ebp - 0x60]
call fcn.004014cb
push eax
call fcn.0040d25b
mov dword [ebp - 0x34], eax
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fsub qword [0x4c50fe]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fmul qword [0x4c5d9b]
fstp qword [ebp - 0x50]
fild dword [ebp - 0x18]
fstp qword [ebp - 0x58]
fld qword [ebp - 0x58]
fadd qword [ebp - 0x50]
fadd qword [0x4c6270]
fstp qword [ebp - 0x60]
fld qword [ebp - 0x60]
call fcn.004014cb
push eax
call fcn.0040d25b
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jle 0x40ce78
cmp dword [ebp - 0x34], 0
je 0x40ce78
mov eax, 1
jmp 0x40ce7d
mov eax, 0
test eax, eax
je 0x40cf1f
fild dword [ebp - 0x30]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fild dword [ebp - 0x34]
fstp qword [ebp - 0x48]
fadd qword [ebp - 0x48]
fstp qword [ebp - 0x50]
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x58]
fld qword [ebp - 0x58]
fsub qword [0x4c50fe]
fstp qword [ebp - 0x60]
fld qword [ebp - 0x60]
fmul qword [0x4c5d9b]
fstp qword [ebp - 0x68]
fild dword [ebp - 0x18]
fstp qword [ebp - 0x70]
fld qword [ebp - 0x70]
fadd qword [ebp - 0x68]
fadd qword [0x4c84b8]
fstp qword [ebp - 0x78]
fld qword [ebp - 0x78]
call fcn.004014cb
push eax
call fcn.0040d25b
mov dword [ebp - 0x7c], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x84]
fld qword [ebp - 0x84]
fild dword [ebp - 0x7c]
fstp qword [ebp - 0x8c]
fadd qword [ebp - 0x8c]
fstp qword [ebp - 0x94]
push dword [ebp - 0x24]
fld qword [ebp - 0x94]
call fcn.004014cb
push eax
fld qword [ebp - 0x50]
call fcn.004014cb
push eax
call fcn.0040d323
pop eax
pop ebx
pop ecx
jmp 0x40cdc7
add esp, 0xc
push dword [ebp - 0x18]
call fcn.0040d3fb
fild dword [ebp - 0x10]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fadd qword [0x4c84c0]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
call fcn.004014cb
push eax
call fcn.0040d25b
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jle 0x40cf6a
push dword [ebp - 0x10]
push dword [ebp - 0x30]
call fcn.0040d452
fild dword [ebp - 0x10]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fadd qword [0x4c84c8]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
call fcn.004014cb
push eax
call fcn.0040d25b
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jle 0x40cfc8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x30]
call fcn.0040d741
and eax, 1
xor eax, 1
test eax, eax
je 0x40cfc8
push dword [ebp - 0x30]
call fcn.0040d3fb
mov eax, 0
jmp 0x40d202
fild dword [ebp - 0x10]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fadd qword [0x4c8490]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
call fcn.004014cb
push eax
call fcn.0040d229
mov dword [ebp - 0x4c], eax
push 0x80000301
push 0
push 0x2000
mov eax, dword [ebp - 0x4c]
cwde
push 0x80000301
push 0
push eax
push 2
mov ebx, 0x41d5a0
call fcn.0041d1ec
add esp, 0x1c
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x40d1fa
fild dword [ebp - 0x10]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fadd qword [0x4c5d9b]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
call fcn.004014cb
push eax
call fcn.0040d25b
mov dword [ebp - 0x38], eax
fild dword [ebp - 0x30]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fild dword [ebp - 0x38]
fstp qword [ebp - 0x48]
fadd qword [ebp - 0x48]
fstp qword [ebp - 0x50]
mov dword [ebp - 0x54], 0
push 0
push dword [ebp - 0x54]
mov dword [ebp - 0x58], 0
push 0
push dword [ebp - 0x58]
mov dword [ebp - 0x5c], 0
push 0
push dword [ebp - 0x5c]
mov dword [ebp - 0x60], 0
push 0
push dword [ebp - 0x60]
mov dword [ebp - 0x64], 0
push 0
push dword [ebp - 0x64]
mov dword [ebp - 0x68], 0
push 0
push dword [ebp - 0x68]
mov dword [ebp - 0x6c], 0
push 0
push dword [ebp - 0x6c]
mov dword [ebp - 0x70], 0
push 0
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0
push 0
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0
push 0
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], 0
push 0
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0
push 0
push dword [ebp - 0x80]
push 1
push 0
push 1
push 1
push 1
push 0
fld qword [ebp - 0x50]
call fcn.004014cb
push eax
call fcn.004012da
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
jne 0x40d1fa
fild dword [ebp - 0x30]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fild dword [ebp - 0x38]
fstp qword [ebp - 0x48]
fadd qword [ebp - 0x48]
fstp qword [ebp - 0x50]
mov dword [ebp - 0x54], 0
push 0
push dword [ebp - 0x54]
mov dword [ebp - 0x58], 0
push 0
push dword [ebp - 0x58]
mov dword [ebp - 0x5c], 0
push 0
push dword [ebp - 0x5c]
mov dword [ebp - 0x60], 0
push 0
push dword [ebp - 0x60]
mov dword [ebp - 0x64], 0
push 0
push dword [ebp - 0x64]
mov dword [ebp - 0x68], 0
push 0
push dword [ebp - 0x68]
mov dword [ebp - 0x6c], 0
push 0
push dword [ebp - 0x6c]
mov dword [ebp - 0x70], 0
push 0
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0
push 0
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0
push 0
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], 0
push 0
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0
push 0
push dword [ebp - 0x80]
push 1
push 0
push 1
push 0
push 1
push 0
fld qword [ebp - 0x50]
call fcn.004014cb
push eax
call fcn.004012da
push dword [ebp - 0x30]
call fcn.0040d3fb
mov eax, 0
jmp 0x40d202
mov eax, dword [ebp - 0x30]
jmp 0x40d202
mov esp, ebp
pop ebp
ret 0xc