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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push edi
push esi
push ebx
sub esp, 0xf4
mov edi, ecx
mov esi, edx
mov ebx, eax
inc dword [0x10219a4c]
call fcn.10164b84
test eax, eax
jne 0x10164cef
xor eax, eax
add esp, 0xf4
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
xor ecx, ecx
cmp dword [0x1021f8f8], 2
mov eax, dword [0x10219180]
mov edx, dword [0x10219fec]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
mov dword [0x1020ccd8], ecx
mov dword [0x10219fec], ecx
pxor xmm0, xmm0
movsd qword [esp + 0x80], xmm0
movsd qword [0x1020cc98], xmm0
jne 0x10164d46
movsd xmm0, qword [0x1021f8d8]
mulsd xmm0, qword [0x101f3a28]
movsd qword [0x1021f8d8], xmm0
cmp dword [ebp + 0x18], 0
jne 0x10164d5b
mov dword [esp + 0xa0], 0
xor eax, eax
jmp 0x10164d85
lea eax, [esp + 0xa0]
push eax
mov edx, 0x1fb
push str.Compaction_with_SA
push 0
push edx
push 0x171
push edx
call fcn.100ef3f0
add esp, 0x18
mov eax, dword [esp + 0xa0]
push 0
push eax
call fcn.101883e0
add esp, 8
mov ecx, dword [0x10282f80]
test ecx, ecx
jle 0x101650a2
mov eax, dword [0x10219190]
movsd xmm0, qword [0x101f3a30]
mov dword [esp + 0x60], 1
mov edx, 0xa10
mov dword [esp + 0xa4], esi
mov esi, ecx
mov dword [esp + 0xac], edi
mov edi, dword [esp + 0x60]
xor ecx, ecx
cmp dword [eax + edx + 0x70], 0
jle 0x10165085
mov dword [esp + 0x60], edi
mov esi, ecx
mov dword [esp + 0x64], edx
mov edi, dword [0x1021f3a4]
mov eax, dword [esp + 0x60]
mov edx, dword [edi + eax*4]
mov edi, dword [edx + esi*4]
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + eax*4]
mov ecx, dword [eax + esi*4]
mov edx, dword [ebx + 0xc]
mov eax, dword [edx + ecx*4]
mov dword [esp + 0x68], ecx
test eax, eax
jne 0x10165847
push 0x7f
push edi
push 0x1021f3a0
call fcn.101873c0
add esp, 0xc
mov eax, dword [0x1021f8f8]
cmp eax, 3
je 0x10164e32
cmp eax, 2
je 0x10164e32
cmp eax, 1
jne 0x10164e5c
mov edx, dword [0x10219190]
mov eax, dword [esp + 0x64]
cmp dword [eax + edx + 0x95c], 1
je 0x1016582c
mov eax, dword [esp + 0x64]
cmp dword [edx + eax + 0x95c], 2
je 0x10165817
mov eax, dword [0x1021f3a8]
cmp dword [eax + edi*4], 0
jne 0x10165065
mov eax, dword [esp + 0x68]
mov ecx, dword [0x1021f3f8]
mov dword [esp + 0x5c], esi
mov esi, dword [ecx + edi*4]
mov ecx, dword [0x1021f3fc]
mov dword [esp + 4], 0
mov edx, edi
shl edx, 4
mov dword [esp + 0x54], edx
mov dword [esp], esi
mov esi, dword [ecx + edi*4]
mov ecx, dword [0x1021f404]
mov dword [esp + 8], esi
shl eax, 4
mov dword [esp + 0x50], eax
movsd xmm0, qword [edx + ecx]
lea esi, [esp + 0xc]
movsd qword [esi], xmm0
movsd xmm1, qword [edx + ecx + 8]
movsd qword [esi + 8], xmm1
mov edx, dword [0x1021f408]
mov ecx, dword [0x1021f40c]
mov edx, dword [edx + edi*4]
movsd xmm2, qword [ecx + edi*8]
mov esi, dword [ebx + 0x44]
movsd qword [esp + 0x20], xmm2
mov dword [esp + 0x1c], edx
movsd xmm3, qword [eax + esi]
lea edx, [esp + 0x28]
movsd qword [edx], xmm3
movsd xmm4, qword [eax + esi + 8]
movsd qword [edx + 8], xmm4
mov eax, dword [ebx + 0x4c]
mov ecx, dword [esp + 0x68]
mov esi, dword [esp + 0x5c]
mov eax, dword [eax + ecx*4]
mov edx, dword [ebx + 0x48]
movsd xmm5, qword [edx + ecx*8]
movsd qword [esp + 0x3c], xmm5
mov dword [esp + 0x38], eax
call fcn.100ae6e0
mov edx, dword [esp + 0x50]
mov eax, dword [0x1021f404]
mov ecx, dword [ebx + 0x44]
movsd xmm0, qword [edx + ecx]
mov dword [esp + 0x5c], esi
mov esi, dword [esp + 0x54]
movsd qword [esi + eax], xmm0
movsd xmm1, qword [edx + ecx + 8]
movsd qword [esi + eax + 8], xmm1
mov eax, dword [esp + 0x68]
mov ecx, dword [0x1021f40c]
mov edx, dword [ebx + 0x48]
movsd xmm2, qword [edx + eax*8]
movsd qword [ecx + edi*8], xmm2
mov edx, dword [0x1021f408]
mov esi, dword [ebx + 0x4c]
mov eax, dword [esi + eax*4]
mov dword [edx + edi*4], eax
mov ecx, dword [0x1021f3f8]
mov esi, dword [0x1021f3fc]
mov eax, dword [ecx + edi*4]
mov dword [esp + 0x58], eax
push 0
push dword [esi + edi*4]
push eax
mov esi, dword [esp + 0x68]
call fcn.100ad350
mov ecx, dword [0x1021f3c0]
mov edx, dword [esp + 0x64]
push 1
shl eax, 4
movsd xmm0, qword [edx + eax]
movsd qword [ecx + edi*8], xmm0
mov eax, dword [0x1021f3fc]
push dword [eax + edi*4]
push edx
call fcn.100ad350
mov ecx, dword [0x1021f3c4]
mov edx, dword [esp + 0x70]
push 3
shl eax, 4
movsd xmm0, qword [eax + edx]
movsd qword [ecx + edi*8], xmm0
mov eax, dword [0x1021f3fc]
push dword [eax + edi*4]
push edx
call fcn.100ad350
mov ecx, dword [0x1021f3c8]
mov edx, dword [esp + 0x7c]
push 2
shl eax, 4
movsd xmm0, qword [eax + edx + 8]
movsd qword [ecx + edi*8], xmm0
mov eax, dword [0x1021f3fc]
push dword [eax + edi*4]
push edx
call fcn.100ad350
add esp, 0x30
mov ecx, dword [0x1021f3cc]
mov edx, dword [esp + 0x58]
shl eax, 4
movsd xmm0, qword [eax + edx + 8]
mov eax, dword [0x1021f8f8]
movsd qword [ecx + edi*8], xmm0
cmp eax, 3
je 0x10165037
cmp eax, 2
je 0x10165037
cmp eax, 1
jne 0x10165065
mov eax, dword [0x1021f3cc]
movsd xmm1, qword [0x1021f508]
addsd xmm1, qword [0x101f3a30]
movsd xmm0, qword [eax + edi*8]
comisd xmm0, xmm1
jbe 0x10165065
push edi
push 0x1021f3a0
call fcn.10181b50
add esp, 8
mov eax, dword [0x10219190]
mov edx, dword [esp + 0x64]
inc esi
cmp esi, dword [edx + eax + 0x70]
jl 0x10164de3
mov edi, dword [esp + 0x60]
mov esi, dword [0x10282f80]
xor ecx, ecx
add edx, 0xa10
inc edi
cmp edi, esi
jle 0x10164dce
mov esi, dword [esp + 0xa4]
mov edi, dword [esp + 0xac]
mov dword [esp + 0xac], edi
mov eax, 1
mov edi, eax
call fcn.1017eba0
inc edi
cmp edi, 3
jle 0x101650b0
cmp dword [ebp + 0x14], 0
mov edi, dword [esp + 0xac]
jne 0x1016510e
movsd xmm0, qword [0x101f3a38]
call fcn.101b91a0
movsd xmm1, qword [0x101f3a40]
divsd xmm1, xmm0
movsd xmm2, qword [esp + 0x80]
movsd xmm0, qword [0x101f3a48]
movsd qword [0x1020cca0], xmm1
movsd qword [esp + 0x90], xmm2
xor eax, eax
mov dword [esp + 0xb0], eax
jmp 0x10165181
cmp dword [ebp + 0x14], 0xa
jne 0x1016515e
mov eax, dword [0x1021ef28]
movsd xmm0, qword [0x1021eec0]
movsd xmm1, qword [esp + 0x80]
movsd qword [esp + 0x90], xmm0
movsd xmm0, qword [0x101f3a48]
movsd qword [0x1020cca0], xmm1
movsd qword [0x1021eec0], xmm0
mov dword [0x1021ef28], 0x64
mov dword [esp + 0xb0], eax
jmp 0x10165181
movsd xmm0, qword [esp + 0x80]
movsd qword [esp + 0x90], xmm0
movsd xmm0, qword [0x101f3a48]
xor eax, eax
mov dword [esp + 0xb0], eax
movsd qword [0x1020cc10], xmm0
push 0xffffffffffffffff
call fcn.10187500
pop ecx
call fcn.1017dd90
call fcn.101883c0
cmp dword [0x1021f8f8], 2
je 0x101651ae
movsd xmm3, qword [0x1021f8d8]
jmp 0x101651c2
movsd xmm3, qword [0x1021f8d8]
addsd xmm3, xmm3
movsd qword [0x1021f8d8], xmm3
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
movsd xmm2, qword [0x1021fcb8]
movsd xmm0, qword [esi]
movsd xmm1, qword [edi]
movsd qword [esp], xmm0
movsd qword [esp + 8], xmm1
movsd qword [esp + 0x10], xmm2
movsd qword [esp + 0x18], xmm3
mov dword [0x10219180], eax
mov dword [0x10219fec], edx
lea ecx, [esp + 0x88]
mov dword [esp + 0x20], ecx
call fcn.10119260
movsd xmm0, qword [0x1021f4a0]
movsd xmm1, qword [0x1021fcb8]
movsd xmm2, qword [0x1021f8d8]
movsd qword [esp], xmm0
movsd qword [esp + 8], xmm0
movsd qword [esp + 0x10], xmm1
movsd qword [esp + 0x18], xmm2
lea eax, [esp + 0x98]
mov dword [esp + 0x20], eax
call fcn.10119260
movsd xmm0, qword [esp + 0x98]
comisd xmm0, xmmword [esp + 0x88]
jbe 0x101657c2
mov eax, dword [ebx + 0x68]
lea edx, [eax*4 + 4]
push edx
call fcn.101bcde0
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 0x68]
lea edx, [eax*8 + 8]
push edx
call fcn.101bcde0
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 0x68]
shl eax, 4
add eax, 0x10
push eax
call fcn.101bcde0
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 0x68]
lea edx, [eax*4 + 4]
push edx
call fcn.101bcde0
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 0x68]
lea edx, [eax*4 + 4]
push edx
push dword [ebx + 0x4c]
push dword [esp + 0x70]
call fcn.101d7590
mov eax, dword [ebx + 0x68]
lea edx, [eax*8 + 8]
push edx
push dword [ebx + 0x48]
push dword [esp + 0x78]
call fcn.101d7590
mov eax, dword [ebx + 0x68]
shl eax, 4
add eax, 0x10
push eax
push dword [ebx + 0x44]
push dword [esp + 0x80]
call fcn.101d7590
mov eax, dword [ebx + 0x68]
lea edx, [eax*4 + 4]
push edx
push dword [ebx + 0x10]
push dword [esp + 0x88]
call fcn.101d7590
add esp, 0x40
mov ecx, dword [0x10282f80]
test ecx, ecx
jle 0x10165663
mov eax, dword [0x10219190]
movsd xmm1, qword [0x101f3a50]
movsd xmm0, qword [0x101f3a58]
mov dword [esp + 0x48], eax
mov eax, 1
mov dword [esp + 0xa8], 0
mov dword [esp + 0xa4], esi
mov esi, ecx
mov edx, 0xa10
mov dword [esp + 0xac], edi
mov edi, dword [esp + 0x48]
xor ecx, ecx
cmp dword [edi + edx + 0x70], 0
jle 0x10165646
mov dword [esp + 0xb8], eax
mov esi, ecx
mov dword [esp + 0xb4], edx
mov edx, dword [0x1021f3a4]
mov eax, dword [esp + 0xb8]
movsd xmm0, qword [0x101f3a50]
mov ecx, dword [edx + eax*4]
mov edx, dword [ecx + esi*4]
mov edi, dword [ebx + 8]
mov eax, dword [edi + eax*4]
mov edi, dword [eax + esi*4]
movsd qword [esp + 0x78], xmm0
movsd qword [esp + 0x70], xmm0
push 0xff
push edx
push 0x1021f3a0
mov dword [esp + 0xc8], edx
call fcn.10187f90
mov edx, dword [esp + 0xc8]
add esp, 0xc
test eax, eax
jne 0x1016541d
mov ecx, dword [0x1021f404]
mov eax, edx
shl eax, 4
movsd xmm0, qword [eax + ecx]
movsd qword [esp + 0x70], xmm0
movsd xmm1, qword [eax + ecx + 8]
mov eax, dword [0x1021f40c]
mov ecx, dword [0x1021f408]
movsd qword [esp + 0x78], xmm1
movsd xmm2, qword [eax + edx*8]
mov eax, dword [ecx + edx*4]
movsd qword [esp + 0x80], xmm2
mov dword [esp + 0xa8], eax
push 1
push edx
push 0x1021f3a0
call fcn.10187f90
add esp, 0xc
test eax, eax
je 0x1016551e
mov ecx, dword [esp + 0xb4]
mov dword [esp + 4], 0x1021fb80
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], ebx
mov ebx, dword [0x1021f3a4]
mov dword [esp + 0x68], edi
mov edi, dword [0x10219190]
mov eax, dword [edi + ecx + 0x958]
mov edx, dword [ebx + eax*4]
mov edx, dword [edx + esi*4]
imul ecx, eax, 0xa10
mov edi, dword [edi + ecx + 0x958]
mov ebx, dword [ebx + edi*4]
mov ecx, dword [0x1021f40c]
mov esi, dword [ebx + esi*4]
mov ebx, dword [0x1021f404]
mov dword [esp + 0x48], edx
mov dword [esp], eax
mov dword [esp + 0x6c], esi
mov esi, dword [0x1021f408]
mov eax, edx
shl eax, 4
movsd xmm0, qword [eax + ebx]
lea edi, [esp + 8]
movsd qword [edi], xmm0
movsd xmm1, qword [eax + ebx + 8]
movsd qword [edi + 8], xmm1
mov eax, dword [esi + edx*4]
mov edi, dword [esp + 0x68]
mov ebx, dword [esp + 0x64]
movsd xmm2, qword [ecx + edx*8]
movsd qword [esp + 0x1c], xmm2
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x6c]
lea edx, [esp + 0x70]
mov esi, dword [esi + eax*4]
movsd xmm3, qword [ecx + eax*8]
movsd qword [esp + 0x2c], xmm3
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x60]
call fcn.10100b90
mov eax, dword [0x1021f40c]
mov ecx, dword [esp + 0x48]
mov edx, dword [0x1021f408]
movsd xmm0, qword [eax + ecx*8]
mov eax, dword [edx + ecx*4]
movsd qword [esp + 0x80], xmm0
mov dword [esp + 0xa8], eax
movsd xmm0, qword [0x101f3a58]
comisd xmm0, xmmword [esp + 0x70]
ja 0x1016553d
mov eax, dword [ebx + 0x10]
mov dword [eax + edi*4], 0
jmp 0x10165618
mov ecx, dword [ebx + 0x38]
mov eax, dword [ecx + edi*4]
mov ecx, dword [ebx + 0x3c]
mov dword [esp], eax
mov eax, dword [ecx + edi*4]
mov ecx, dword [ebx + 0x44]
mov dword [esp + 4], 0
mov edx, edi
shl edx, 4
mov dword [esp + 0x5c], edx
mov dword [esp + 8], eax
movsd xmm0, qword [edx + ecx]
lea eax, [esp + 0xc]
movsd qword [eax], xmm0
movsd xmm1, qword [edx + ecx + 8]
movsd qword [eax + 8], xmm1
mov edx, dword [ebx + 0x4c]
mov eax, dword [edx + edi*4]
mov edx, dword [ebx + 0x48]
movsd xmm2, qword [edx + edi*8]
movsd qword [esp + 0x20], xmm2
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x70]
lea eax, [esp + 0x28]
mov dword [eax], ecx
mov edx, dword [esp + 0x74]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x78]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x7c]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0xa8]
movsd xmm3, qword [esp + 0x80]
movsd qword [esp + 0x3c], xmm3
mov dword [esp + 0x38], eax
call fcn.100ae6e0
movsd xmm0, qword [esp + 0x70]
mov eax, dword [esp + 0x5c]
movsd xmm2, qword [esp + 0x80]
mov edx, dword [ebx + 0x44]
movsd qword [eax + edx], xmm0
movsd xmm1, qword [esp + 0x78]
movsd qword [eax + edx + 8], xmm1
mov eax, dword [esp + 0xa8]
mov ecx, dword [ebx + 0x48]
movsd qword [ecx + edi*8], xmm2
mov edx, dword [ebx + 0x4c]
mov dword [edx + edi*4], eax
mov ecx, dword [ebx + 0x10]
mov dword [ecx + edi*4], 1
mov edi, dword [0x10219190]
mov eax, dword [esp + 0xb4]
inc esi
cmp esi, dword [edi + eax + 0x70]
jl 0x10165383
mov eax, dword [esp + 0xb8]
mov edx, dword [esp + 0xb4]
mov esi, dword [0x10282f80]
xor ecx, ecx
add edx, 0xa10
inc eax
cmp eax, esi
jle 0x10165368
mov esi, dword [esp + 0xa4]
mov edi, dword [esp + 0xac]
push dword [0x10219b14]
push 0xffffffffffffffff
push ebx
call fcn.1014cea0
add esp, 0xc
test eax, eax
je 0x1016578b
mov eax, dword [ebx + 0x68]
test eax, eax
jle 0x1016572e
mov edi, dword [esp + 0x50]
mov esi, 1
mov edx, dword [ebx + 0x38]
mov edx, dword [edx + esi*4]
test edx, edx
je 0x10165725
mov dword [esp + 4], 0
mov dword [esp], edx
mov edx, dword [ebx + 0x3c]
mov ecx, dword [edx + esi*4]
mov edx, dword [ebx + 0x44]
mov dword [esp + 8], ecx
mov eax, esi
shl eax, 4
movsd xmm0, qword [edx + eax]
lea ecx, [esp + 0xc]
movsd qword [ecx], xmm0
movsd xmm1, qword [edx + eax + 8]
movsd qword [ecx + 8], xmm1
mov edx, dword [ebx + 0x4c]
mov ecx, dword [edx + esi*4]
mov edx, dword [ebx + 0x48]
movsd xmm2, qword [edx + esi*8]
movsd qword [esp + 0x20], xmm2
mov dword [esp + 0x1c], ecx
movsd xmm3, qword [edi + eax]
lea ecx, [esp + 0x28]
movsd qword [ecx], xmm3
movsd xmm4, qword [edi + eax + 8]
movsd qword [ecx + 8], xmm4
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
mov eax, dword [eax + esi*4]
movsd xmm5, qword [edx + esi*8]
movsd qword [esp + 0x3c], xmm5
mov dword [esp + 0x38], eax
call fcn.100ae6e0
mov eax, dword [ebx + 0x68]
inc esi
cmp esi, eax
jle 0x10165690
lea eax, [eax*4 + 4]
push eax
push dword [esp + 0x5c]
push dword [ebx + 0x4c]
call fcn.101d7590
mov eax, dword [ebx + 0x68]
lea edx, [eax*8 + 8]
push edx
push dword [esp + 0x64]
push dword [ebx + 0x48]
call fcn.101d7590
mov eax, dword [ebx + 0x68]
shl eax, 4
add eax, 0x10
push eax
push dword [esp + 0x6c]
push dword [ebx + 0x44]
call fcn.101d7590
mov eax, dword [ebx + 0x68]
lea edx, [eax*4 + 4]
push edx
push dword [esp + 0x74]
push dword [ebx + 0x10]
call fcn.101d7590
add esp, 0x30
jmp 0x1016579b
movsd xmm0, qword [0x1021f4a0]
movsd qword [edi], xmm0
movsd qword [esi], xmm0
push dword [esp + 0x58]
call fcn.101bceaa
push dword [esp + 0x58]
call fcn.101bceaa
push dword [esp + 0x58]
call fcn.101bceaa
push dword [esp + 0x58]
call fcn.101bceaa
add esp, 0x10
cmp dword [ebp + 0x14], 0
mov dword [0x1020ccd8], 4
je 0x101657f5
cmp dword [ebp + 0x14], 0xa
jne 0x101657f5
mov eax, dword [esp + 0xb0]
movsd xmm0, qword [esp + 0x90]
movsd qword [0x1021eec0], xmm0
mov dword [0x1021ef28], eax
cmp dword [ebp + 0x18], 0
je 0x10165808
push dword [esp + 0xa0]
call fcn.100e3720
pop ecx
xor eax, eax
add esp, 0xf4
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push 1
push edi
push 0x1021f3a0
call fcn.10187fb0
add esp, 0xc
jmp 0x10164e5c
push 1
push edi
push 0x1021f3a0
call fcn.101873c0
add esp, 0xc
mov edx, dword [0x10219190]
jmp 0x10164e4a
push eax
push edi
push 0x1021f3a0
call fcn.10187fb0
jmp 0x10164e1b