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

Disassembly:
push 0xffffffffffffffff
push 0x4a6b00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov eax, dword [esp + 0x50]
push ebp
add eax, 0x70
lea ecx, [esp + 0x28]
push eax
call fcn.0040f9a0
mov ecx, 0x7fff
mov eax, 0xffff8001
mov word [esp + 0x20], cx
mov word [esp + 0x22], cx
mov word [esp + 0x24], ax
mov word [esp + 0x26], ax
xor ebp, ebp
mov word [esp + 0x18], cx
mov dword [esp + 0x4c], ebp
mov word [esp + 0x1a], cx
mov word [esp + 0x1c], ax
mov word [esp + 0x1e], ax
mov ecx, dword [esp + 0x58]
mov byte [esp + 0x4c], 1
call fcn.00439de0
mov ecx, dword [esp + 0x5c]
call fcn.00439de0
mov ecx, dword [esp + 0x28]
cmp dword [ecx], ebp
jne 0x488593
xor al, al
pop ebp
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret
mov eax, dword [esp + 0x30]
push ebx
push esi
push edi
mov edx, dword [eax + 8]
mov byte [esp + 0x60], 0
mov dword [esp + 0x24], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x34]
call fcn.004403e0
mov ebx, dword [esp + 0x3c]
mov ecx, dword [ebx + 4]
shr ecx, 0x1e
test cl, 1
jne 0x48879c
mov edx, dword [ebx + 8]
mov dword [esp + 0x2c], edx
mov eax, dword [ebx + 0xc]
movsx edx, word [esp + 0x2c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x28]
movsx ecx, ax
sub edx, ecx
mov ecx, dword [esp + 0x7c]
cmp edx, ecx
jge 0x488615
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx]
cmp ecx, ebp
je 0x488615
cmp ebx, dword [ecx]
je 0x488615
cmp ebx, ebp
jne 0x48861f
cmp dword [esp + 0x38], ecx
jne 0x48861f
mov cl, byte [esp + 0x44]
test cl, cl
jne 0x48861f
cmp dword [ebx + 0x1c], ebp
jne 0x48863a
cmp dword [ebx + 0x18], ebp
jne 0x48863a
lea edx, [esp + 0x2c]
lea eax, [esp + 0x24]
push edx
push eax
call fcn.004384f0
mov ebx, dword [esp + 0x44]
add esp, 8
jmp 0x48879c
cmp word [esp + 0x24], ax
jg 0x488653
mov cx, word [esp + 0x2a]
cmp cx, word [esp + 0x26]
jl 0x488653
sub eax, dword [esp + 0x24]
jmp 0x488655
xor eax, eax
movsx edx, ax
mov al, byte [esp + 0x78]
mov dword [esp + 0x14], edx
test al, al
je 0x48869d
fild dword [esp + 0x14]
sub esp, 8
fdiv dword [esp + 0x74]
fadd qword [0x4a8220]
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_floor]
add esp, 8
call sub.MSVCRT.dll__ftol
mov ebp, eax
cmp ebp, 1
jge 0x488692
mov ebp, 1
mov ebx, dword [esp + 0x3c]
dec ebp
mov dword [esp + 0x10], ebp
jmp 0x4886e4
mov al, byte [esp + 0x74]
test al, al
je 0x4886e0
fild dword [esp + 0x14]
fdiv dword [esp + 0x6c]
fld st(0)
fld qword [0x4dd208]
fadd qword [0x4a8200]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4886db
fld qword [0x4a8200]
fsub qword [0x4dd208]
fcompp
fnstsw ax
test ah, 1
je 0x4886dd
jmp 0x4886e0
fstp st(0)
or ebp, 0xffffffff
mov dword [esp + 0x10], ebp
fild dword [esp + 0x10]
movsx esi, word [esp + 0x24]
fmul dword [esp + 0x6c]
mov dword [esp + 0x20], esi
fstp dword [esp + 0x10]
fild dword [esp + 0x14]
fsub dword [esp + 0x10]
fmul dword [0x4a8208]
fiadd dword [esp + 0x20]
call sub.MSVCRT.dll__ftol
mov edi, eax
mov al, byte [esp + 0x60]
test al, al
mov dword [esp + 0x20], edi
je 0x48874a
test ebp, ebp
jl 0x48874a
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x64]
sub esi, eax
push 1
push esi
call fcn.00439e30
mov ecx, dword [esp + 0x18]
push 1
sub edi, ecx
mov ecx, dword [esp + 0x6c]
push edi
call fcn.00439e30
mov ebx, dword [esp + 0x3c]
fild dword [esp + 0x20]
fadd dword [esp + 0x10]
call sub.MSVCRT.dll__ftol
movsx ecx, word [esp + 0x2c]
mov dword [esp + 0x18], eax
movsx eax, word [esp + 0x28]
sub ecx, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x60], ecx
fild dword [esp + 0x60]
fcomp dword [esp + 0x70]
fnstsw ax
test ah, 1
je 0x488787
test ebp, ebp
mov byte [esp + 0x60], 1
jge 0x48878c
mov byte [esp + 0x60], 0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x34]
xor ebp, ebp
mov eax, dword [ecx]
cmp eax, ebp
je 0x4887ca
cmp ebx, dword [eax]
je 0x4887ca
cmp ebx, ebp
jne 0x4885b5
cmp dword [esp + 0x38], eax
jne 0x4885b5
mov al, byte [esp + 0x44]
test al, al
jne 0x4885b5
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x50]
pop edi
pop esi
mov eax, dword [edx + 8]
pop ebx
cmp eax, 3
pop ebp
setge al
mov dword fs:[0], ecx
add esp, 0x4c
ret