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

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x6c]
fld dword [esp + 0x74]
mov eax, dword [eax]
fadd qword [0x4fd830]
mov ecx, dword [0x5042a4]
mov ecx, dword [ecx]
push ebx
push ebp
push esi
mov esi, dword [eax + 4]
push edi
mov edi, dword [esp + 0x80]
imul esi, edi
add esi, dword [eax + 0x18]
mov eax, dword [ecx + 4]
imul eax, dword [0x5042a8]
add eax, dword [ecx + 0x18]
mov edx, dword [esi + 0x2c]
sub esp, 8
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
fstp qword [esp]
call sub.MSVCR90.dll_floor
fstp dword [esp + 0x70]
fld dword [esp + 0x70]
call fcn.004dc850
fld dword [esp + 0x90]
fadd qword [0x4fd830]
mov dword [esp + 0x64], eax
fstp qword [esp]
call sub.MSVCR90.dll_floor
fstp dword [esp + 0x70]
add esp, 8
fld dword [esp + 0x68]
call fcn.004dc850
fld dword [esp + 0x90]
fld st(0)
mov dword [esp + 0x4c], eax
fld qword [0x4fd848]
fmul st(1), st(0)
fxch st(1)
call fcn.004dc850
fld qword [0x4fd878]
mov ebp, eax
mov dword [esp + 0x50], eax
test ebp, ebp
jge 0x49667a
fld dword [esp + 0x8c]
neg ebp
fadd st(1)
mov dword [esp + 0x50], ebp
fstp dword [esp + 0x8c]
fld dword [esp + 0x94]
fld st(0)
fmulp st(3)
fxch st(2)
call fcn.004dc850
mov dword [esp + 0x40], eax
test eax, eax
jge 0x4966aa
fadd dword [esp + 0x8c]
neg eax
mov dword [esp + 0x40], eax
fstp dword [esp + 0x8c]
jmp 0x4966ac
fstp st(0)
test ebp, ebp
je 0x4970eb
test eax, eax
je 0x4970eb
fldz
fld dword [esp + 0x8c]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x496700
fld qword [0x4fd870]
fdivr st(1)
call fcn.004dc850
imul eax, eax, 0xfffffe98
mov ecx, 0x168
sub ecx, eax
mov dword [esp + 0x68], ecx
fiadd dword [esp + 0x68]
fstp dword [esp + 0x8c]
fld dword [esp + 0x8c]
fmul qword [0x4fd9a0]
call fcn.004dc850
cdq
mov ecx, 0xb40
idiv ecx
mov ebx, edx
test ebx, ebx
jne 0x49674c
fmul dword [esp + 0x9c]
sub esp, 0x10
fstp dword [esp + 0xa4]
fld dword [esp + 0xa4]
fstp dword [esp + 0xc]
fmul dword [esp + 0xa8]
fstp dword [esp + 0xa4]
fld dword [esp + 0xa4]
jmp 0x496789
cmp ebx, 0x5a0
jne 0x4967bb
fchs
sub esp, 0x10
fmul dword [esp + 0xac]
fstp dword [esp + 0xa4]
fld dword [esp + 0xa4]
fstp dword [esp + 0xc]
fchs
fmul dword [esp + 0xa8]
fstp dword [esp + 0xa4]
fld dword [esp + 0xa4]
fstp dword [esp + 8]
mov esi, edi
fld dword [esp + 0x98]
mov edi, dword [esp + 0x8c]
fstp dword [esp + 4]
fld dword [esp + 0x94]
fstp dword [esp]
call fcn.00465cb0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], ecx
lea eax, [ebx + 0x2d0]
cdq
mov ecx, 0xb40
idiv ecx
mov ecx, dword [0x50423c]
mov eax, 0xb60b60b7
mov edi, dword [esi]
mov dword [esp + 0x60], edi
mov edx, dword [ecx + edx*4]
mov dword [esp + 0x88], edx
imul ebx
fild dword [esp + 0x88]
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fld qword [0x4fd998]
fmul st(1), st(0)
fxch st(1)
add edx, ebx
sar edx, 0xb
fstp dword [esp + 0x28]
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0xb40
mov edx, ebx
sub edx, eax
mov eax, dword [ecx + edx*4]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x88]
shl eax, 0x10
cdq
fild dword [esp + 0x84]
idiv ebp
fstp dword [esp + 0x58]
fmul dword [esp + 0x58]
fstp dword [esp + 0x24]
mov dword [esp + 0x88], eax
fild dword [esp + 0x88]
fld dword [esp + 0x98]
fld st(0)
fdivp st(2)
fxch st(1)
call fcn.004dc850
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x84]
shl eax, 0x10
cdq
idiv dword [esp + 0x40]
mov dword [esp + 0x88], eax
fidivr dword [esp + 0x88]
call fcn.004dc850
cmp ebx, 0x2d0
mov dword [esp + 0x48], eax
jge 0x49693f
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov edx, ecx
neg edx
mov dword [esp + 0x88], edx
fild dword [esp + 0x88]
mov edx, eax
neg edx
mov dword [esp + 0x88], edx
fstp dword [esp + 0x18]
sub edi, ecx
fld dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
fst dword [esp + 0x84]
dec edi
fild dword [esp + 0x88]
mov dword [esp + 0x68], edi
sub ecx, eax
dec ecx
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fst dword [esp + 0x88]
fild dword [esp + 0x68]
mov dword [esp + 0x68], ecx
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [esp + 0x20]
fstp dword [esp + 0x18]
fstp dword [esp + 0x1c]
fild dword [esp + 0x68]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fst dword [esp + 0x14]
fstp dword [esp + 0x38]
fstp dword [esp + 0x3c]
jmp 0x496afd
cmp ebx, 0x5a0
jge 0x4969cc
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
sub edi, eax
dec edi
mov dword [esp + 0x88], edi
fild dword [esp + 0x88]
mov edx, ecx
neg edx
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x2c]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
sub edx, ecx
fst dword [esp + 0x84]
dec edx
fild dword [esp + 0x88]
mov dword [esp + 0x68], edx
neg eax
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fst dword [esp + 0x88]
fxch st(1)
fstp dword [esp + 0x20]
fild dword [esp + 0x68]
mov dword [esp + 0x68], eax
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fst dword [esp + 0x1c]
fild dword [esp + 0x68]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
jmp 0x496aed
cmp ebx, 0x870
jge 0x496a65
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
sub edi, eax
dec edi
mov dword [esp + 0x88], edi
fild dword [esp + 0x88]
sub edx, ecx
dec edx
mov dword [esp + 0x88], edx
fstp dword [esp + 0x18]
neg eax
fld dword [esp + 0x18]
mov dword [esp + 0x68], eax
fst dword [esp + 0x84]
neg ecx
fild dword [esp + 0x88]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fst dword [esp + 0x88]
fild dword [esp + 0x68]
mov dword [esp + 0x68], ecx
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [esp + 0x20]
fstp dword [esp + 0x18]
fstp dword [esp + 0x1c]
fild dword [esp + 0x68]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fst dword [esp + 0x14]
fstp dword [esp + 0x38]
fstp dword [esp + 0x3c]
jmp 0x496afd
cmp ebx, 0xb40
jge 0x4970eb
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov ecx, eax
neg ecx
mov dword [esp + 0x88], ecx
fild dword [esp + 0x88]
mov ecx, dword [esp + 0x34]
sub edx, ecx
dec edx
fstp dword [esp + 0x18]
mov dword [esp + 0x88], edx
fld dword [esp + 0x18]
neg ecx
fst dword [esp + 0x84]
mov dword [esp + 0x68], ecx
fild dword [esp + 0x88]
sub edi, eax
dec edi
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fst dword [esp + 0x88]
fxch st(1)
fstp dword [esp + 0x20]
fild dword [esp + 0x68]
mov dword [esp + 0x68], edi
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fst dword [esp + 0x1c]
fild dword [esp + 0x68]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [esp + 0x18]
fstp dword [esp + 0x3c]
fstp dword [esp + 0x14]
fstp dword [esp + 0x38]
fld dword [esp + 0x84]
push ecx
fmul st(2)
fstp dword [esp + 0x88]
fld dword [esp + 0x8c]
fmul st(1)
fstp dword [esp + 0x8c]
fld dword [esp + 0x24]
fmul st(2)
fstp dword [esp + 0x24]
fld dword [esp + 0x20]
fmul st(1)
fstp dword [esp + 0x20]
fld dword [esp + 0x1c]
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x1c]
fmul dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [esp + 0x8c]
fmul dword [esp + 0x2c]
fld dword [esp + 0x88]
fmul dword [esp + 0x28]
fsubp st(1)
fmul dword [esp + 0xa0]
fstp dword [esp + 0x6c]
fld dword [esp + 0x6c]
fstp dword [esp]
call fcn.00461890
fld dword [esp + 0x18]
mov edi, eax
fmul dword [esp + 0x2c]
mov dword [esp + 0x68], edi
fld dword [esp + 0x1c]
fmul dword [esp + 0x28]
fsubp st(1)
fmul dword [esp + 0xa0]
fstp dword [esp + 0x6c]
fld dword [esp + 0x6c]
fstp dword [esp]
call fcn.00461890
fld dword [esp + 0x20]
mov ebx, eax
fmul dword [esp + 0x2c]
mov dword [esp + 0x6c], ebx
fld dword [esp + 0x24]
fmul dword [esp + 0x28]
fsubp st(1)
fmul dword [esp + 0xa0]
fstp dword [esp + 0x70]
fld dword [esp + 0x70]
fstp dword [esp]
call fcn.00461890
fld dword [esp + 0x3c]
mov ebp, eax
fmul dword [esp + 0x98]
fstp dword [esp + 0x98]
fld dword [esp + 0x98]
fmul dword [esp + 0x2c]
fld dword [esp + 0x40]
fmul dword [esp + 0x94]
fstp dword [esp + 0x98]
fld dword [esp + 0x98]
fmul dword [esp + 0x28]
fsubp st(1)
fmul dword [esp + 0xa0]
fstp dword [esp + 0x98]
fld dword [esp + 0x98]
fstp dword [esp]
call fcn.00461890
mov dword [esp + 0x40], eax
mov eax, ebp
add esp, 4
sub eax, edi
mov dword [esp + 0x94], eax
je 0x496d11
mov eax, ebp
sub eax, ebx
mov dword [esp + 0x6c], eax
je 0x496d11
fld dword [esp + 0x1c]
fld dword [esp + 0x24]
fld st(0)
fmulp st(2)
fld dword [esp + 0x20]
fld dword [esp + 0x28]
fld st(0)
fmulp st(2)
fxch st(3)
faddp st(1)
fld dword [esp + 0x88]
fmul st(2)
fld dword [esp + 0x84]
fmul st(4)
faddp st(1)
fsubr st(1)
fld qword [0x4fd990]
fmul st(1), st(0)
fld dword [esp + 0x98]
fld st(0)
fmulp st(3)
fild dword [esp + 0x94]
fdivp st(3)
fxch st(2)
call fcn.004dc850
mov edi, eax
mov dword [esp + 0x90], eax
test edi, edi
jge 0x496cbf
neg edi
mov dword [esp + 0x90], edi
fld dword [esp + 0x14]
fmulp st(4)
fld dword [esp + 0x18]
fmulp st(5)
fxch st(3)
faddp st(4)
fxch st(3)
fsub st(1)
fmul st(2)
fmul st(3)
fidiv dword [esp + 0x6c]
call fcn.004dc850
mov ebx, eax
mov dword [esp + 0x94], eax
test ebx, ebx
jge 0x496cf6
neg ebx
mov dword [esp + 0x94], ebx
fmulp st(1)
fmulp st(1)
call fcn.004dc850
mov ecx, eax
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], ecx
jmp 0x496d8a
fld dword [esp + 0x88]
xor ebx, ebx
fld dword [esp + 0x24]
xor edi, edi
fld st(0)
mov dword [esp + 0x94], ebx
fmulp st(2)
mov dword [esp + 0x90], edi
fld dword [esp + 0x84]
fld dword [esp + 0x28]
fld st(0)
fmulp st(2)
fxch st(3)
faddp st(1)
fld qword [0x4fd990]
fmul st(1), st(0)
fld dword [esp + 0x98]
fld st(0)
fmulp st(3)
fxch st(2)
call fcn.004dc850
fld dword [esp + 0x14]
fmulp st(3)
mov dword [esp + 0x88], eax
fld dword [esp + 0x18]
fmulp st(4)
fxch st(2)
faddp st(3)
fxch st(2)
fmulp st(1)
fmulp st(1)
call fcn.004dc850
mov dword [esp + 0x84], eax
mov ecx, eax
mov eax, dword [0x504210]
sub eax, dword [esp + 0x4c]
cmp ebp, eax
jge 0x496dcb
mov edx, dword [esp + 0x88]
mov edi, edi
cmp ebp, dword [esp + 0x64]
jge 0x496daa
sub edx, edi
jmp 0x496dac
add edx, ebx
cmp ebp, dword [esp + 0x68]
jge 0x496db6
add ecx, ebx
jmp 0x496db8
sub ecx, edi
inc ebp
cmp ebp, eax
jl 0x496da0
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
mov eax, dword [0x504214]
sub eax, dword [esp + 0x4c]
cmp dword [esp + 0x3c], eax
jl 0x496ddf
dec eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x80]
mov ebx, dword [esp + 0x7c]
push eax
mov eax, ebx
call fcn.00465970
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x4970ef
mov ecx, dword [0x5042a8]
mov eax, dword [0x5042a4]
push ecx
call fcn.00465970
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x30]
add esp, 4
mov ecx, ebx
call fcn.00465950
add eax, 0x10
cmp ebp, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x80], ebp
jg 0x4970ef
mov edx, dword [esp + 0x5c]
fild dword [esp + 0x50]
mov eax, dword [0x504208]
mov ecx, dword [0x50420c]
mov ebx, dword [esp + 0x30]
fstp dword [esp + 0x7c]
fild dword [esp + 0x40]
sub eax, edx
sub ecx, edx
mov edx, dword [esp + 0x34]
shl edx, 0x10
fstp dword [esp + 0x40]
fld qword [0x4fd988]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x4c]
fld dword [esp + 0x7c]
fld dword [esp + 0x54]
add ebp, edx
fld dword [esp + 0x58]
shl ebx, 0x10
add ebp, ebp
add ebp, ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x50], ebp
jmp 0x496eaa
mov ebx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x88]
mov edi, dword [esp + 0x84]
sar esi, 0x10
sar edi, 0x10
cmp esi, eax
mov dword [esp + 0x7c], esi
jge 0x496ecc
mov esi, eax
mov dword [esp + 0x7c], eax
cmp edi, ecx
jl 0x496ed3
lea edi, [ecx - 1]
fild dword [esp + 0x7c]
fdiv dword [esp + 0x98]
fild dword [esp + 0x80]
fdiv dword [esp + 0x9c]
fld st(3)
fmul st(2)
fld st(3)
fmul st(2)
fsubp st(1)
fmul st(6)
fdiv st(5)
call fcn.004dc850
fmul st(3)
fld st(2)
sub ebx, eax
fmulp st(2)
faddp st(1)
fmul st(4)
fdiv dword [esp + 0x40]
call fcn.004dc850
mov edx, dword [esp + 0x34]
sub edx, eax
mov eax, dword [esp + 0x5c]
lea ecx, [esi + eax]
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + ebp]
lea eax, [eax + ecx*2]
add eax, dword [esp + 0x24]
mov ecx, edi
sub ecx, esi
mov dword [esp + 0x7c], eax
lea eax, [ecx + 1]
mov ecx, eax
imul eax, dword [esp + 0x48]
imul ecx, dword [esp + 0x44]
add eax, edx
add ecx, ebx
cmp edi, esi
mov dword [esp + 0x58], eax
jl 0x496fc5
sar eax, 0x10
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x54], eax
jge 0x496f78
mov eax, ecx
sar eax, 0x10
cmp eax, dword [esp + 0x60]
jge 0x496f78
cmp dword [esp + 0x54], 0
jl 0x496f78
test eax, eax
jge 0x496f8f
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x48]
sub ecx, dword [esp + 0x44]
dec edi
cmp edi, esi
mov dword [esp + 0x58], eax
jge 0x496f55
jmp 0x496fc5
cmp esi, edi
jg 0x496fc5
mov ebp, dword [esp + 0x2c]
mov ecx, edx
sar ecx, 0x10
cmp ecx, ebp
jge 0x496fb3
mov eax, ebx
sar eax, 0x10
cmp eax, dword [esp + 0x60]
jge 0x496fb3
test ecx, ecx
jl 0x496fb3
test eax, eax
jge 0x496fc5
add ebx, dword [esp + 0x44]
add edx, dword [esp + 0x48]
add dword [esp + 0x7c], 2
inc esi
cmp esi, edi
jle 0x496f97
sub edi, esi
inc edi
test edi, edi
jle 0x49707b
mov dword [esp + 0x58], edi
mov esi, dword [esp + 0x74]
mov eax, edx
sar eax, 0x10
mov eax, dword [esi + eax*4]
mov ecx, ebx
sar ecx, 0x10
add eax, ecx
mov ecx, dword [esp + 0x20]
movzx ax, byte [eax + ecx]
movzx eax, ax
test ax, ax
je 0x497063
movzx ecx, ax
mov eax, dword [esp + 0x1c]
movzx esi, word [eax + ecx*2]
mov ecx, dword [esp + 0x7c]
movzx ecx, word [ecx]
mov eax, ecx
mov edi, esi
and eax, 0xf800
and edi, 0xf800
add eax, edi
cmp eax, 0xf800
jbe 0x497027
mov eax, 0xf800
mov edi, ecx
mov ebp, esi
and edi, 0x7e0
and ebp, 0x7e0
add edi, ebp
cmp edi, 0x7e0
jbe 0x497046
mov edi, 0x7e0
and ecx, 0x1f
and esi, 0x1f
add ecx, esi
cmp ecx, 0x1f
jbe 0x497058
mov ecx, 0x1f
or eax, edi
or eax, ecx
mov ecx, dword [esp + 0x7c]
mov word [ecx], ax
add ebx, dword [esp + 0x44]
add edx, dword [esp + 0x48]
add dword [esp + 0x7c], 2
sub dword [esp + 0x58], 1
jne 0x496fd4
mov eax, dword [esp + 0x80]
cmp eax, dword [esp + 0x64]
jge 0x497098
mov edx, dword [esp + 0x90]
sub dword [esp + 0x88], edx
jmp 0x4970a6
mov ecx, dword [esp + 0x94]
add dword [esp + 0x88], ecx
cmp eax, dword [esp + 0x68]
jge 0x4970bc
mov edx, dword [esp + 0x94]
add dword [esp + 0x84], edx
jmp 0x4970ca
mov ecx, dword [esp + 0x90]
sub dword [esp + 0x84], ecx
mov ebp, dword [esp + 0x50]
inc eax
add ebp, 4
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x80], eax
mov dword [esp + 0x50], ebp
jle 0x496e9e
fstp st(3)
fstp st(0)
fstp st(1)
fstp st(0)
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret