Function at 0x4060f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x35c
fldz
xor eax, eax
fstp qword [esp + 0x54]
xor ecx, ecx
fldz
mov word [esp + 0xc], ax
mov word [esp + 0xc], cx
xor edx, edx
mov word [esp + 0x38], dx
fst dword [esp + 0x14]
mov word [esp + 0x18], ax
mov word [esp + 8], cx
push ebx
push ebp
xor ebp, ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x24], ebp
fst dword [esp + 8]
fstp dword [esp + 0xc]
mov ebx, 1
fld dword [esp + 0xc]
mov dword [esp + 0x48], ebp
fld1
mov dword [esp + 0x50], ebx
fsub st(1), st(0)
push esi
fxch st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
mov dx, word [0x4249bc]
fsub qword [0x41f5c8]
movsx eax, dx
mov dword [esp + 0x50], eax
fild dword [esp + 0x50]
faddp st(1)
call fcn.0040b610
mov esi, dword [esp + 0x378]
mov word [0x4249bc], ax
fld dword [esp + 0x10]
fsubr qword [0x41f5c0]
mov dword [esp + 0x58], ebx
lea edx, [esp + 0x54]
push edx
fsub dword [esp + 0x10]
lea ecx, [esp + 0x50]
push esi
fstp dword [0x4235bc]
fsubr dword [esp + 0x18]
mov dword [esp + 0x64], ecx
fstp dword [esp + 0x18]
call fcn.00401800
add esp, 8
test eax, eax
jl 0x4068db
mov eax, dword [esi + 8]
test byte [eax], bl
je 0x4068db
fld qword [0x425930]
mov cx, word [esp + 0x14]
fsub qword [0x41f708]
movsx edx, cx
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
fcompp
fnstsw ax
fld qword [0x425930]
fadd qword [0x41f350]
fstp qword [0x425930]
test bl, ah
jne 0x40621f
mov eax, dword [0x423938]
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
fmul dword [0x423994]
fstp dword [0x423994]
add dword [0x423938], ebx
lea ecx, [esp + 0x1c]
push esi
push ecx
call fcn.004021d0
push ebp
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x3c]
mov edx, 0xfffff800
mov word [esp + 0x24], dx
push ecx
call fcn.00402270
mov dx, word [0x425a94]
movsx eax, dx
push 0x300
add eax, 0x124cd7b
lea ecx, [esp + 0x80]
push ebp
mov dword [0x42577c], eax
dec word [0x425a94]
push ecx
call fcn.0040b750
mov edx, dword [esp + 0x394]
push edx
call fcn.00402930
add esp, 0x24
cmp eax, 0x29f
jle 0x406293
mov dword [esp + 0x10], 6
jmp 0x4062c3
cmp eax, 0xef
jle 0x4062a4
mov dword [esp + 0x10], 5
jmp 0x4062c3
cmp eax, 0x4f
jle 0x4062b3
mov dword [esp + 0x10], 4
jmp 0x4062c3
xor ecx, ecx
cmp eax, 0x17
setg cl
lea ecx, [ecx + ecx + 1]
mov dword [esp + 0x10], ecx
push edi
mov edi, dword [esi + 4]
add edi, ebx
mov ebx, dword [esp + 0x370]
push edi
push ebx
call fcn.00401630
add esp, 8
mov dword [esp + 0x18], eax
cmp eax, ebp
jne 0x4067fb
lea edx, [esp + 0x78]
push edi
push edx
call fcn.00401630
add esp, 8
mov dword [esp + 0x18], eax
cmp eax, ebp
jne 0x4067fb
mov ax, word [0x425714]
mov edx, dword [0x425aa4]
movsx ecx, ax
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fsub qword [0x423208]
fsubp st(1)
call fcn.0040b610
mov word [0x425714], ax
lea eax, [edi + edi]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.00401630
add esp, 8
mov dword [esp + 0x18], eax
cmp eax, ebp
jne 0x4067fb
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fld qword [esp + 0x64]
fsub qword [0x41f700]
fadd dword [0x425acc]
fsubp st(1)
call fcn.0040b610
mov ebp, dword [esp + 0x380]
mov dword [esp + 0x2c], eax
fld dword [0x425acc]
fsub qword [0x41f350]
xor eax, eax
fstp dword [0x425acc]
cmp ebp, eax
je 0x4063b4
cmp dword [ebp + 8], eax
je 0x4063b4
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 8]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
jmp 0x4064b9
mov dword [esp + 0x10], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x30]
push 1
push eax
call fcn.00401630
mov edi, eax
add esp, 8
test edi, edi
jne 0x4063fd
mov ecx, dword [esp + 0x34]
lea edx, [ecx*4]
push edx
push eax
mov eax, dword [esp + 0x40]
push eax
call fcn.0040b750
mov ecx, dword [esp + 0x44]
mov dword [ecx], 1
add esp, 0xc
mov dword [esp + 0x30], 1
mov dword [esp + 0x18], edi
test edi, edi
jne 0x406802
mov edx, dword [esi + 4]
shl edx, 6
push edx
lea eax, [esp + 0x34]
push eax
call fcn.004033f0
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x406802
mov ecx, 1
add dword [0x425728], ecx
mov eax, dword [0x425728]
mov edx, dword [0x425a14]
add dword [0x425a14], ecx
add eax, 0x9b236f1f
sub edx, 0x10f7a8a8
cmp eax, edx
jle 0x406465
movzx eax, word [esp + 0x28]
movzx ecx, word [esp + 0x1c]
sub eax, ecx
mov word [esp + 0x28], ax
lea edx, [esp + 0x30]
push esi
push edx
mov eax, edx
push eax
call fcn.00405d40
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
jne 0x406802
mov ecx, dword [0x4244c0]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fsub qword [0x425948]
call fcn.0040b610
mov dword [0x4244c0], eax
test ebp, ebp
je 0x4064b9
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [ebp], edx
mov dword [ebp + 4], eax
mov dword [ebp + 8], ecx
mov edi, dword [esp + 0x374]
push esi
push edi
call fcn.00401800
add esp, 8
test eax, eax
jl 0x4064df
push esi
lea edx, [esp + 0x7c]
push edi
push edx
call fcn.00405d40
add esp, 0xc
jmp 0x4064ed
lea eax, [esp + 0x78]
push edi
push eax
call fcn.00401fa0
add esp, 8
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x3c]
push ecx
push edi
push esi
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x88]
push eax
call fcn.00402a30
lea ecx, [esp + 0x44]
push ecx
push ebx
call fcn.00401fa0
add esp, 0x1c
mov dword [esp + 0x18], eax
test eax, eax
jne 0x406802
lea edx, [esp + 0x3c]
push edx
push edi
push esi
push ebx
call fcn.00404340
mov ebx, dword [esp + 0x24]
add esp, 0x10
cmp ebx, 1
jle 0x406619
mov eax, dword [esi + 4]
dec ebx
mov ecx, ebx
mov ebp, 1
shl ebp, cl
inc eax
push eax
lea edi, [ebp + ebp*2]
lea edi, [esp + edi*4 + 0x70]
push edi
call fcn.00401630
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4067fb
lea ecx, [esp + 0x78]
push ecx
push edi
call fcn.00401fa0
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4067fb
test ebx, ebx
jle 0x4065aa
jmp 0x406590
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x3c]
push edx
push eax
push esi
push edi
push edi
call fcn.00402a30
add esp, 0x14
sub ebx, 1
jne 0x406590
mov ecx, dword [esp + 0x14]
mov ebx, 1
shl ebx, cl
inc ebp
cmp ebp, ebx
jge 0x406619
lea edi, [ebp + ebp*2]
lea edi, [esp + edi*4 + 0x6c]
mov ecx, dword [esi + 4]
inc ecx
push ecx
push edi
call fcn.00401630
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4067fb
lea edx, [edi - 0xc]
push edx
push edi
call fcn.00401fa0
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4067fb
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x3c]
push eax
push ecx
push esi
lea edx, [esp + 0x84]
push edx
push edi
call fcn.00402a30
inc ebp
add esp, 0x14
add edi, 0xc
cmp ebp, ebx
jl 0x4065c2
mov eax, dword [esp + 0x378]
mov ecx, dword [eax + 4]
xor ebx, ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], ebx
xor edi, edi
xor ebp, ebp
cmp dword [esp + 0x1c], 0
jne 0x406653
mov eax, dword [esp + 0x28]
mov edx, eax
dec eax
mov dword [esp + 0x28], eax
test edx, edx
je 0x40671c
mov dword [esp + 0x1c], 0x20
mov eax, dword [esp + 0x378]
mov edx, dword [eax + 8]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov eax, dword [edx + eax*4]
dec ecx
shr eax, cl
mov dword [esp + 0x1c], ecx
and eax, 1
jne 0x40669b
test ebx, ebx
je 0x406631
cmp ebx, 1
jne 0x40669b
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x370]
lea ecx, [esp + 0x3c]
push ecx
push edx
push esi
push eax
push eax
call fcn.00402a30
add esp, 0x14
jmp 0x406631
mov edx, dword [esp + 0x14]
inc edi
mov ecx, edx
sub ecx, edi
shl eax, cl
mov ebx, 2
or ebp, eax
cmp edi, edx
jne 0x406631
mov edi, edx
test edi, edi
jle 0x4066d8
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x374]
push ecx
push esi
push eax
push eax
call fcn.00402a30
add esp, 0x14
sub edi, 1
jne 0x4066b7
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x3c]
push edx
push eax
mov eax, dword [esp + 0x378]
lea ecx, [ebp + ebp*2]
push esi
lea edx, [esp + ecx*4 + 0x78]
push edx
push eax
call fcn.00402a30
fld dword [0x4238cc]
fstp dword [esp + 0x38]
add esp, 0x14
fld qword [0x41f6f8]
mov ebx, 1
fstp qword [0x425ee0]
jmp 0x40662d
mov ecx, dword [esp + 0x14]
mov ebx, 1
rol ebx, cl
test edi, edi
jle 0x406783
mov dword [esp + 0x1c], edi
nop
fld dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x370]
fmul qword [0x41f6f0]
lea ecx, [esp + 0x3c]
push ecx
push edx
fstp dword [esp + 0x2c]
push esi
push edi
push edi
call fcn.00402a30
add ebp, ebp
add esp, 0x14
test ebp, ebx
je 0x40677c
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x3c]
push eax
push ecx
push esi
lea edx, [esp + 0x84]
push edx
push edi
call fcn.00402a30
add esp, 0x14
sub dword [esp + 0x1c], 1
jne 0x406730
fld dword [0x42393c]
fadd qword [0x41f350]
fstp dword [0x42393c]
fld dword [esp + 0x24]
fld dword [0x42393c]
fsubr qword [0x41f6e8]
fcompp
fnstsw ax
test ah, 0x41
jp 0x4067e0
inc dword [0x423160]
mov ax, word [esp + 0x48]
movsx ecx, ax
add ecx, dword [0x423160]
dec dword [esp + 0x48]
cmp ecx, 0xa0872a57
jg 0x4067e0
fld qword [0x4249f0]
fadd qword [0x41f6e0]
fstp qword [0x4249f0]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x370]
lea edx, [esp + 0x3c]
push edx
push eax
push esi
push ecx
call fcn.00404340
add esp, 0x10
mov ebp, dword [esp + 0x380]
mov esi, dword [esp + 0x14]
lea ecx, [esi - 1]
mov eax, 1
shl eax, cl
mov edx, 1
mov ecx, esi
shl edx, cl
cmp eax, edx
jge 0x40683b
lea esi, [eax + eax*2]
sub edx, eax
lea esi, [esp + esi*4 + 0x6c]
mov edi, edx
push 0
push esi
call fcn.00401330
add esp, 8
add esi, 0xc
sub edi, 1
jne 0x406828
pop edi
push 0
lea edx, [esp + 0x3c]
lea eax, [esp + 0x78]
test ebp, ebp
je 0x406856
push edx
push eax
call fcn.00401330
add esp, 0xc
jmp 0x406865
lea ecx, [esp + 0x30]
push ecx
push edx
push eax
call fcn.00401330
add esp, 0x10
mov cx, word [0x425a8c]
movsx edx, cx
add edx, 0x1f696db6
cmp edx, 0x6f9f60d4
jne 0x4068aa
fld dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov ecx, 0xb6742fde
sub ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ecx
fisub dword [esp + 0xc]
pop esi
pop ebp
pop ebx
fstp dword [esp + 0x14]
inc dword [esp + 0x1c]
add esp, 0x35c
ret
fld qword [0x4235d8]
mov edx, dword [esp + 0x48]
fadd qword [0x41f6d8]
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
faddp st(1)
call fcn.0040b610
pop esi
pop ebp
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xc]
pop ebx
add esp, 0x35c
ret
pop esi
pop ebp
mov eax, 0xfffffffc
pop ebx
add esp, 0x35c
ret