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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a6bc1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd4
mov eax, dword [ebp + 8]
push ebx
push esi
add eax, 0x70
push edi
push eax
lea ecx, [esp + 0x5c]
call fcn.0040f9a0
xor edx, edx
mov ecx, 0x7fff
mov eax, 0xffff8001
mov dword [esp + 0xb4], edx
mov word [esp + 0x30], cx
mov word [esp + 0x32], cx
mov word [esp + 0x34], ax
mov word [esp + 0x36], ax
mov dword [esp + 0xe8], edx
mov word [esp + 0x44], cx
mov word [esp + 0x46], cx
mov word [esp + 0x48], ax
mov word [esp + 0x4a], ax
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x7c], edx
mov byte [esp + 0xe8], 2
cmp dword [ecx], edx
je 0x48a3f0
mov ecx, 7
lea esi, [esp + 0x58]
lea edi, [esp + 0x98]
mov dword [esp + 0x38], edx
rep movsd dword es:[edi], dword [esi]
mov ecx, 7
lea esi, [esp + 0x98]
lea edi, [esp + 0x58]
mov dword [esp + 0x4c], edx
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x50], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], edx
mov ecx, 7
lea esi, [esp + 0x98]
lea edi, [esp + 0xb4]
lea edx, [esp + 0x58]
lea eax, [esp + 0x1c]
push edx
rep movsd dword es:[edi], dword [esi]
push eax
mov dword [esp + 0x2c], 0xffffffff
xor esi, esi
call fcn.004281b0
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x68]
add esp, 8
test eax, eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ecx
je 0x489fb2
mov dword [esp + 0x6c], eax
jmp 0x489fb7
mov byte [esp + 0x69], 1
mov byte [esp + 0x70], 0
test si, si
jle 0x489fe1
movsx edi, si
sub esi, edi
lea edx, [esp + 0xb4]
lea eax, [esp + 0xd8]
push edx
push eax
call fcn.004281b0
add esp, 8
dec edi
jne 0x489fc6
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x58]
lea eax, [esp + 0xd0]
push edx
push eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ecx
inc esi
call fcn.004281b0
mov edx, dword [esp + 0x60]
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
add esp, 8
mov eax, dword [edx]
mov dword [esp + 0x30], ebx
test eax, eax
mov dword [esp + 0x34], ecx
je 0x48a04c
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x6c]
cmp eax, ecx
jne 0x48a02e
mov al, byte [esp + 0x70]
test al, al
jne 0x48a04c
movsx ecx, word [esp + 0x48]
movsx edx, word [esp + 0x30]
sub edx, ecx
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fcomp dword [ebp + 0x18]
fnstsw ax
test ah, 1
jne 0x489fe1
mov edx, dword [ebp + 8]
push 0
lea eax, [esp + 0x14]
push 0
fld dword [edx + 0x2c]
fmul qword [0x4dcb20]
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x22]
push eax
mov eax, dword [ebp + 0x14]
push ecx
push ecx
mov ecx, dword [ebp + 0x10]
fstp dword [esp]
fld dword [ebp + 0x1c]
push eax
push ecx
push edx
push 2
call sub.MSVCRT.dll__ftol
push eax
lea eax, [esp + 0xdc]
push esi
push eax
call fcn.00482520
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x40]
fstp qword [esp + 0x4c]
add esp, 0x30
add edx, esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], edx
test eax, eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
je 0x48a0bb
mov eax, dword [eax]
jmp 0x48a0bd
xor eax, eax
test eax, eax
mov dword [esp + 0x84], eax
je 0x48a0cc
mov ecx, dword [eax]
jmp 0x48a0ce
xor ecx, ecx
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x24]
test ecx, ecx
mov dword [esp + 0x90], 0
mov byte [esp + 0x94], 0
mov byte [esp + 0x8c], 0
mov byte [esp + 0x8d], 0
jl 0x48a149
mov eax, dword [eax + 0xc]
sub esp, 8
sub eax, ecx
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
fstp qword [esp + 0x2c]
fld dword [ebp + 0x1c]
fdivr qword [esp + 0x2c]
fadd qword [0x4a8220]
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_floor]
fmul dword [ebp + 0x1c]
mov eax, dword [esp + 0x34]
add esp, 8
inc eax
fsubr qword [esp + 0x24]
mov dword [esp + 0x2c], eax
fld st(0)
fmulp st(1)
fadd qword [esp + 0x74]
fstp qword [esp + 0x74]
lea ecx, [esp + 0x7c]
call fcn.00440460
mov edx, dword [esp + 0x84]
mov eax, dword [edx + 0xc]
mov dword [esp + 0x24], eax
mov al, byte [0x4dd258]
test al, al
je 0x48a185
lea ecx, [esp + 0x10]
call fcn.0043ff80
sub eax, 2
cdq
sub eax, edx
mov edi, eax
sar edi, 1
cmp edi, 1
mov dword [esp + 0x14], edi
jge 0x48a18e
mov edi, 1
mov dword [esp + 0x14], edi
fild dword [esp + 0x14]
lea ecx, [esp + 0x10]
fmul qword [esp + 0x1c]
fadd qword [esp + 0x3c]
fstp qword [esp + 0x3c]
call fcn.0043ff80
dec eax
push fcn.00456390
imul eax, edi
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x14]
fild dword [esp + 0x18]
fadd qword [esp + 0x50]
fstp qword [esp + 0x50]
call fcn.0043fe20
mov ecx, dword [esp + 0x58]
cmp dword [ecx], 0
je 0x48a1ee
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x6c]
cmp edx, eax
jne 0x489fbc
mov al, byte [esp + 0x70]
test al, al
je 0x489fbc
mov eax, dword [esp + 0x2c]
test eax, eax
jle 0x48a202
fild dword [esp + 0x2c]
fdivr qword [esp + 0x74]
fsqrt
jmp 0x48a208
fld qword [0x4a8228]
fld qword [esp + 0x4c]
fcomp qword [0x4a8228]
fnstsw ax
test ah, 0x41
jne 0x48a225
fld qword [esp + 0x3c]
fdiv qword [esp + 0x4c]
fsqrt
jmp 0x48a22e
fld dword [ebp + 0x18]
fmul dword [0x4a8370]
fst qword [esp + 0x1c]
fld dword [ebp + 0x1c]
fmul qword [0x4dd2a8]
fxch st(1)
fcompp
fnstsw ax
mov al, 0x46
test ah, 1
jne 0x48a24a
mov al, 0x50
movsx eax, al
push eax
mov ecx, dword [esp + 0x24]
sub esp, 8
mov edx, dword [esp + 0x28]
fstp qword [esp]
fld dword [ebp + 0x1c]
fdivr qword [esp + 0x28]
sub esp, 8
fstp qword [esp]
push ecx
push edx
push 0x4c66f8
call fcn.00443600
mov ecx, 7
lea esi, [esp + 0xb8]
lea edi, [esp + 0xd4]
add esp, 0x20
rep movsd dword es:[edi], dword [esi]
mov ecx, 7
lea esi, [esp + 0x98]
lea edi, [esp + 0x58]
mov edx, dword [ebp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
push 0
lea eax, [esp + 0x14]
push 0
fld dword [esi + 0x2c]
fmul qword [0x4dcb20]
lea ecx, [esp + 0x22]
push eax
mov eax, dword [ebp + 0x10]
push ecx
push ecx
mov ecx, dword [ebp + 0xc]
fstp dword [esp]
fld dword [ebp + 0x1c]
push edx
push eax
push ecx
push 2
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x5c]
push eax
lea eax, [esp + 0x80]
push edx
push eax
call fcn.00482520
mov ax, word [esp + 0x4a]
add esp, 0x30
cmp ax, 1
jle 0x48a301
movsx ecx, ax
mov dword [esp + 0x24], ecx
fild dword [esp + 0x24]
fdivp st(1)
fsqrt
mov al, byte [0x4dcb60]
test al, al
fstp qword [esp + 0x1c]
je 0x48a32a
mov eax, dword [0x4dc33c]
test eax, eax
je 0x48a32a
lea edx, [esp + 0x10]
push edx
push esi
push 0x11
push eax
call fcn.0046fc10
add esp, 0x10
push fcn.00456390
lea ecx, [esp + 0x14]
call fcn.0043fe20
fld dword [ebp + 0x1c]
fmul qword [0x4dd2a8]
fld qword [esp + 0x1c]
fcom st(1)
fld dword [ebp + 0x1c]
fnstsw ax
test ah, 1
je 0x48a377
fmul qword [0x4dd298]
fld st(1)
fcompp
fnstsw ax
test ah, 1
je 0x48a370
mov al, byte [esi + 9]
test al, al
jne 0x48a370
mov ecx, 0x4c6584
jmp 0x48a392
mov ecx, 0x4c66f4
jmp 0x48a392
fmul qword [0x4dd288]
fld st(1)
mov ecx, 0x4c6588
fcompp
fnstsw ax
test ah, 1
jne 0x48a392
mov ecx, 0x4c658c
fld dword [ebp + 0x1c]
fstp qword [esp + 0x3c]
fcomp st(1)
fnstsw ax
mov al, 0x46
test ah, 1
fstp st(0)
jne 0x48a3a8
mov al, 0x50
fld dword [esi + 0x14]
xor edx, edx
mov dl, byte [esi + 9]
push edx
mov edx, dword [esp + 0x44]
sub esp, 8
fstp qword [esp]
fld dword [ebp + 0x1c]
fdivr qword [esp + 0x28]
push edx
mov edx, dword [esp + 0x4c]
push edx
push ecx
movsx ecx, word [esp + 0x32]
movsx edx, al
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x38]
push edx
sub esp, 8
fstp qword [esp]
push eax
push ecx
push 0x4c66a4
call fcn.00443600
add esp, 0x34
push fcn.00456390
lea ecx, [esp + 0x14]
mov byte [esp + 0xec], 1
call fcn.0043fe20
mov ecx, dword [esp + 0xe0]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret