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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
push ebx
mov ebx, ecx
push esi
push edi
mov ecx, dword [ebx + 0xc]
mov esi, dword [ebx + 0x10]
mov eax, ecx
cdq
and edx, 0xf
add eax, edx
mov edi, eax
lea eax, [esi - 0xa]
cdq
and edx, 0xf
add eax, edx
sar edi, 4
sar eax, 4
add edi, 2
add eax, 2
cmp edi, eax
jge 0x5c88cd
mov dword [esp + 0x1c], edi
jmp 0x5c88d3
mov dword [esp + 0x1c], eax
mov edi, eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x3c], eax
lea eax, [edi + edi + 0xa]
mov ecx, eax
mov eax, esi
sub eax, ecx
mov ecx, dword [ebx + 0x3c]
cdq
sub eax, edx
sar eax, 1
test ecx, ecx
mov dword [esp + 0x38], eax
jne 0x5c891f
push 0x2ac0
call fcn.005dd77b
add esp, 4
mov esi, 0x90
mov dword [ebx + 0x3c], eax
push esi
push eax
call fcn.005d0570
mov dword [ebx + 0x44], esi
mov dword [ebx + 0x40], esi
jmp 0x5c8a31
mov esi, dword [ebx + 0x44]
cmp esi, 0x90
jl 0x5c8977
mov eax, dword [ebx + 0x40]
cmp eax, 0x90
jge 0x5c8957
mov edx, 0x90
sub edx, eax
push edx
lea edx, [eax + eax*8]
lea eax, [eax + edx*2]
lea ecx, [ecx + eax*4]
push ecx
call fcn.005d0570
mov dword [ebx + 0x40], 0x90
jmp 0x5c8a31
jle 0x5c896b
add eax, 0xffffff70
add ecx, 0x2ac0
push eax
push ecx
call fcn.00479710
mov dword [ebx + 0x40], 0x90
jmp 0x5c8a31
mov eax, dword [ebx + 0x48]
test eax, eax
jne 0x5c89a2
mov eax, dword [ebx + 0x40]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x5c8996
mov eax, 4
jmp 0x5c89a2
cmp eax, 0x400
jle 0x5c89a2
mov eax, 0x400
add eax, esi
cmp eax, 0x90
jle 0x5c89b1
mov dword [esp + 0x34], eax
jmp 0x5c89bd
mov dword [esp + 0x34], 0x90
mov eax, dword [esp + 0x34]
lea edx, [eax + eax*8]
lea eax, [eax + edx*2]
shl eax, 2
push eax
call fcn.005dd77b
mov ecx, dword [ebx + 0x40]
mov esi, dword [ebx + 0x3c]
mov edi, eax
add esp, 4
lea edx, [ecx + ecx*8]
mov dword [esp + 0x68], eax
lea ecx, [ecx + edx*2]
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, 0x90
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x40]
sub edx, ecx
push edx
lea edx, [ecx + ecx*8]
lea ecx, [ecx + edx*2]
lea edx, [eax + ecx*4]
push edx
call fcn.005d0570
mov eax, dword [ebx + 0x3c]
push eax
call fcn.005dd7a4
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x20]
add esp, 4
mov dword [ebx + 0x3c], ecx
mov dword [ebx + 0x40], 0x90
mov dword [ebx + 0x44], edx
mov al, byte [ebp + 8]
test al, al
jne 0x5c8a41
mov eax, dword [ebx + 0x3c]
mov dword [eax], 0xffffff
fild dword [esp + 0x1c]
mov ecx, dword [ebx + 0x3c]
fst dword [esp + 0x34]
fmul dword [0x65cc64]
mov byte [ecx + 0x48], 1
mov esi, dword [ebx + 0x3c]
fst dword [esp + 0x6c]
fild dword [esp + 0x38]
fstp dword [esp + 0x20]
fmul dword [0x65cc60]
fstp dword [esp + 0x48]
fld dword [esp + 0x20]
fsub dword [esp + 0x48]
fstp dword [esp + 0x4c]
mov edx, dword [esp + 0x4c]
push edx
call fcn.005c95c0
fild dword [esp + 0x40]
mov dword [esp + 0x68], eax
mov eax, edi
cdq
fstp dword [esp + 0x18]
sub eax, edx
sar eax, 1
mov dword [esp + 0x6c], eax
fild dword [esp + 0x6c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x18]
fsub dword [esp + 0x1c]
fstp dword [esp + 0x48]
mov eax, dword [esp + 0x48]
push eax
call fcn.005c95c0
fld dword [esp + 0x28]
fsub dword [esp + 0x20]
mov ecx, dword [esp + 0x6c]
add esp, 4
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
fstp dword [esp]
call fcn.005c95c0
mov edx, dword [esp + 0x18]
mov dword [esp + 0x68], eax
push edx
call fcn.005c95c0
mov ecx, dword [esp + 0x54]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x6c]
push ecx
mov dword [esi + 0x24], eax
call fcn.005c95c0
fld dword [esp + 0x24]
fadd dword [esp + 0x20]
mov dword [esp + 0x70], eax
fstp dword [esp + 0x58]
mov edx, dword [esp + 0x58]
push edx
call fcn.005c95c0
fld dword [esp + 0x58]
fadd dword [esp + 0x30]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x74]
mov dword [esi + 0x2c], eax
fstp dword [esp + 0x58]
mov ecx, dword [esp + 0x58]
push ecx
call fcn.005c95c0
mov edx, dword [esp + 0x60]
inc eax
push edx
mov dword [esp + 0x7c], eax
call fcn.005c95c0
fld dword [esp + 0x30]
fadd dword [esp + 0x38]
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x7c]
add esp, 0x14
mov dword [esi + 0x34], eax
fstp dword [esp]
call fcn.005c95c0
inc eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x68], eax
push ecx
call fcn.005c95c0
mov edx, dword [esp + 0x6c]
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x50]
mov dword [esi + 0x3c], edx
push eax
call fcn.005c95c0
mov ecx, dword [esp + 0x50]
inc eax
push ecx
mov dword [esp + 0x74], eax
call fcn.005c95c0
mov edx, dword [esp + 0x74]
mov dword [esi + 0x40], eax
mov eax, dword [esp + 0x4c]
add esp, 0x10
mov dword [esi + 0x44], edx
mov esi, 1
add eax, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x4c], 0x4c
mov dword [esp + 0x30], 6
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x38]
lea eax, [esi + esi*8]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], 0
lea eax, [esi + eax*2]
shl eax, 2
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x2c]
fld dword [esp + 0x34]
fmul dword [ecx + 0x65c9f8]
call fcn.00511abc
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x70], eax
fld dword [esp + 0x34]
fmul dword [edx + 0x65ca10]
call fcn.00511abc
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x30]
cmp eax, 7
jge 0x5c8e05
fld dword [esp + 0x6c]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x50]
fmul dword [0x65cc60]
mov dword [esp + 0x64], ecx
add esi, ecx
mov ecx, dword [esp + 0x4c]
mov edi, eax
add eax, ecx
mov dword [esp + 0x40], edi
fstp dword [esp + 0x54]
mov dword [esp + 0x20], esi
mov dword [esp + 0x50], eax
jmp 0x5c8c5b
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x3c]
sub eax, edx
sub ecx, esi
push eax
push ecx
call fcn.005c9610
mov dword [esp + 0x68], eax
mov al, byte [ebp + 8]
add esp, 8
test al, al
jne 0x5c8cba
fild dword [esp + 0x30]
push 0x3ff00000
push 0
sub esp, 8
fmul qword [0x65cc58]
sub esp, 8
fadd qword [0x65bfc0]
fstp qword [esp + 8]
fild dword [esp + 0x78]
fstp qword [esp]
call fcn.005304b0
mov edx, dword [ebx + 0x3c]
add esp, 0x18
mov dword [edx + edi], eax
fild dword [esp + 0x28]
mov eax, dword [ebx + 0x3c]
fst dword [esp + 0x14]
fsub dword [esp + 0x54]
mov byte [eax + edi + 0x48], 1
mov esi, dword [ebx + 0x3c]
add esi, edi
fstp dword [esp + 0x60]
mov edi, dword [esp + 0x60]
push edi
call fcn.005c95c0
fild dword [esp + 0x28]
mov dword [esp + 0x60], eax
fst dword [esp + 0x14]
fsub dword [esp + 0x1c]
fstp dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
push ecx
call fcn.005c95c0
fld dword [esp + 0x1c]
fsub dword [esp + 0x20]
mov edx, dword [esp + 0x64]
add esp, 4
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
fstp dword [esp]
call fcn.005c95c0
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x14]
push eax
call fcn.005c95c0
mov ecx, dword [esp + 0x64]
mov dword [esi + 0x20], eax
push edi
mov dword [esi + 0x24], ecx
call fcn.005c95c0
fld dword [esp + 0x1c]
fadd dword [esp + 0x24]
mov edi, eax
fstp dword [esp + 0x64]
mov edx, dword [esp + 0x64]
push edx
call fcn.005c95c0
fld dword [esp + 0x64]
fadd dword [esp + 0x24]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edi
fstp dword [esp + 0x6c]
mov eax, dword [esp + 0x6c]
push eax
call fcn.005c95c0
mov ecx, dword [esp + 0x6c]
mov edi, eax
push ecx
inc edi
call fcn.005c95c0
fld dword [esp + 0x2c]
fadd dword [esp + 0x30]
add esp, 0x14
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
fstp dword [esp]
call fcn.005c95c0
mov edx, dword [esp + 0x14]
mov edi, eax
push edx
inc edi
call fcn.005c95c0
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x64]
push eax
mov dword [esi + 0x3c], edi
call fcn.005c95c0
mov ecx, dword [esp + 0x6c]
mov edi, eax
push ecx
inc edi
call fcn.005c95c0
mov dword [esi + 0x40], eax
add esp, 0x10
mov dword [esi + 0x44], edi
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x40]
mov edx, dword [esp + 0x70]
mov esi, dword [esp + 0x24]
add ecx, eax
mov eax, dword [esp + 0x64]
add edi, 0x4c
add esi, edx
dec eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x64], eax
jne 0x5c8c57
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
add eax, 4
cmp eax, 0x18
mov dword [esp + 0x2c], eax
jl 0x5c8bea
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
add eax, 0x4c
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x30]
inc edx
add ecx, edi
dec eax
mov dword [esp + 0x44], edx
test eax, eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x30], eax
jg 0x5c8bc5
lea eax, [edi + edi*2]
lea ecx, [edi + edi*2]
mov dword [esp + 0x54], ecx
lea eax, [eax + eax*4]
cdq
fld dword [esp + 0x34]
sub eax, edx
mov ecx, eax
mov eax, edi
cdq
fmul qword [0x65cc50]
sub eax, edx
mov edx, dword [ebx + 0xc]
sar eax, 1
sar ecx, 1
neg eax
sub eax, ecx
mov ecx, dword [esp + 0x54]
sub eax, ecx
add eax, edx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x10]
sub eax, edi
sub eax, 5
mov dword [esp + 0x48], eax
call fcn.00511abc
mov edx, dword [esp + 0x48]
mov ecx, edx
sub ecx, eax
add eax, edx
lea edx, [esi + esi*8]
mov dword [esp + 0x50], eax
xor eax, eax
mov dword [esp + 0x74], ecx
lea esi, [esi + edx*2]
mov dword [esp + 0x4c], eax
shl esi, 2
mov dword [esp + 0x30], eax
mov dword [esp + 0x58], esi
jmp 0x5c8ec9
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x74]
test eax, eax
jne 0x5c903d
mov al, byte [ebp + 8]
test al, al
jne 0x5c8ee2
mov eax, dword [ebx + 0x3c]
mov dword [esi + eax], 0xffffff
add edi, edi
mov ecx, dword [ebx + 0x3c]
mov dword [esp + 0x70], edi
fild dword [esp + 0x70]
mov byte [esi + ecx + 0x48], 1
mov ecx, dword [ebx + 0x3c]
add esi, ecx
fmul dword [0x65cc64]
fild dword [esp + 0x48]
fstp dword [esp + 0x14]
fmul dword [0x65cc60]
fstp dword [esp + 0x60]
fld dword [esp + 0x14]
fsub dword [esp + 0x60]
fstp dword [esp + 0x64]
mov edx, dword [esp + 0x64]
push edx
call fcn.005c95c0
fild dword [esp + 0x14]
mov dword [esp + 0x70], eax
mov eax, edi
cdq
fstp dword [esp + 0x1c]
sub eax, edx
sar eax, 1
mov dword [esp + 0x74], eax
fild dword [esp + 0x74]
fstp dword [esp + 0x38]
fld dword [esp + 0x1c]
fsub dword [esp + 0x38]
fstp dword [esp + 0x60]
mov eax, dword [esp + 0x60]
push eax
call fcn.005c95c0
fld dword [esp + 0x1c]
fsub dword [esp + 0x3c]
mov ecx, dword [esp + 0x74]
add esp, 4
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
fstp dword [esp]
call fcn.005c95c0
mov edx, dword [esp + 0x1c]
mov edi, eax
push edx
call fcn.005c95c0
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x6c]
push eax
mov dword [esi + 0x24], edi
call fcn.005c95c0
fld dword [esp + 0x40]
fadd dword [esp + 0x24]
mov edi, eax
fstp dword [esp + 0x70]
mov ecx, dword [esp + 0x70]
push ecx
call fcn.005c95c0
fld dword [esp + 0x70]
fadd dword [esp + 0x24]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edi
fstp dword [esp + 0x70]
mov edx, dword [esp + 0x70]
push edx
call fcn.005c95c0
mov edi, eax
mov eax, dword [esp + 0x78]
push eax
inc edi
call fcn.005c95c0
fld dword [esp + 0x4c]
fadd dword [esp + 0x2c]
add esp, 0x14
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
fstp dword [esp]
call fcn.005c95c0
mov edi, eax
inc edi
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.005c95c0
mov edx, dword [esp + 0x68]
mov dword [esi + 0x38], eax
push edx
mov dword [esi + 0x3c], edi
call fcn.005c95c0
mov edi, eax
mov eax, dword [esp + 0x68]
push eax
inc edi
call fcn.005c95c0
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0x40], eax
add esp, 0x10
mov dword [esi + 0x44], edi
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x1c]
lea eax, [ecx + ecx]
mov ecx, dword [esp + 0x10]
add ecx, eax
mov dword [esp + 0x10], ecx
jmp 0x5c90a1
cmp eax, 0x10
je 0x5c90d7
mov dl, byte [ebp + 8]
test dl, dl
jne 0x5c9070
mov dl, byte [esp + 0x4c]
or al, 0xff
sub al, dl
and eax, 0xff
mov edx, eax
shl edx, 8
or edx, eax
shl edx, 8
or edx, eax
mov eax, dword [ebx + 0x3c]
mov dword [esi + eax], edx
mov eax, dword [esp + 0x30]
mov edx, dword [ebx + 0x3c]
test al, 1
mov byte [esi + edx + 0x48], 1
jne 0x5c9080
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x10]
mov edx, dword [ebx + 0x3c]
push edi
push ecx
mov ecx, esi
push eax
add ecx, edx
call fcn.005c9260
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x10]
add eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
inc eax
inc edx
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x4c]
add esi, 0x4c
add edx, 0xf
cmp eax, 0x11
mov dword [esp + 0x30], eax
mov dword [esp + 0x58], esi
mov dword [esp + 0x4c], edx
jl 0x5c8ec1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x54]
cdq
sub eax, edx
mov edx, dword [esp + 0x10]
sar eax, 1
lea eax, [edx + eax - 1]
mov dword [esp + 0x10], eax
mov al, byte [ebp + 8]
test al, al
mov eax, dword [esp + 0x20]
jne 0x5c9107
lea ecx, [eax + eax*8]
lea edx, [eax + ecx*2]
mov ecx, dword [ebx + 0x3c]
mov dword [ecx + edx*4], 0
add edi, edi
mov ecx, dword [ebx + 0x3c]
mov dword [esp + 0x74], edi
lea edx, [eax + eax*8]
fild dword [esp + 0x74]
lea eax, [eax + edx*2]
shl eax, 2
fmul dword [0x65cc64]
fild dword [esp + 0x48]
mov byte [ecx + eax + 0x48], 1
mov ebx, dword [ebx + 0x3c]
fstp dword [esp + 0x14]
add ebx, eax
fmul dword [0x65cc60]
fstp dword [esp + 0x68]
fld dword [esp + 0x14]
fsub dword [esp + 0x68]
fstp dword [esp + 0x74]
mov esi, dword [esp + 0x74]
push esi
call fcn.005c95c0
fild dword [esp + 0x14]
mov dword [esp + 0x74], eax
mov eax, edi
cdq
fstp dword [esp + 0x1c]
sub eax, edx
sar eax, 1
mov dword [esp + 0x78], eax
fild dword [esp + 0x78]
fstp dword [esp + 0x38]
fld dword [esp + 0x1c]
fsub dword [esp + 0x38]
fstp dword [esp + 0x78]
mov edi, dword [esp + 0x78]
push edi
call fcn.005c95c0
fld dword [esp + 0x1c]
fsub dword [esp + 0x3c]
mov edx, dword [esp + 0x78]
add esp, 4
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], edx
fstp dword [esp]
call fcn.005c95c0
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.005c95c0
mov ecx, dword [esp + 0x7c]
mov dword [ebx + 0x20], eax
push esi
mov dword [ebx + 0x24], ecx
call fcn.005c95c0
fld dword [esp + 0x40]
fadd dword [esp + 0x24]
mov esi, eax
fstp dword [esp + 0x70]
mov edx, dword [esp + 0x70]
push edx
call fcn.005c95c0
fld dword [esp + 0x78]
fadd dword [esp + 0x24]
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], esi
fstp dword [esp + 0x78]
mov eax, dword [esp + 0x78]
push eax
call fcn.005c95c0
mov ecx, dword [esp + 0x78]
mov esi, eax
push ecx
inc esi
call fcn.005c95c0
fld dword [esp + 0x4c]
fadd dword [esp + 0x2c]
add esp, 0x14
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], esi
fstp dword [esp]
call fcn.005c95c0
mov edx, dword [esp + 0x1c]
mov esi, eax
push edx
inc esi
call fcn.005c95c0
mov dword [ebx + 0x38], eax
mov eax, dword [esp + 0x70]
push eax
mov dword [ebx + 0x3c], esi
call fcn.005c95c0
mov esi, eax
push edi
inc esi
call fcn.005c95c0
add esp, 0x10
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4