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

Disassembly:
sub esp, 0x364
fldz
push ebx
fst qword [esp + 0x40]
push ebp
fldz
xor ebp, ebp
fst dword [esp + 0x28]
xor eax, eax
fxch st(1)
push esi
mov dword [esp + 0x18], ebp
fst qword [esp + 0x68]
fxch st(1)
fst dword [esp + 0x28]
fxch st(1)
fstp qword [esp + 0x50]
mov word [esp + 0x14], ax
mov dword [esp + 0xc], ebp
fst dword [esp + 0x10]
fld qword [0x424258]
fsub dword [esp + 0x10]
call fcn.0040af20
mov dword [0x425150], eax
mov cx, word [0x423100]
movsx edx, cx
sub edx, 0x189a102f
mov dword [esp + 0x10], edx
mov ebx, 1
mov esi, dword [esp + 0x380]
fild dword [esp + 0x10]
lea ecx, [esp + 0x5c]
fld qword [0x425128]
push ecx
fld qword [esp + 0x54]
lea eax, [esp + 0x5c]
faddp st(2)
push esi
fsubrp st(1)
fstp qword [0x425128]
fld qword [esp + 0x58]
fld1
fadd st(1), st(0)
fxch st(1)
fstp qword [esp + 0x58]
add word [0x423100], bx
fxch st(1)
fst dword [esp + 0x18]
fstp dword [esp + 0x24]
fld dword [0x424a08]
fadd st(1)
fstp dword [0x424a08]
fld dword [0x424a08]
fadd qword [0x425de0]
fadd dword [esp + 0x24]
fstp dword [esp + 0x24]
fadd qword [0x425de0]
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebx
fstp qword [0x425de0]
fld dword [esp + 0x18]
fld dword [esp + 0x24]
mov dword [esp + 0x68], ebx
fsubr qword [0x41f530]
mov dword [esp + 0x6c], eax
fsubp st(1)
fstp dword [esp + 0x18]
call fcn.00402580
add esp, 8
test eax, eax
jl 0x4075a8
mov edx, dword [esi + 8]
test byte [edx], bl
je 0x4075a8
lea eax, [esp + 0x20]
push esi
push eax
call fcn.00401360
push ebp
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.00403110
fld dword [0x41f778]
push 0x300
fstp dword [esp + 0x28]
lea eax, [esp + 0x88]
push ebp
push eax
call fcn.0040b4f0
mov ecx, dword [esp + 0x39c]
push ecx
call fcn.00401430
add esp, 0x24
cmp eax, 0x29f
jle 0x406e77
mov dword [esp + 0x24], 6
jmp 0x406ea7
cmp eax, 0xef
jle 0x406e88
mov dword [esp + 0x24], 5
jmp 0x406ea7
cmp eax, 0x4f
jle 0x406e97
mov dword [esp + 0x24], 4
jmp 0x406ea7
xor edx, edx
cmp eax, 0x17
setg dl
lea edx, [edx + edx + 1]
mov dword [esp + 0x24], edx
push edi
mov edi, dword [esi + 4]
add edi, ebx
mov ebx, dword [esp + 0x378]
push edi
push ebx
call fcn.004019f0
add esp, 8
mov dword [esp + 0x18], eax
cmp eax, ebp
jne 0x40750e
lea eax, [esp + 0x80]
push edi
push eax
call fcn.004019f0
add esp, 8
mov dword [esp + 0x18], eax
cmp eax, ebp
jne 0x40750e
add dword [0x424304], 0x70ea5f5e
lea ecx, [edi + edi]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.004019f0
add esp, 8
mov dword [esp + 0x18], eax
cmp eax, ebp
jne 0x40750e
mov ebp, dword [esp + 0x388]
test ebp, ebp
je 0x406f36
cmp dword [ebp + 8], 0
je 0x406f36
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 8]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
jmp 0x406fa7
lea eax, [esp + 0x34]
push 1
push eax
call fcn.00401ae0
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x407515
mov ecx, dword [esi + 4]
shl ecx, 6
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.004027a0
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x407515
lea eax, [esp + 0x34]
push esi
push eax
mov ecx, eax
push ecx
call fcn.00405e90
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
jne 0x407515
test ebp, ebp
je 0x406fa7
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [ebp], edx
mov dword [ebp + 4], eax
mov dword [ebp + 8], ecx
mov edi, dword [esp + 0x37c]
push esi
push edi
call fcn.00402580
add esp, 8
test eax, eax
jl 0x406fd0
push esi
lea edx, [esp + 0x84]
push edi
push edx
call fcn.00405e90
add esp, 0xc
jmp 0x406fe1
lea eax, [esp + 0x80]
push edi
push eax
call fcn.00402160
add esp, 8
fld dword [0x42424c]
mov edx, dword [esp + 0x24]
fmul qword [0x41f770]
lea ecx, [esp + 0x40]
push ecx
push edx
push esi
fstp dword [0x42424c]
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x90]
push ecx
call fcn.00404b90
fld qword [esp + 0x60]
fadd qword [0x41f358]
fstp qword [esp + 0x60]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x28], edx
fild dword [esp + 0x28]
fsub qword [esp + 0x60]
mov eax, dword [0x423104]
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
faddp st(1)
call fcn.0040af20
lea ecx, [esp + 0x48]
push ecx
push ebx
mov dword [esp + 0x38], eax
call fcn.00402160
add esp, 0x1c
mov dword [esp + 0x18], eax
test eax, eax
jne 0x407515
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x40]
push edx
push eax
push esi
push ebx
call fcn.00405fd0
mov eax, dword [esp + 0x38]
add esp, 0x10
cmp eax, 1
jle 0x4071bf
lea ebx, [eax - 1]
mov ecx, ebx
mov ebp, 1
shl ebp, cl
mov ecx, dword [esi + 4]
inc ecx
push ecx
lea edi, [ebp + ebp*2]
lea edi, [esp + edi*4 + 0x78]
push edi
call fcn.004019f0
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x40750e
lea edx, [esp + 0x80]
push edx
push edi
call fcn.00402160
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x40750e
test ebx, ebx
jle 0x4070ea
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x40]
push eax
push ecx
push esi
push edi
push edi
call fcn.00404b90
add esp, 0x14
sub ebx, 1
jne 0x4070d0
mov ecx, dword [esp + 0x28]
mov ebx, 1
add word [0x4241bc], bx
mov dx, word [0x4241bc]
movsx eax, dx
mov dword [esp + 0x14], eax
shl ebx, cl
inc ebp
fild dword [esp + 0x14]
fsub dword [esp + 0x2c]
cmp ebp, ebx
fsub qword [0x41f768]
fadd dword [0x4230f0]
fstp dword [0x4230f0]
fld dword [esp + 0x2c]
fld1
fsub st(1), st(0)
fxch st(1)
fstp dword [esp + 0x2c]
jge 0x4071c3
lea edi, [ebp + ebp*2]
fstp st(0)
lea edi, [esp + edi*4 + 0x74]
mov ecx, dword [esi + 4]
inc ecx
push ecx
push edi
call fcn.004019f0
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x40750e
lea edx, [edi - 0xc]
push edx
push edi
call fcn.00402160
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x40750e
inc dword [esp + 0x1c]
mov ax, word [0x4241b8]
mov ecx, dword [esp + 0x1c]
cwde
sub eax, ecx
sub eax, 0x5ec88d8e
lea edx, [esp + 0x40]
push edx
mov word [0x4241b8], ax
mov eax, dword [esp + 0x28]
push eax
push esi
lea ecx, [esp + 0x8c]
push ecx
push edi
call fcn.00404b90
inc ebp
add esp, 0x14
add edi, 0xc
cmp ebp, ebx
jl 0x407145
mov ebx, dword [esp + 0x378]
fld1
jmp 0x4071ca
mov ebx, dword [esp + 0x378]
fld dword [0x425180]
mov edx, dword [esp + 0x380]
mov eax, dword [edx + 4]
fadd st(1)
mov dword [esp + 0x14], eax
xor ebp, ebp
fstp dword [0x425180]
mov dword [esp + 0x2c], ebp
fld qword [0x424b20]
fadd st(1)
fstp qword [0x424b20]
fld dword [0x425180]
mov ecx, dword [esp + 0x10]
fsub qword [0x41f760]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fld qword [0x424b20]
fsubp st(2)
fcompp
fnstsw ax
test ah, 0x41
jp 0x40724b
fld dword [esp + 0x30]
mov dx, word [0x4234d8]
movsx eax, dx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fsubp st(1)
fsub qword [0x41f758]
call fcn.0040af20
mov dword [0x424ab0], eax
xor edi, edi
mov dword [esp + 0x20], edi
cmp dword [esp + 0x2c], 0
jne 0x407273
mov eax, dword [esp + 0x14]
mov ecx, eax
dec eax
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x407459
mov dword [esp + 0x2c], 0x20
fld qword [esp + 0x6c]
mov edx, dword [0x4241d0]
fadd qword [0x41f750]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
faddp st(1)
call fcn.0040af20
mov edx, dword [esp + 0x380]
mov ecx, dword [esp + 0x2c]
mov dword [0x4241d0], eax
fld qword [esp + 0x54]
mov eax, dword [0x424ab0]
sub eax, 0x63ac3dbd
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
dec ecx
mov dword [esp + 0x2c], ecx
fsubp st(1)
fstp qword [esp + 0x54]
dec dword [0x424ab0]
mov eax, dword [edx + 8]
mov edx, dword [esp + 0x14]
mov edx, dword [eax + edx*4]
shr edx, cl
and edx, 1
jne 0x407376
cmp dword [esp + 0x20], edx
je 0x407251
cmp dword [esp + 0x20], 1
jne 0x407376
fld qword [esp + 0x4c]
fadd qword [0x41f748]
fld dword [0x42313c]
fsubr qword [0x41f740]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x40734a
mov eax, dword [0x425ddc]
sub eax, 0x53799baf
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fadd dword [0x424afc]
fadd dword [0x42513c]
fstp dword [0x42513c]
fsubr dword [0x424afc]
fstp dword [0x424afc]
dec dword [0x425ddc]
jmp 0x40734c
fstp st(0)
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x40]
push ecx
push edx
push esi
push ebx
push ebx
call fcn.00404b90
fld1
mov eax, dword [esp + 0x30]
add esp, 0x14
imul eax, eax, 0x6955116f
mov dword [esp + 0x1c], eax
jmp 0x407251
fld dword [0x425270]
mov cx, word [0x42312c]
movsx eax, cx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
faddp st(1)
fsub qword [esp + 0x4c]
fld qword [0x424a20]
fcompp
fnstsw ax
fld qword [0x424a20]
fsub st(1)
fstp qword [0x424a20]
fld qword [esp + 0x4c]
fadd st(1)
fstp qword [esp + 0x4c]
fld dword [0x425270]
fadd st(1)
fstp dword [0x425270]
test ah, 0x41
jp 0x4073e7
mov cx, word [0x42429c]
movsx eax, cx
mov ecx, dword [0x4234b4]
add eax, 0xde57edf1
imul ecx, eax
mov dword [0x4234b4], ecx
mov eax, dword [esp + 0x28]
inc edi
mov ecx, eax
sub ecx, edi
shl edx, cl
mov dword [esp + 0x20], 2
or ebp, edx
cmp edi, eax
jne 0x407251
mov edi, dword [esp + 0x24]
fstp st(0)
test eax, eax
jle 0x40742a
mov dword [esp + 0x10], eax
lea edx, [esp + 0x40]
push edx
push edi
push esi
push ebx
push ebx
call fcn.00404b90
add esp, 0x14
sub dword [esp + 0x10], 1
jne 0x407412
lea eax, [esp + 0x40]
push eax
push edi
lea ecx, [ebp + ebp*2]
push esi
lea edx, [esp + ecx*4 + 0x80]
push edx
push ebx
call fcn.00404b90
fld1
add esp, 0x14
xor edi, edi
mov dword [esp + 0x20], 1
xor ebp, ebp
jmp 0x407251
fld dword [esp + 0x30]
fadd qword [0x41f738]
fsub dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
faddp st(1)
call fcn.0040af20
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
fsubr dword [esp + 0x30]
mov eax, 1
rol eax, cl
fstp dword [esp + 0x30]
mov dword [esp + 0x20], eax
test edi, edi
jle 0x4074fa
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x40]
push ecx
push edi
push esi
push ebx
push ebx
call fcn.00404b90
mov edx, dword [esp + 0x30]
mov dword [esp + 0x28], edx
fild dword [esp + 0x28]
add esp, 0x14
fsub qword [0x425258]
call fcn.0040af20
mov edi, dword [esp + 0x24]
add ebp, ebp
mov dword [esp + 0x1c], eax
test dword [esp + 0x20], ebp
je 0x4074f1
lea eax, [esp + 0x40]
push eax
push edi
push esi
lea ecx, [esp + 0x8c]
push ecx
push ebx
call fcn.00404b90
add esp, 0x14
sub dword [esp + 0x10], 1
jne 0x4074a1
jmp 0x4074fe
mov edi, dword [esp + 0x24]
lea edx, [esp + 0x40]
push edx
push edi
push esi
push ebx
call fcn.00405fd0
add esp, 0x10
mov ebp, dword [esp + 0x388]
mov esi, dword [esp + 0x28]
lea ecx, [esi - 1]
mov eax, 1
shl eax, cl
mov edx, 1
mov ecx, esi
shl edx, cl
cmp eax, edx
jge 0x407553
lea esi, [eax + eax*2]
sub edx, eax
lea esi, [esp + esi*4 + 0x74]
mov edi, edx
jmp 0x407540
push 0
push esi
call fcn.00402af0
add esp, 8
add esi, 0xc
sub edi, 1
jne 0x407540
pop edi
push 0
lea eax, [esp + 0x40]
lea ecx, [esp + 0x80]
test ebp, ebp
je 0x407571
push eax
push ecx
call fcn.00402af0
add esp, 0xc
jmp 0x407580
lea edx, [esp + 0x34]
push edx
push eax
push ecx
call fcn.00402af0
add esp, 0x10
mov edx, dword [0x425df4]
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
pop esi
pop ebp
pop ebx
fmul qword [0x423108]
fstp qword [0x423108]
add esp, 0x364
ret
pop esi
pop ebp
mov eax, 0xfffffffc
pop ebx
add esp, 0x364
ret