Function at 0x405ef0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov dword [ebp - 4], 0
push 0x2c
call fcn.0042ba3c
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 0x405f58
cmp dword [ebp + 8], 0
je 0x405f58
xor eax, eax
jmp 0x405f5d
mov eax, 1
test eax, eax
je 0x405f6f
mov eax, 0
jmp 0x406519
push dword [ebp + 0xc]
call fcn.0040652d
mov dword [ebp - 0x24], eax
cmp word [ebp - 0x24], 0x5a4d
je 0x405f90
mov eax, 0
jmp 0x406519
fild dword [ebp + 0xc]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fadd qword [0x4da345]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
call fcn.00401442
push eax
call fcn.0040652d
cwde
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40600c
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.00401442
push eax
mov eax, 0x25
call fcn.0042ba36
cmp dword [ebp - 0x3c], esp
je 0x406000
push 6
call fcn.0042ba30
add esp, 4
test eax, eax
jne 0x40600c
xor eax, eax
jmp 0x406011
mov eax, 1
test eax, eax
je 0x406023
mov eax, 0
jmp 0x406519
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.00401442
mov dword [ebp - 4], eax
push dword [ebp - 4]
call fcn.0040652d
mov dword [ebp - 0x24], eax
cmp word [ebp - 0x24], 0x4550
je 0x406064
mov eax, 0
jmp 0x406519
fild dword [ebp - 4]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fadd qword [0x4da34d]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
call fcn.00401442
push eax
call fcn.00406549
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4060df
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.00401442
push eax
mov eax, 0x25
call fcn.0042ba36
cmp dword [ebp - 0x3c], esp
je 0x4060d3
push 6
call fcn.0042ba30
add esp, 4
test eax, eax
jne 0x4060df
xor eax, eax
jmp 0x4060e4
mov eax, 1
test eax, eax
je 0x4060f6
mov eax, 0
jmp 0x406519
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.00401442
push eax
mov eax, dword [ebp - 8]
push eax
push 0x28
call fcn.0042ba3c
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, 0x26
call fcn.0042ba36
cmp dword [ebp - 0x38], esp
je 0x4061c3
push 6
call fcn.0042ba30
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.0042ba42
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 0x406285
mov ebx, dword [ebp - 8]
add ebx, 0x20
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
cmp dword [ebx], 0
je 0x406285
mov ebx, dword [ebp - 8]
add ebx, 0x24
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x30]
cmp dword [ebx], 0
je 0x406285
xor eax, eax
jmp 0x40628a
mov eax, 1
test eax, eax
je 0x40629c
mov eax, 0
jmp 0x406519
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 [0x4da0a1]
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 [0x4da0a1]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x44]
call fcn.00401442
push eax
fld qword [ebp - 0x30]
call fcn.00401442
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 0x40643d
mov ebx, dword [ebp - 8]
add ebx, 0x28
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
cmp dword [ebx], 0
je 0x406351
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.00401442
push eax
call fcn.0040652d
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 [0x4da355]
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.00401442
push eax
call fcn.00406549
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.00401442
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp dword [ebp + 8], eax
jl 0x406416
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x18], eax
jle 0x406416
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.00401442
push eax
call fcn.00406549
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x406416
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 0x4062fd
add esp, 0xc
cmp dword [ebp - 0xc], 0
je 0x40645b
cmp dword [ebp - 0x10], 0
je 0x40645b
mov eax, 1
jmp 0x406460
mov eax, 0
test eax, eax
je 0x40650f
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 [0x4da35d]
fcomp qword [0x4da365]
fnstsw ax
test ah, 1
je 0x40650f
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.00401442
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x42e920
call fcn.0042ba48
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 0x4064e7
push ebx
call fcn.0042ba42
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.00401442
jmp 0x406519
mov eax, 0
jmp 0x406519
push eax
mov ebx, dword [ebp - 8]
push ebx
call fcn.0042ba42
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc