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

Disassembly:
sub esp, 0x68
push ebx
push ebp
push esi
call fcn.0043a7c0
mov cl, byte [eax + 0x28]
test cl, cl
jne 0x490b99
mov cl, byte [eax + 8]
test cl, cl
je 0x490ba2
xor bl, bl
mov eax, edi
call fcn.004915d0
test byte [edi + 0x20], 1
je 0x4911d5
mov eax, dword [edi + 8]
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 4]
lea ecx, [edx + eax + 4]
mov eax, dword [ecx]
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x2c]
push edx
call dword [eax + 0xc]
mov eax, dword [edi + 8]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 4]
lea ecx, [edx + eax + 4]
mov eax, dword [ecx]
lea edx, [esp + 0xc]
push edx
lea edx, [esp + 0x14]
push edx
call dword [eax + 0x10]
fld dword [0x60521c]
fld dword [edi + 0x38]
fcomp dword [0x617db0]
fnstsw ax
test ah, 0x44
jnp 0x490c13
fstp st(0)
fld dword [edi + 0x38]
jmp 0x490c46
mov eax, dword [0x64f6d8]
cmp eax, 0xffffffff
je 0x490c46
imul eax, eax, 0x1c
fstp st(0)
add eax, 0x6cbe68
mov esi, eax
mov ecx, dword [esi + 0x14]
cmp ecx, ebx
je 0x490c38
mov eax, dword [ecx]
lea edx, [esi + 8]
push edx
call dword [eax]
lea eax, [esi + 8]
push edi
mov ecx, 0x6cbe70
call fcn.00491890
fld st(0)
fsub dword [edi + 0x34]
fcom dword [0x617db0]
fst dword [esp + 0x2c]
fnstsw ax
test ah, 1
je 0x490c5e
fchs
fcomp dword [0x605214]
fnstsw ax
test ah, 0x41
jne 0x490c83
mov eax, dword [esp + 0x2c]
fstp st(0)
push eax
call fcn.00413700
fmul dword [0x605214]
add esp, 4
fadd dword [edi + 0x34]
fstp dword [edi + 0x34]
mov ecx, dword [edi + 0x34]
push ecx
mov ecx, dword [edi + 0x30]
call fcn.00492790
fild dword [esp + 0x10]
mov edx, dword [edi + 0x30]
fidiv dword [esp + 0xc]
fstp dword [edx + 0x54]
mov ecx, dword [edi + 0x30]
mov edx, dword [esp + 0x78]
mov eax, dword [ecx]
push edx
call dword [eax + 0xc]
mov ecx, dword [edi + 0x30]
lea eax, [esp + 0x5c]
call fcn.00427140
mov ecx, dword [edi + 0xc]
cmp ecx, ebx
je 0x490cdd
mov edx, dword [esp + 0x64]
fld dword [esp + 0x60]
fsub dword [0x658868]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x60]
push ecx
fstp dword [esp]
push edx
call dword [eax + 0x2c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
xor esi, esi
jmp 0x490cf0
cmp dword [esi + 0x6cbe68], ebx
je 0x4911a4
call int.00447cd0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x10]
test al, al
mov al, byte [esi + 0x6cbe80]
je 0x490d18
test al, 1
jne 0x490d1c
jmp 0x490d44
test al, 2
je 0x490d44
mov eax, dword [esi + 0x6cbe6c]
cmp eax, 0xc
je 0x490d2c
cmp eax, 1
jne 0x490d5f
call fcn.004d7dd0
mov ecx, eax
mov eax, dword [edi + 4]
call fcn.004d82e0
call fcn.004d7a70
test al, al
je 0x490d5f
mov eax, dword [esi + 0x6cbe68]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 4]
lea ecx, [edx + eax + 4]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x58]
jmp 0x4911a4
mov eax, dword [esi + 0x6cbe68]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 4]
lea ecx, [edx + eax + 4]
mov eax, dword [ecx]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x28]
push edx
call dword [eax + 0x10]
mov eax, dword [esi + 0x6cbe68]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 4]
lea ecx, [edx + eax + 4]
mov eax, dword [esp + 0x1c]
cdq
sub eax, edx
mov ebp, eax
mov eax, dword [esp + 0xc]
cdq
sub eax, edx
sar eax, 1
sar ebp, 1
sub eax, ebp
add eax, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
mov ebx, dword [ecx]
cdq
sub eax, edx
mov ebp, eax
mov eax, dword [esp + 0x14]
cdq
sub eax, edx
sar eax, 1
sar ebp, 1
sub eax, ebp
add eax, dword [esp + 0x2c]
push eax
call dword [ebx + 0x48]
mov eax, dword [esi + 0x6cbe68]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 4]
lea ecx, [edx + eax + 4]
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, dword [esi + 0x6cbe7c]
test ecx, ecx
je 0x490e55
mov edx, dword [ecx]
lea eax, [esi + 0x6cbe70]
push eax
call dword [edx]
mov dword [esi + 0x6cbe74], 0
mov eax, dword [esi + 0x6cbe6c]
cmp eax, 1
jle 0x490e0d
cmp eax, 7
jl 0x490e1c
mov eax, dword [esi + 0x6cbe6c]
test eax, eax
je 0x490e1c
cmp eax, 1
jne 0x490e55
mov ecx, dword [esi + 0x6cbe7c]
lea eax, [esp + 0x50]
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebx, dword [esi + 0x6cbe68]
lea eax, [esp + 0x50]
mov edx, edi
call fcn.004916c0
mov ebp, dword [esp + 0x18]
lea ecx, [esi + 0x6cbe70]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x6c], eax
cmp ebp, dword [0x64f6d8]
mov dword [esp + 0x68], edx
mov dword [esp + 0x70], ecx
jne 0x490e92
mov edx, dword [0x658864]
push edx
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x64]
push ecx
push edi
call fcn.004919d0
mov ecx, dword [edi + 8]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov edx, dword [ecx]
call dword [edx + 8]
mov edx, dword [eax]
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x6c]
push ecx
mov ecx, eax
call dword [edx + 0x40]
fld dword [esp + 0x3c]
fmul dword [esp + 0x3c]
mov dword [esp + 0x40], 0
fld dword [esp + 0x38]
mov dword [esp + 0x14], 0x3f800000
fmul dword [esp + 0x38]
faddp st(1)
fsqrt
fcom dword [0x658860]
fnstsw ax
test ah, 0x41
jne 0x490f2f
fdivr dword [0x658860]
fst dword [esp + 0x14]
fld dword [esp + 0x38]
fmul st(1)
fstp dword [esp + 0x38]
fld dword [esp + 0x3c]
fmul st(1)
fstp dword [esp + 0x3c]
fld dword [0x617db0]
fmul st(1)
fstp dword [esp + 0x40]
fcomp dword [0x617dbc]
fnstsw ax
test ah, 5
jp 0x490f31
mov bl, 1
jmp 0x490f33
fstp st(0)
xor bl, bl
mov eax, dword [edi + 0x28]
mov edx, dword [eax + 4]
mov ecx, dword [edx + 8]
mov edx, dword [ecx + eax + 4]
lea ecx, [ecx + eax + 4]
cmp dword [0x64f6d8], 0xffffffff
setne al
push eax
call dword [edx + 0x58]
cmp ebp, dword [0x64f6d8]
jne 0x4910b0
mov eax, dword [edi + 0x28]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 8]
lea ecx, [edx + eax + 4]
mov eax, dword [ecx]
call dword [eax + 0x24]
mov edx, dword [edi + 0x28]
mov ebp, dword [edx]
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x50]
mov dword [ecx], eax
mov dword [esp + 0x54], 0
mov eax, dword [esp + 0x54]
mov dword [ecx + 4], eax
mov dword [esp + 0x58], 0x3f800000
mov eax, dword [esp + 0x58]
mov dword [ecx + 8], eax
push edi
lea ecx, [esp + 0x48]
call fcn.00491940
fld dword [0x617e14]
fdiv dword [0x6cc568]
push ecx
mov ecx, edx
fmulp st(1)
fstp dword [esp]
call dword [ebp + 4]
test bl, bl
je 0x49101b
mov eax, dword [esi + 0x6cbe6c]
cmp eax, 1
jle 0x490fdb
cmp eax, 7
jl 0x49101b
fld dword [esp + 0x14]
fsub dword [0x617ee0]
fmul dword [0x617fc0]
fcom dword [0x617db0]
fnstsw ax
test ah, 0x41
jne 0x490ffe
fstp dword [esp + 0x2c]
jmp 0x491008
fstp st(0)
mov dword [esp + 0x2c], 0
mov eax, dword [edi + 0x28]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 8]
lea ecx, [edx + eax + 4]
mov edx, dword [esp + 0x2c]
jmp 0x49102c
mov eax, dword [edi + 0x28]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 8]
lea ecx, [edx + eax + 4]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx]
push edx
call dword [eax + 0x40]
mov eax, dword [esi + 0x6cbe68]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 4]
lea ecx, [edx + eax + 4]
mov eax, dword [ecx]
push 1
call dword [eax + 0x58]
cmp dword [esi + 0x6cbe6c], 0xa
jne 0x4910db
mov eax, dword [esi + 0x6cbe68]
fld dword [0x65885c]
mov ecx, dword [eax + 4]
fadd dword [0x617dbc]
mov edx, dword [ecx + 8]
lea ecx, [edx + eax + 4]
mov edx, dword [0x65885c]
mov eax, dword [ecx]
push 0
push edx
mov edx, dword [edi + 0x844]
test edx, edx
push ecx
fstp dword [esp]
push 0x43fa0000
fild dword [edi + 0x844]
jge 0x49109c
fadd dword [0x617db8]
push ecx
fstp dword [esp]
call fcn.004931f0
add esp, 0x10
fstp dword [esp]
call dword [eax + 4]
jmp 0x4910db
mov eax, dword [esi + 0x6cbe6c]
cmp eax, 1
jle 0x4910c0
cmp eax, 7
jl 0x4910db
mov eax, dword [esi + 0x6cbe68]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 4]
lea ecx, [edx + eax + 4]
mov eax, dword [ecx]
test bl, bl
sete dl
push edx
call dword [eax + 0x58]
cmp dword [esi + 0x6cbe6c], 2
jne 0x49116d
call fcn.004d89f0
mov cl, byte [eax + 0xa4]
mov eax, dword [esi + 0x6cbe68]
test cl, cl
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 4]
lea ecx, [edx + eax + 4]
mov eax, dword [ecx]
je 0x491168
push 1
call dword [eax + 0x58]
fild dword [edi + 0x844]
mov ecx, dword [0x655510]
mov edx, dword [0x65550c]
mov eax, dword [edi + 0x844]
test eax, eax
push 0
push ecx
push edx
push 0x43fa0000
jge 0x491139
fadd dword [0x617db8]
push ecx
lea ecx, [esp + 0x44]
fstp dword [esp]
push ecx
call fcn.00493210
mov eax, dword [esi + 0x6cbe68]
mov edx, dword [eax + 4]
mov ecx, dword [edx + 4]
mov edx, dword [ecx + eax + 4]
lea ecx, [ecx + eax + 4]
mov eax, dword [esp + 0x48]
add esp, 0x18
push eax
call dword [edx + 0x44]
jmp 0x49116d
push 0
call dword [eax + 0x58]
mov eax, dword [esi + 0x6cbe68]
fild dword [esp + 0xc]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 4]
fmul dword [esp + 0x3c]
mov ebp, dword [edx + eax + 4]
lea ebx, [edx + eax + 4]
call fcn.005c956c
fild dword [esp + 0x10]
push eax
fmul dword [esp + 0x3c]
call fcn.005c956c
push eax
mov ecx, ebx
call dword [ebp + 0x5c]
xor ebx, ebx
mov edx, dword [esp + 0x18]
inc edx
add esi, 0x1c
cmp esi, 0x700
mov dword [esp + 0x18], edx
jb 0x490cf0
mov eax, dword [edi + 0x844]
add eax, dword [esp + 0x78]
xor edx, edx
mov ecx, 0x1f4
div ecx
mov dword [edi + 0x844], edx
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 4