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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88
push ebx
push ebp
push esi
push edi
mov edi, ecx
movzx ecx, byte [edi + 0x5e]
movzx edx, byte [edi + 0x5d]
movzx esi, byte [edi + 0x5c]
mov eax, dword [edi + 0x12060]
mov dword [esp + 0x20], edi
mov ebx, 0x480
lea ecx, [ecx]
mov word [eax], cx
mov word [eax + 8], cx
mov word [eax + 0x10], cx
mov word [eax + 0x18], cx
mov word [eax + 2], dx
mov word [eax + 0xa], dx
mov word [eax + 0x12], dx
mov word [eax + 0x1a], dx
mov word [eax + 4], si
mov word [eax + 0xc], si
mov word [eax + 0x14], si
mov word [eax + 0x1c], si
add eax, 0x20
sub ebx, 1
jne 0x5facb0
mov eax, dword [edi + 0x16874]
mov ebx, dword [eax]
mov dword [esp + 0x94], ebx
jmp 0x5fad00
mov ebp, dword [edi + 0x16874]
lea eax, [edi + 0x16870]
mov esi, eax
test esi, esi
je 0x5fad16
cmp esi, eax
je 0x5fad1c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, ebp
je 0x5fb3bf
test esi, esi
jne 0x5fad2e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [esi + 4]
jne 0x5fad39
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebp, dword [ebx + 8]
mov eax, dword [ebp + 8]
sub eax, dword [edi + 0x4c]
mov ecx, dword [ebp + 0xc]
sub ecx, dword [edi + 0x50]
mov dword [esp + 0x40], eax
cdq
and edx, 0x1f
add eax, edx
mov ebx, eax
mov eax, ecx
cdq
and edx, 0x1f
add eax, edx
mov esi, eax
sar ebx, 5
sar esi, 5
cmp ebx, 0x2f
mov dword [esp + 0x50], ecx
ja 0x5fb390
cmp esi, 0x5f
ja 0x5fb390
mov eax, dword [ebp + 0x14]
mov ebp, dword [ebp + 0x18]
mov dword [esp + 0x30], ebp
fild dword [esp + 0x30]
mov edx, eax
fld1
shr edx, 0x12
fdivrp st(1)
and edx, 0x3f
mov dword [esp + 0x68], edx
mov edx, eax
shr eax, 2
and eax, 0x3f
shr edx, 0xa
and edx, 0x3f
mov dword [esp + 0x74], eax
mov dword [esp + 0x6c], edx
mov eax, ebp
cdq
and edx, 0x1f
mov ecx, ebx
mov edi, esi
add eax, edx
shl ecx, 5
shl edi, 5
sar eax, 5
add ecx, 0x10
add edi, 0x10
test eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x44], 0
fstp dword [esp + 0x78]
jle 0x5fb390
lea eax, [esi + esi*2]
shl eax, 4
mov dword [esp + 0x30], eax
add eax, 0x30
mov dword [esp + 0x5c], eax
lea eax, [edi + 0x20]
mov dword [esp + 0x48], eax
mov eax, ecx
sub eax, dword [esp + 0x40]
lea ebp, [esi + 1]
mov dword [esp + 0x38], eax
mov dword [esp + 0x54], ebp
mov ebp, dword [esp + 0x50]
mov eax, edi
sub eax, ebp
add eax, 0x20
sub edi, ecx
mov edx, ebx
sub esi, ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x28], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x8c], edi
mov dword [esp + 0x7c], esi
jmp 0x5fae50
mov ebp, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x2c]
test edx, edx
mov dword [esp + 0x24], edx
jl 0x5faf97
mov ecx, dword [esp + 0x54]
add ecx, 0xffffffff
js 0x5faf97
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x5c]
lea eax, [eax + ebp - 0x20]
add ecx, edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x60], eax
mov eax, dword [edx + 0x12060]
lea esi, [eax + ecx*8 - 0x180]
mov eax, dword [esp + 0x34]
add eax, 2
xor edi, edi
test eax, eax
mov dword [esp + 0x18], eax
jle 0x5faf97
mov ebx, dword [esp + 0x38]
lea esp, [esp]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x3c]
push ebp
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
call fcn.005fa4a0
test al, al
je 0x5faf6f
mov eax, dword [esp + 0x60]
sub eax, ebp
mov ecx, eax
mov edx, ebx
imul ecx, eax
imul edx, ebx
add ecx, edx
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
call sub.MSVCR80.dll__CIsqrt
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fmul dword [esp + 0x78]
fld qword [0x654e60]
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 0x14]
fsub dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
or eax, 0xc00
mov dword [esp + 0x80], eax
fldcw word [esp + 0x80]
fistp qword [esp + 0x80]
mov eax, dword [esp + 0x80]
test eax, eax
fldcw word [esp + 0x14]
jle 0x5faf6f
mov ecx, eax
imul ecx, dword [esp + 0x68]
mov edx, eax
imul eax, dword [esp + 0x74]
imul edx, dword [esp + 0x6c]
shr ecx, 0x10
add word [esi], cx
shr edx, 0x10
add word [esi + 2], dx
shr eax, 0x10
add word [esi + 4], ax
mov eax, dword [esp + 0x24]
add eax, 1
cmp eax, 0x30
mov dword [esp + 0x24], eax
jge 0x5faf97
add dword [esp + 0x3c], 0x20
add edi, 1
add ebx, 0x20
add esi, 8
cmp edi, dword [esp + 0x18]
jl 0x5faeb0
cmp dword [esp + 0x44], 0
je 0x5fb340
mov eax, dword [esp + 0x4c]
test eax, eax
mov dword [esp + 0x24], eax
jl 0x5fb0f0
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x70]
add eax, ecx
cmp eax, 0x60
jge 0x5fb0f0
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x30]
mov ebp, dword [esp + 0x58]
add edx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x4c]
add ecx, edx
mov edx, dword [eax + 0x12060]
mov eax, dword [esp + 0x34]
add eax, 2
xor edi, edi
test eax, eax
lea esi, [edx + ecx*8]
jle 0x5fb0f0
mov ebx, dword [esp + 0x38]
jmp 0x5fb010
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x60]
push eax
push ecx
mov ecx, dword [esp + 0x28]
push edx
push ebp
call fcn.005fa4a0
test al, al
je 0x5fb0c5
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x50]
mov ecx, ebx
mov edx, eax
imul ecx, ebx
imul edx, eax
add ecx, edx
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
call sub.MSVCR80.dll__CIsqrt
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fmul dword [esp + 0x78]
fld qword [0x654e60]
fmul st(1), st(0)
fxch st(1)
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
fstp dword [esp + 0x18]
fsub dword [esp + 0x18]
or eax, 0xc00
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp qword [esp + 0x18]
mov eax, dword [esp + 0x18]
test eax, eax
fldcw word [esp + 0x14]
jle 0x5fb0c5
mov ecx, eax
imul ecx, dword [esp + 0x68]
mov edx, eax
imul eax, dword [esp + 0x74]
imul edx, dword [esp + 0x6c]
shr ecx, 0x10
add word [esi], cx
shr edx, 0x10
add word [esi + 2], dx
shr eax, 0x10
add word [esi + 4], ax
mov eax, dword [esp + 0x24]
add eax, 1
cmp eax, 0x30
mov dword [esp + 0x24], eax
jge 0x5fb0f0
mov eax, dword [esp + 0x34]
add edi, 1
add eax, 2
add ebp, 0x20
add ebx, 0x20
add esi, 8
cmp edi, eax
jl 0x5fb010
cmp dword [esp + 0x4c], 0
mov eax, dword [esp + 0x54]
mov dword [esp + 0x24], eax
jl 0x5fb21e
test eax, eax
jl 0x5fb21e
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x48]
add ecx, edx
mov edx, dword [eax + 0x12060]
xor edi, edi
cmp dword [esp + 0x34], edi
lea esi, [edx + ecx*8]
jle 0x5fb21e
mov ebx, dword [esp + 0x2c]
jmp 0x5fb140
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x58]
push eax
push ecx
mov ecx, dword [esp + 0x28]
push ebp
push edx
call fcn.005fa4a0
test al, al
je 0x5fb1f5
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x40]
mov edx, ebx
mov ecx, eax
imul edx, ebx
imul ecx, eax
add ecx, edx
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
call sub.MSVCR80.dll__CIsqrt
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fmul dword [esp + 0x78]
fld qword [0x654e60]
fmul st(1), st(0)
fxch st(1)
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
fstp dword [esp + 0x18]
fsub dword [esp + 0x18]
or eax, 0xc00
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp qword [esp + 0x18]
mov eax, dword [esp + 0x18]
test eax, eax
fldcw word [esp + 0x14]
jle 0x5fb1f5
mov ecx, eax
imul ecx, dword [esp + 0x68]
mov edx, eax
imul eax, dword [esp + 0x74]
imul edx, dword [esp + 0x6c]
shr ecx, 0x10
add word [esi], cx
shr edx, 0x10
add word [esi + 2], dx
shr eax, 0x10
add word [esi + 4], ax
mov eax, dword [esp + 0x24]
add eax, 1
cmp eax, 0x60
mov dword [esp + 0x24], eax
jge 0x5fb21e
add edi, 1
add ebp, 0x20
add ebx, 0x20
add esi, 0x180
cmp edi, dword [esp + 0x34]
jl 0x5fb140
mov eax, dword [esp + 0x70]
cmp eax, 0x30
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x24], ecx
jge 0x5fb340
test ecx, ecx
jl 0x5fb340
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x20]
mov ebp, dword [esp + 0x48]
add ecx, eax
mov eax, dword [edx + 0x12060]
xor edi, edi
cmp dword [esp + 0x34], edi
lea esi, [eax + ecx*8]
jle 0x5fb340
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push ebp
push eax
call fcn.005fa4a0
test al, al
je 0x5fb317
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x40]
mov ecx, ebx
mov edx, eax
imul ecx, ebx
imul edx, eax
add ecx, edx
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
call sub.MSVCR80.dll__CIsqrt
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fmul dword [esp + 0x78]
fld qword [0x654e60]
fmul st(1), st(0)
fxch st(1)
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
fstp dword [esp + 0x18]
fsub dword [esp + 0x18]
or eax, 0xc00
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp qword [esp + 0x18]
mov eax, dword [esp + 0x18]
test eax, eax
fldcw word [esp + 0x14]
jle 0x5fb317
mov ecx, eax
imul ecx, dword [esp + 0x68]
mov edx, eax
imul eax, dword [esp + 0x74]
imul edx, dword [esp + 0x6c]
shr ecx, 0x10
add word [esi], cx
shr edx, 0x10
add word [esi + 2], dx
shr eax, 0x10
add word [esi + 4], ax
mov eax, dword [esp + 0x24]
add eax, 1
cmp eax, 0x60
mov dword [esp + 0x24], eax
jge 0x5fb340
add edi, 1
add ebp, 0x20
add ebx, 0x20
add esi, 0x180
cmp edi, dword [esp + 0x34]
jl 0x5fb262
mov eax, dword [esp + 0x44]
add dword [esp + 0x34], 2
mov ecx, 0x30
add dword [esp + 0x30], ecx
sub dword [esp + 0x5c], ecx
mov edx, 1
add dword [esp + 0x70], edx
sub dword [esp + 0x4c], edx
sub dword [esp + 0x54], edx
mov ecx, 0x20
add dword [esp + 0x28], ecx
sub dword [esp + 0x58], ecx
sub dword [esp + 0x38], ecx
sub dword [esp + 0x48], ecx
sub dword [esp + 0x2c], ecx
add eax, edx
cmp eax, dword [esp + 0x64]
mov dword [esp + 0x44], eax
jl 0x5fae44
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x94]
add eax, 0x16870
cmp esi, dword [eax + 4]
jne 0x5fb3ab
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x94], eax
mov ebx, eax
jmp 0x5fad00
add edi, 0x12134
mov dword [esp + 0x3c], 0x188
mov dword [esp + 0x44], edi
mov dword [esp + 0x38], 0x5e
lea esp, [esp]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
mov ecx, dword [edx + 0x12068]
mov dword [esp + 0x30], esi
mov esi, dword [edx + 0x12060]
add ecx, eax
add esi, eax
lea edi, [esi - 8]
lea ebx, [esi - 0x180]
lea ebp, [esi + 0x180]
mov dword [esp + 0x48], 0x17
movzx edx, word [ebx]
movzx eax, word [ebp]
add eax, edx
movzx edx, word [edi]
add eax, edx
movzx edx, word [esi]
add eax, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
mov word [ecx], ax
movzx edx, word [ebx + 2]
movzx eax, word [ebp + 2]
add eax, edx
movzx edx, word [edi + 2]
add eax, edx
movzx edx, word [esi + 2]
add eax, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
mov word [ecx + 2], ax
movzx edx, word [ebx + 4]
movzx eax, word [ebp + 4]
add eax, edx
movzx edx, word [edi + 4]
add eax, edx
movzx edx, word [esi + 4]
add eax, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [esp + 0x64], eax
mov word [ecx + 4], ax
movzx eax, word [ecx]
cmp ax, 0xff
mov edx, 0xff
ja 0x5fb491
movzx edx, ax
movzx eax, word [ecx + 2]
cmp ax, 0xff
jbe 0x5fb4a5
mov dword [esp + 0x2c], 0xff
jmp 0x5fb4ac
movzx eax, ax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x64]
cmp ax, 0xff
jbe 0x5fb4c0
mov dword [esp + 0x28], 0xff
jmp 0x5fb4c7
movzx eax, ax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
or edx, 0xffffff00
shl edx, 8
or edx, dword [esp + 0x2c]
shl edx, 8
or edx, dword [esp + 0x28]
mov dword [eax], edx
movzx edx, word [ebx + 8]
movzx eax, word [ebp + 8]
add eax, edx
movzx edx, word [edi + 8]
add eax, edx
movzx edx, word [esi + 8]
add eax, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
mov word [ecx + 8], ax
movzx edx, word [ebx + 0xa]
movzx eax, word [ebp + 0xa]
add eax, edx
movzx edx, word [edi + 0xa]
add eax, edx
movzx edx, word [esi + 0xa]
add eax, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
mov word [ecx + 0xa], ax
movzx edx, word [ebx + 0xc]
movzx eax, word [ebp + 0xc]
add eax, edx
movzx edx, word [edi + 0xc]
add eax, edx
movzx edx, word [esi + 0xc]
add eax, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [esp + 0x64], eax
mov word [ecx + 0xc], ax
movzx eax, word [ecx + 8]
cmp ax, 0xff
mov edx, 0xff
ja 0x5fb560
movzx edx, ax
movzx eax, word [ecx + 0xa]
cmp ax, 0xff
jbe 0x5fb574
mov dword [esp + 0x2c], 0xff
jmp 0x5fb57b
movzx eax, ax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x64]
cmp ax, 0xff
jbe 0x5fb58f
mov dword [esp + 0x28], 0xff
jmp 0x5fb596
movzx eax, ax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
or edx, 0xffffff00
shl edx, 8
or edx, dword [esp + 0x2c]
add eax, 8
shl edx, 8
or edx, dword [esp + 0x28]
mov dword [esp + 0x30], eax
mov dword [eax - 4], edx
mov eax, 1
add ecx, 0x10
add esi, 0x10
add edi, 0x10
add ebx, 0x10
add ebp, 0x10
sub dword [esp + 0x48], eax
jne 0x5fb417
add dword [esp + 0x44], 0xc0
add dword [esp + 0x3c], 0x180
sub dword [esp + 0x38], eax
jne 0x5fb3e0
mov eax, dword [esp + 0x20]
lea ecx, [eax + 0x1212c]
mov edx, 0x60
nop
mov esi, dword [eax + 0x5c]
or esi, 0xff000000
mov dword [ecx - 0xbc], esi
mov esi, dword [eax + 0x5c]
or esi, 0xff000000
mov dword [ecx], esi
add ecx, 0xc0
sub edx, 1
jne 0x5fb600
lea ecx, [eax + 0x167b0]
mov edx, 0x30
mov esi, dword [eax + 0x5c]
or esi, 0xff000000
mov dword [ecx - 0x4740], esi
mov esi, dword [eax + 0x5c]
or esi, 0xff000000
mov dword [ecx], esi
add ecx, 4
sub edx, 1
jne 0x5fb630
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret