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

Disassembly:
sub esp, 0x368
fldz
xor eax, eax
mov word [esp + 4], ax
fst qword [esp + 0x44]
fldz
push ebx
xor ebx, ebx
mov dword [esp + 0x2c], ebx
fst dword [esp + 0x28]
fst dword [esp + 0x20]
push ebp
fst dword [esp + 0x1c]
push edi
mov dword [esp + 0x18], ebx
fxch st(1)
fstp qword [esp + 0x48]
mov dword [esp + 0x38], ebx
fld qword [esp + 0x48]
fsubr qword [0x41f8b8]
call fcn.0040b240
mov edi, dword [esp + 0x384]
mov dword [esp + 0x18], eax
fld qword [0x423a78]
fadd qword [0x41f8b0]
lea eax, [esp + 0x68]
push eax
xor ecx, ecx
fmul qword [0x4235b0]
mov ebp, 1
lea edx, [esp + 0x68]
push edi
fstp qword [0x4235b0]
fld qword [0x423a78]
mov dword [esp + 0x6c], ebx
fadd qword [0x41f340]
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], edx
fstp qword [0x423a78]
fstp dword [esp + 0x1c]
mov word [esp + 0x24], cx
call fcn.00402860
add esp, 8
test eax, eax
jl 0x4079e1
mov ecx, dword [edi + 8]
test byte [ecx], 1
je 0x4079e1
lea edx, [esp + 0x24]
push edi
push edx
call fcn.00401970
mov eax, dword [0x423f24]
imul eax, eax, 0x2f693e51
push ebx
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x4c]
mov dword [0x423f24], eax
push edx
call fcn.00402a50
push 0x300
lea eax, [esp + 0x8c]
push ebx
push eax
call fcn.0040b3c0
fld qword [esp + 0x70]
mov ecx, dword [esp + 0x3a0]
fmul qword [0x41f8a8]
push ecx
fstp qword [esp + 0x74]
call fcn.00401cd0
add esp, 0x24
cmp eax, 0x29f
jle 0x40703f
mov dword [esp + 0x2c], 6
jmp 0x40706f
cmp eax, 0xef
jle 0x407050
mov dword [esp + 0x2c], 5
jmp 0x40706f
cmp eax, 0x4f
jle 0x40705f
mov dword [esp + 0x2c], 4
jmp 0x40706f
xor edx, edx
cmp eax, 0x17
setg dl
lea edx, [edx + edx + 1]
mov dword [esp + 0x2c], edx
mov ax, word [0x423c8c]
movsx ecx, ax
mov dword [esp + 0xc], ecx
fild dword [esp + 0xc]
fadd dword [esp + 0x20]
add word [0x423c8c], bp
fcomp qword [0x41f8a0]
fnstsw ax
test ah, 0x44
jp 0x4070c4
mov dx, word [esp + 0x10]
movsx eax, dx
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
fld qword [esp + 0x50]
fadd qword [0x41f898]
fsub qword [0x41f890]
fsubp st(1)
call fcn.0040b240
mov word [esp + 0x10], ax
push esi
mov esi, dword [edi + 4]
add esi, ebp
mov ebp, dword [esp + 0x37c]
push esi
push ebp
call fcn.004014d0
add esp, 8
mov dword [esp + 0x20], eax
cmp eax, ebx
jne 0x407954
lea ecx, [esp + 0x84]
push esi
push ecx
call fcn.004014d0
add esp, 8
mov dword [esp + 0x20], eax
cmp eax, ebx
jne 0x407954
add dword [esp + 0x1c], 0xb691df87
lea edx, [esi + esi]
push edx
lea eax, [esp + 0x60]
push eax
call fcn.004014d0
add esp, 8
mov dword [esp + 0x20], eax
cmp eax, ebx
jne 0x407954
mov ebx, dword [esp + 0x38c]
test ebx, ebx
je 0x407153
cmp dword [ebx + 8], 0
je 0x407153
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
jmp 0x4072c9
fldz
xor ecx, ecx
fstp dword [esp + 0x18]
lea eax, [esp + 0x40]
mov word [esp + 0x14], cx
movzx edx, word [esp + 0x14]
add edx, 0x2b581fe8
push 1
push eax
mov word [esp + 0x1c], dx
call fcn.004014d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4071b1
mov ecx, dword [esp + 0x44]
lea edx, [ecx*4]
push edx
push eax
mov eax, dword [esp + 0x50]
push eax
call fcn.0040b3c0
mov ecx, dword [esp + 0x54]
mov dword [ecx], 1
add esp, 0xc
mov dword [esp + 0x40], 1
mov dword [esp + 0x20], esi
test esi, esi
jne 0x40795b
mov edx, dword [edi + 4]
shl edx, 6
push edx
lea eax, [esp + 0x44]
push eax
call fcn.00402c10
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
jne 0x40795b
dec word [0x423b74]
fld qword [0x423b08]
fadd qword [0x41f888]
fsub qword [0x423f18]
mov cx, word [0x423b74]
movsx edx, cx
sub edx, 0x27c8436e
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x407229
fld qword [0x423a80]
fsub qword [0x41f880]
fstp qword [0x423a80]
lea eax, [esp + 0x40]
push edi
push eax
mov ecx, eax
push ecx
call fcn.00406780
add esp, 0xc
mov dword [esp + 0x20], eax
test eax, eax
jne 0x40795b
test ebx, ebx
je 0x40725e
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov dword [ebx], edx
mov dword [ebx + 4], eax
mov dword [ebx + 8], ecx
mov edx, dword [esp + 0x38]
cmp edx, 0x3be4425c
jge 0x4072a9
mov eax, dword [0x423ed8]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fadd dword [esp + 0x34]
fsub qword [esp + 0x4c]
mov ecx, dword [0x424248]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
faddp st(1)
call fcn.0040b240
mov dword [0x424248], eax
fld qword [esp + 0x4c]
fadd qword [0x41f340]
fstp qword [esp + 0x4c]
jmp 0x4072c9
fld dword [0x425af8]
fmul qword [esp + 0x4c]
fstp qword [esp + 0x4c]
fld dword [0x425af8]
fadd qword [0x41f340]
fstp dword [0x425af8]
fld dword [0x423cec]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x380]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
push edi
push esi
fadd dword [esp + 0x2c]
fadd qword [esp + 0x5c]
fsubp st(1)
fstp dword [0x423cec]
fld dword [esp + 0x2c]
fadd qword [0x41f340]
fstp dword [esp + 0x2c]
inc dword [esp + 0x40]
call fcn.00402860
add esp, 8
test eax, eax
jl 0x407326
push edi
lea eax, [esp + 0x88]
push esi
push eax
call fcn.00406780
add esp, 0xc
jmp 0x407337
lea ecx, [esp + 0x84]
push esi
push ecx
call fcn.00402b60
add esp, 8
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x5c]
push edx
push eax
push edi
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x94]
push edx
call fcn.00403110
mov ax, word [0x423e18]
mov ecx, dword [esp + 0x30]
cwde
add eax, 0xf638d36b
add ecx, eax
mov eax, 1
add word [0x423e18], ax
add dword [esp + 0x30], eax
add esp, 0x14
cmp ecx, 0x6af6e146
jne 0x4073a0
fld dword [esp + 0x24]
mov dx, word [0x424280]
movsx eax, dx
add eax, 0x69bd29fb
mov dword [esp + 0x10], eax
fisub dword [esp + 0x10]
fstp dword [esp + 0x24]
lea ecx, [esp + 0x40]
push ecx
push ebp
call fcn.00402b60
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
jne 0x40795b
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x5c]
push edx
push eax
push edi
push ebp
call fcn.004039e0
fld dword [esp + 0x3c]
mov ecx, dword [0x423ad8]
mov dword [esp + 0x20], ecx
fisub dword [esp + 0x20]
add esp, 0x10
fsub qword [0x41f878]
call fcn.0040b240
mov ebx, dword [esp + 0x30]
cmp ebx, 1
mov word [esp + 0x14], ax
fld dword [esp + 0x2c]
fld1
fadd st(1), st(0)
fxch st(1)
fstp dword [esp + 0x2c]
jle 0x407599
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
dec ebx
mov ecx, ebx
mov ebp, 1
fsub dword [esp + 0x34]
shl ebp, cl
call fcn.0040b240
mov dword [esp + 0x1c], eax
fadd dword [esp + 0x34]
mov eax, dword [edi + 4]
inc eax
lea esi, [ebp + ebp*2]
fstp dword [esp + 0x34]
push eax
lea esi, [esp + esi*4 + 0x7c]
push esi
call fcn.004014d0
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
jne 0x407954
fld dword [0x423d0c]
fadd qword [0x41f340]
fstp dword [0x423d0c]
mov cx, word [esp + 0x14]
movsx edx, cx
add edx, 0x7646b98f
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fsub dword [0x423d0c]
call fcn.0040b240
mov word [esp + 0x14], ax
lea eax, [esp + 0x84]
push eax
push esi
call fcn.00402b60
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
jne 0x407954
test ebx, ebx
jle 0x4074cb
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x5c]
push ecx
push edx
push edi
push esi
push esi
call fcn.00403110
add esp, 0x14
sub ebx, 1
jne 0x4074b1
mov ecx, dword [esp + 0x30]
mov ebx, 1
shl ebx, cl
inc ebp
cmp ebp, ebx
jge 0x407597
lea esi, [ebp + ebp*2]
lea esi, [esp + esi*4 + 0x78]
jmp 0x4074f0
fld dword [0x4243ac]
fmul qword [0x41f870]
fstp dword [0x4243ac]
mov eax, dword [edi + 4]
inc eax
push eax
push esi
call fcn.004014d0
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
jne 0x407954
fld qword [0x4242c8]
mov cx, word [0x424eec]
fsubr qword [0x41f868]
movsx edx, cx
mov dword [esp + 0x10], edx
lea eax, [esi - 0xc]
push eax
fild dword [esp + 0x14]
push esi
fsubp st(1)
fsubr dword [esp + 0x2c]
fstp dword [esp + 0x2c]
fld qword [0x4242c8]
fadd qword [0x41f340]
fstp qword [0x4242c8]
call fcn.00402b60
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
jne 0x407954
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x5c]
push ecx
push edx
push edi
lea eax, [esp + 0x90]
push eax
push esi
call fcn.00403110
inc ebp
add esp, 0x14
add esi, 0xc
cmp ebp, ebx
jl 0x4074f0
fld1
mov ecx, dword [esp + 0x384]
mov edx, dword [ecx + 4]
xor ebx, ebx
add dword [esp + 0x1c], 0x90998325
mov dword [esp + 0x10], edx
mov dword [esp + 0x54], ebx
xor esi, esi
xor ebp, ebp
cmp dword [esp + 0x54], 0
fld qword [0x4230d8]
fadd st(1)
fstp qword [0x4230d8]
fld qword [0x4230d0]
mov eax, dword [0x423ecc]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fsubp st(1)
fadd qword [0x4230d8]
fmul qword [0x423aa0]
fstp qword [0x423aa0]
jne 0x407679
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x424368]
mov eax, dword [esp + 0x10]
sub ecx, 0x53e09b0b
imul ecx, edx
mov dword [0x424368], ecx
mov ecx, eax
mov edx, 1
sub eax, edx
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x407831
mov ax, word [0x424254]
movsx ecx, ax
mov eax, 0x923e71d5
sub eax, ecx
cmp eax, 0xcfec2d
mov dword [esp + 0x54], 0x20
jl 0x40767e
movzx ecx, word [0x4235c8]
movsx eax, cx
movzx ecx, word [0x423c84]
movsx ecx, cx
sub eax, ecx
add eax, dword [esp + 0x1c]
add eax, dword [esp + 0x3c]
mov dword [esp + 0x3c], eax
add word [0x4235c8], dx
dec dword [esp + 0x1c]
jmp 0x40767e
mov edx, 1
add dword [0x423c88], edx
mov eax, dword [0x423c88]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
sub ecx, edx
mov dword [esp + 0x54], ecx
fadd dword [esp + 0x34]
mov eax, dword [0x425dc8]
mov dword [esp + 0x18], eax
fisub dword [esp + 0x18]
fadd dword [esp + 0x34]
fstp dword [esp + 0x34]
add dword [0x425dc8], edx
mov edx, dword [esp + 0x384]
mov eax, dword [edx + 8]
mov edx, dword [esp + 0x10]
mov eax, dword [eax + edx*4]
shr eax, cl
and eax, 1
jne 0x40777e
test ebx, ebx
je 0x4075b9
cmp ebx, 1
jne 0x40777e
mov ecx, dword [esp + 0x28]
fstp st(0)
lea eax, [esp + 0x5c]
push eax
mov eax, dword [esp + 0x380]
push ecx
push edi
push eax
push eax
call fcn.00403110
fld dword [esp + 0x48]
fsub qword [0x41f860]
mov edx, dword [0x423ed8]
mov dword [esp + 0x2c], edx
add esp, 0x14
fisub dword [esp + 0x18]
fld dword [esp + 0x2c]
fsub qword [0x41f858]
fcompp
fnstsw ax
fld dword [esp + 0x2c]
fld1
fadd st(1), st(0)
fxch st(1)
fstp dword [esp + 0x2c]
test ah, 0x41
jne 0x4075b9
fld dword [0x423e60]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fcompp
fnstsw ax
fld dword [0x423e60]
fadd st(1)
fstp dword [0x423e60]
test ah, 0x41
jne 0x4075b9
add dword [0x423ed4], 0x6937066
jmp 0x4075b9
mov edx, dword [esp + 0x30]
inc esi
mov ecx, edx
sub ecx, esi
shl eax, cl
mov ebx, 2
or ebp, eax
cmp esi, edx
jne 0x4075b9
mov esi, dword [esp + 0x28]
fstp st(0)
mov ebx, edx
test ebx, ebx
jle 0x4077c1
mov eax, dword [esp + 0x37c]
lea ecx, [esp + 0x5c]
push ecx
push esi
push edi
push eax
push eax
call fcn.00403110
add esp, 0x14
sub ebx, 1
jne 0x4077a4
lea edx, [esp + 0x5c]
push edx
mov edx, dword [esp + 0x380]
push esi
lea eax, [ebp + ebp*2]
push edi
lea ecx, [esp + eax*4 + 0x84]
push ecx
push edx
call fcn.00403110
mov eax, dword [esp + 0x50]
mov ecx, 0x5e20c803
sub ecx, eax
add esp, 0x14
cmp ecx, 0xe9282a
mov ebx, 1
jl 0x40782a
mov edx, dword [esp + 0x38]
add dword [esp + 0x38], ebx
cmp edx, 0xa2745ad6
jg 0x40782a
mov ax, word [esp + 0x14]
movsx ecx, ax
add ecx, 0x7744da0e
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
fadd dword [esp + 0x24]
fstp dword [esp + 0x24]
fld1
jmp 0x4075b5
mov ecx, dword [esp + 0x30]
mov ebx, edx
rol ebx, cl
test esi, esi
jle 0x4078c1
fstp st(0)
mov dword [esp + 0x10], esi
jmp 0x407850
fld dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x37c]
fsub qword [0x41f850]
lea edx, [esp + 0x5c]
push edx
push eax
fstp dword [esp + 0x34]
push edi
push esi
push esi
call fcn.00403110
mov cx, word [0x424280]
mov edx, dword [esp + 0x50]
movsx eax, cx
sub eax, edx
mov dword [esp + 0x2c], eax
add ebp, ebp
add esp, 0x14
fild dword [esp + 0x18]
fstp dword [esp + 0x2c]
test ebp, ebx
je 0x4078b8
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x5c]
push eax
push ecx
push edi
lea edx, [esp + 0x90]
push edx
push esi
call fcn.00403110
add esp, 0x14
sub dword [esp + 0x10], 1
jne 0x407850
fld1
fld qword [esp + 0x4c]
fsub qword [0x41f848]
fsub qword [0x41f840]
fcomp qword [0x41f838]
fnstsw ax
fsubr qword [esp + 0x4c]
fstp qword [esp + 0x4c]
test ah, 0x41
jne 0x407911
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fld qword [0x423aa8]
fsub qword [0x41f830]
fsub qword [0x41f828]
fsubp st(1)
call fcn.0040b240
mov dword [esp + 0x1c], eax
jmp 0x40791b
add dword [0x423c88], 0xd19023fd
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x37c]
lea ecx, [esp + 0x5c]
push ecx
push edx
push edi
push eax
call fcn.004039e0
fld dword [0x4235cc]
fadd qword [0x41f820]
add esp, 0x10
fsub qword [0x41f818]
fmul dword [0x423e60]
fstp dword [0x423e60]
mov ebx, dword [esp + 0x38c]
mov esi, dword [esp + 0x30]
lea ecx, [esi - 1]
mov eax, 1
shl eax, cl
mov edx, 1
mov ecx, esi
shl edx, cl
cmp eax, edx
jge 0x407994
lea esi, [eax + eax*2]
sub edx, eax
lea esi, [esp + esi*4 + 0x78]
mov edi, edx
push 0
push esi
call fcn.004012d0
add esp, 8
add esi, 0xc
sub edi, 1
jne 0x407981
pop esi
push 0
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x84]
test ebx, ebx
je 0x4079b2
push ecx
push edx
call fcn.004012d0
add esp, 0xc
jmp 0x4079c1
lea eax, [esp + 0x40]
push eax
push ecx
push edx
call fcn.004012d0
add esp, 0x10
fld qword [0x423ca0]
mov eax, dword [esp + 0x1c]
fmul qword [0x41f810]
pop edi
pop ebp
pop ebx
fstp qword [0x423ca0]
add esp, 0x368
ret
pop edi
pop ebp
mov eax, 0xfffffffc
pop ebx
add esp, 0x368
ret