Function at 0x40f141
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 4], 0
push 0x2c
call fcn.004494d6
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 eax, 0x51f201
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40f1a2
push ebx
call fcn.004494d0
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
cmp dword [ebp + 0xc], 0
je 0x40f1c0
cmp dword [ebp + 8], 0
je 0x40f1c0
xor eax, eax
jmp 0x40f1c5
mov eax, 1
test eax, eax
je 0x40f1d7
mov eax, 0
jmp 0x40f7d7
push dword [ebp + 0xc]
call fcn.0040f7eb
mov dword [ebp - 0x20], eax
cmp word [ebp - 0x20], 0x5a4d
je 0x40f1f8
mov eax, 0
jmp 0x40f7d7
fild dword [ebp + 0xc]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fadd qword [0xbd1cf6]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.004019d6
push eax
call fcn.0040f7eb
cwde
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40f27e
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 2
fld qword [ebp - 0x34]
call fcn.004019d6
push eax
mov eax, 0x2a
call fcn.004494e2
cmp dword [ebp - 0x38], esp
je 0x40f272
push 0x1c9
push 0x405fdd4
push 6
call fcn.004494dc
add esp, 0xc
test eax, eax
jne 0x40f27e
xor eax, eax
jmp 0x40f283
mov eax, 1
test eax, eax
je 0x40f295
mov eax, 0
jmp 0x40f7d7
fild dword [ebp + 0xc]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild dword [ebp - 4]
fstp qword [ebp - 0x28]
fadd qword [ebp - 0x28]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.004019d6
mov dword [ebp - 4], eax
push dword [ebp - 4]
call fcn.0040f7eb
mov dword [ebp - 0x20], eax
cmp word [ebp - 0x20], 0x4550
je 0x40f2d6
mov eax, 0
jmp 0x40f7d7
fild dword [ebp - 4]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fadd qword [0xbd1cfe]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.004019d6
push eax
call fcn.0040ba38
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40f35b
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.004019d6
push eax
mov eax, 0x2a
call fcn.004494e2
cmp dword [ebp - 0x38], esp
je 0x40f34f
push 0x368
push 0x405fdd4
push 6
call fcn.004494dc
add esp, 0xc
test eax, eax
jne 0x40f35b
xor eax, eax
jmp 0x40f360
mov eax, 1
test eax, eax
je 0x40f372
mov eax, 0
jmp 0x40f7d7
fild dword [ebp + 0xc]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild dword [ebp - 4]
fstp qword [ebp - 0x28]
fadd qword [ebp - 0x28]
fstp qword [ebp - 0x30]
mov dword [ebp - 0x34], esp
push 0x28
fld qword [ebp - 0x30]
call fcn.004019d6
push eax
mov eax, dword [ebp - 8]
push eax
push 0x28
call fcn.004494d6
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], 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, 0x36
call fcn.004494e2
cmp dword [ebp - 0x34], esp
je 0x40f449
push 0x3c8
push 0x405fdd4
push 6
call fcn.004494dc
add esp, 0xc
mov ebx, dword [ebp - 0x38]
push ebx
mov edi, dword [ebp - 0x3c]
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.004494d0
add esp, 4
mov ebx, dword [ebp - 8]
add ebx, 0x1c
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
cmp dword [ebx], 0
je 0x40f50b
mov ebx, dword [ebp - 8]
add ebx, 0x20
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
cmp dword [ebx], 0
je 0x40f50b
mov ebx, dword [ebp - 8]
add ebx, 0x24
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 0x2c]
cmp dword [ebx], 0
je 0x40f50b
xor eax, eax
jmp 0x40f510
mov eax, 1
test eax, eax
je 0x40f522
mov eax, 0
jmp 0x40f7d7
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov ebx, dword [ebp - 8]
add ebx, 0x18
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
xor ecx, ecx
push eax
lea eax, [ebp - 0x14]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x40f5ea
dec dword [ebp - 0x14]
mov ebx, dword [ebp - 8]
add ebx, 0x20
mov dword [ebp - 0x1c], ebx
fild dword [ebp - 0x14]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fmul qword [0xbd189f]
fstp qword [ebp - 0x2c]
fild dword [ebp + 0xc]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
mov ebx, dword [ebp - 0x1c]
fild dword [ebx]
fstp qword [ebp - 0x3c]
fadd qword [ebp - 0x3c]
fadd qword [ebp - 0x2c]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x44]
call fcn.004019d6
push eax
call fcn.0040ba38
mov dword [ebp - 0x48], eax
fild dword [ebp + 0xc]
fstp qword [ebp - 0x50]
fld qword [ebp - 0x50]
fild dword [ebp - 0x48]
fstp qword [ebp - 0x58]
fadd qword [ebp - 0x58]
fstp qword [ebp - 0x60]
fld qword [ebp - 0x60]
call fcn.004019d6
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp dword [ebp + 8], eax
jl 0x40f5e2
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x18], eax
jle 0x40f5e2
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
pop eax
pop ebx
pop ecx
jmp 0x40f547
add esp, 0xc
cmp dword [ebp - 0xc], 0
je 0x40f635
fild dword [ebp - 0x10]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fsub qword [0xbd1458]
fstp qword [ebp - 0x2c]
mov ebx, dword [ebp - 8]
add ebx, 0x1c
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x30]
fild dword [ebx]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x2c]
fsub qword [ebp - 0x38]
fcomp qword [0xbd1897]
fnstsw ax
test ah, 0x41
je 0x40f635
xor eax, eax
jmp 0x40f63a
mov eax, 1
test eax, eax
je 0x40f64c
mov eax, 0
jmp 0x40f7d7
mov ebx, dword [ebp - 8]
add ebx, 0x18
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
xor ecx, ecx
push eax
lea eax, [ebp - 0x14]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x40f770
dec dword [ebp - 0x14]
mov ebx, dword [ebp - 8]
add ebx, 0x28
mov dword [ebp - 0x1c], ebx
fild dword [ebp - 0x14]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fmul qword [0xbd12f2]
fstp qword [ebp - 0x2c]
fild dword [ebp + 0xc]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
mov ebx, dword [ebp - 0x1c]
fild dword [ebx]
fstp qword [ebp - 0x3c]
fadd qword [ebp - 0x3c]
fadd qword [ebp - 0x2c]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x44]
call fcn.004019d6
push eax
call fcn.0040f7eb
cwde
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x18], eax
jne 0x40f768
mov ebx, dword [ebp - 8]
add ebx, 0x24
mov dword [ebp - 0x1c], ebx
fild dword [ebp - 0x14]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fmul qword [0xbd189f]
fstp qword [ebp - 0x2c]
fild dword [ebp + 0xc]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
mov ebx, dword [ebp - 0x1c]
fild dword [ebx]
fstp qword [ebp - 0x3c]
fadd qword [ebp - 0x3c]
fadd qword [ebp - 0x2c]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x44]
call fcn.004019d6
push eax
call fcn.0040ba38
mov dword [ebp - 0x18], eax
fild dword [ebp + 0xc]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild dword [ebp - 0x18]
fstp qword [ebp - 0x28]
fadd qword [ebp - 0x28]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.004019d6
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x44d450
call fcn.004494e8
add esp, 0x10
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40f75d
push ebx
call fcn.004494d0
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
jmp 0x40f770
pop eax
pop ebx
pop ecx
jmp 0x40f663
add esp, 0xc
push 0x51f201
mov ebx, dword [ebp + 0x10]
push dword [ebx]
call fcn.004046c1
add esp, 8
cmp eax, 0
jne 0x40f7b5
push dword [ebp - 0xc]
call fcn.0040e507
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40f7af
push ebx
call fcn.004494d0
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
fild dword [ebp + 8]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild dword [ebp - 0xc]
fstp qword [ebp - 0x28]
fsub qword [ebp - 0x28]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.004019d6
jmp 0x40f7d7
push eax
mov ebx, dword [ebp - 8]
push ebx
call fcn.004494d0
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc