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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xe4
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x18]
push dword [ebp + 0x1c]
mov esi, dword [ebx + 0xc]
lea edx, [ebx + 0x70]
add esi, dword [ebx + 4]
mov dword [esp + 0x34], eax
add eax, edi
mov dword [esp + 0x40], eax
add eax, 0xfffffff8
push ebx
mov dword [esp + 0x20], edx
mov dword [esp + 0x64], eax
call fcn.1057b800
mov dword [esp + 0x98], eax
mov ecx, 0xfff
mov eax, dword [ebx + 0xcc]
xorps xmm0, xmm0
cmp eax, ecx
movaps xmmword [esp + 0xc8], xmm0
movups xmmword [esp + 0xac], xmm0
cmovb ecx, eax
mov dword [esp + 0xf4], 0
xor eax, eax
mov dword [esp + 0x9c], ecx
cmp dword [ebx + 0xc8], 3
mov ecx, 0x10a66d80
push edi
setne al
mov dword [esp + 0xf0], 0
add eax, 3
mov dword [esp + 0xf4], 0
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x98], eax
mov eax, dword [edx + 0x14]
mov dword [esp + 0x28], eax
mov eax, dword [edx + 0x10]
mov dword [esp + 0x40], eax
xor eax, eax
mov dword [esp + 0x64], eax
mov eax, dword [ebx + 0xd4]
test eax, eax
push 0
cmovne ecx, eax
mov eax, dword [ecx + 0x10]
movups xmm0, xmmword [ecx]
mov dword [esp + 0xf0], eax
lea eax, [esp + 0xe0]
push eax
movups xmmword [esp + 0xe4], xmm0
call fcn.1057b000
push 0
push edi
push dword [ebp + 0x14]
mov edi, dword [esp + 0x38]
push edi
call fcn.1057b0e0
xor ebx, ebx
add esp, 0x24
cmp dword [ebp + 0x14], esi
sete bl
add ebx, dword [ebp + 0x14]
mov dword [esp + 0x2c], ebx
cmp ebx, dword [esp + 0x5c]
jae 0x10579409
push dword [esp + 0x54]
mov esi, ebx
mov eax, 0
sub esi, dword [esp + 0x34]
sete al
push eax
push dword [ebp + 0x10]
lea eax, [esp + 0x98]
push dword [esp + 0x48]
push ebx
push eax
push dword [ebp + 8]
push dword [esp + 0x50]
call dword [esp + 0xb0]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x5c]
sub eax, ebx
push eax
mov eax, ebx
sub eax, dword [ebp + 0x14]
push eax
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x60]
lea eax, [esp + 0x100]
push eax
call fcn.1057aef0
mov ebx, dword [esp + 0x58]
add esp, 0x34
test ebx, ebx
jne 0x10578714
mov ebx, dword [esp + 0x2c]
inc ebx
mov dword [esp + 0x2c], ebx
jmp 0x105793ff
mov eax, dword [esp + 0x1c]
mov dword [eax + 8], 0
mov dword [eax + 0xc], esi
cmp dword [edi + 0x38], 1
jne 0x10578741
lea eax, [esi + 1]
mov ecx, 0x1f
bsr eax, eax
mov edx, 0x1f
sub ecx, eax
sub edx, ecx
shl edx, 8
jmp 0x105787ad
cmp esi, 0x20000
jne 0x10578761
push 0
push edi
push 0x1ffff
call fcn.1057ae30
add esp, 0xc
lea edx, [eax + 0x100]
jmp 0x105787ad
cmp esi, 0x3f
jbe 0x1057877c
bsr eax, esi
mov ecx, 0x1f
mov edx, 0x1f
sub ecx, eax
sub edx, ecx
add edx, 0x13
jmp 0x10578783
movzx edx, byte [esi + 0x10a66d98]
mov eax, dword [edi + 4]
mov ecx, 0x1f
mov eax, dword [eax + edx*4]
movzx edx, byte [edx + 0x10a66c28]
inc eax
bsr eax, eax
shl edx, 8
add edx, dword [edi + 0x2c]
sub ecx, eax
mov eax, 0x1f
sub eax, ecx
shl eax, 8
sub edx, eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x10]
mov dword [ecx], edx
movq xmm0, qword [eax]
movq qword [ecx + 0x10], xmm0
mov eax, dword [eax + 8]
mov dword [ecx + 0x18], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + ebx*8 - 4]
mov edx, dword [eax + ebx*8 - 8]
cmp ecx, dword [esp + 0x94]
jbe 0x1057880a
movaps xmm2, xmmword [esp + 0xc0]
xor esi, esi
mov dword [esp + 0xb0], esi
xor ebx, ebx
mov dword [esp + 0xac], ecx
mov eax, ecx
mov dword [esp + 0xa8], edx
movups xmm1, xmmword [esp + 0xa4]
jmp 0x1057909e
mov ecx, dword [esp + 0x1c]
mov edi, 1
mov edx, dword [esp + 0x54]
add ecx, 0x28
nop word [eax + eax]
lea eax, [edi + esi]
mov dword [ecx - 0xc], 0x40000000
inc edi
mov dword [ecx - 4], 0
mov dword [ecx], eax
lea ecx, [ecx + 0x1c]
cmp edi, edx
jb 0x10578820
mov edx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x28], eax
test ebx, ebx
je 0x105789e6
mov esi, dword [esp + 0x34]
mov ecx, dword [esi + eax*8]
mov eax, dword [esi + eax*8 + 4]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x4c], eax
cmp edi, eax
ja 0x105789d5
lea esi, [edi*8]
sub esi, edi
lea ebx, [edi - 3]
inc esi
lea esi, [edx + esi*4]
mov dword [esp + 0x44], esi
nop dword [eax]
bsr eax, ecx
mov ecx, 0x1f
mov edx, 0x1f
sub ecx, eax
mov eax, dword [esp + 0x18]
sub edx, ecx
mov ecx, 0x1f
cmp dword [eax + 0x38], 1
jne 0x105788b5
lea eax, [ebx + 1]
bsr eax, eax
sub ecx, eax
sub edx, ecx
add edx, 0x2f
shl edx, 8
jmp 0x1057894e
mov eax, dword [eax + 0xc]
mov esi, edx
shl esi, 8
mov eax, dword [eax + edx*4]
inc eax
bsr eax, eax
sub ecx, eax
mov eax, 0x1f
sub eax, ecx
mov ecx, dword [esp + 0x18]
shl eax, 8
add esi, dword [ecx + 0x34]
sub esi, eax
cmp edx, 0x14
jb 0x105788e9
shl edx, 9
add esi, 0xffffda00
add esi, edx
cmp ebx, 0x7f
jbe 0x10578904
bsr eax, ebx
mov ecx, 0x1f
sub ecx, eax
mov eax, 0x1f
sub eax, ecx
lea ecx, [eax + 0x24]
jmp 0x1057890b
movzx ecx, byte [ebx + 0x10a66dd8]
mov eax, dword [esp + 0x18]
mov edx, 0x1f
mov dword [esp + 0x48], ecx
mov eax, dword [eax + 8]
mov eax, dword [eax + ecx*4]
mov ecx, 0x1f
inc eax
bsr eax, eax
sub ecx, eax
mov eax, dword [esp + 0x48]
sub edx, ecx
mov ecx, dword [esp + 0x18]
shl edx, 8
movzx eax, byte [eax + 0x10a66c98]
shl eax, 8
add eax, dword [ecx + 0x30]
sub eax, edx
lea edx, [eax + 0x33]
add edx, esi
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x1c]
mov ecx, 0x1f
mov eax, dword [eax]
add eax, edx
mov dword [esi + 4], edi
mov edx, dword [esp + 0x18]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x40]
mov dword [esi], eax
mov dword [esi + 8], 0
cmp dword [edx + 0x38], 1
jne 0x1057898f
mov eax, 1
mov edx, 0x1f
bsr eax, eax
sub ecx, eax
sub edx, ecx
shl edx, 8
jmp 0x105789a9
mov eax, dword [edx + 4]
mov edx, dword [edx + 0x2c]
mov eax, dword [eax]
inc eax
bsr eax, eax
sub ecx, eax
mov eax, 0x1f
sub eax, ecx
shl eax, 8
sub edx, eax
mov eax, dword [esp + 0x38]
inc edi
mov ecx, dword [esp + 0x40]
add eax, edx
mov dword [esi - 4], eax
inc ebx
add esi, 0x1c
mov dword [esp + 0x44], esi
cmp edi, dword [esp + 0x4c]
jbe 0x10578880
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x28], eax
cmp eax, ebx
jb 0x10578851
lea eax, [edi - 1]
mov ecx, 1
mov dword [esp + 0x28], eax
lea eax, [edi*8]
mov esi, dword [esp + 0x28]
sub eax, edi
mov dword [esp + 0x20], ecx
mov dword [edx + eax*4], 0x40000000
cmp esi, ecx
jb 0x1057904d
mov eax, edx
mov dword [esp + 0x24], edx
mov edi, dword [eax + 0xc]
mov eax, dword [esp + 0x18]
inc edi
mov dword [esp + 0x4c], edi
cmp dword [eax + 0x40], 2
jne 0x10578a31
mov ebx, 0x800
jmp 0x10578a95
cmp dword [eax + 0x38], 1
jne 0x10578a3e
mov ebx, 0x600
jmp 0x10578a95
mov ebx, dword [eax + 0x28]
xor edx, edx
mov edi, dword [eax]
mov eax, dword [esp + 0x2c]
dec eax
add eax, ecx
lea esi, [ebx - 0x100]
mov dword [esp + 0x38], eax
nop word [eax + eax]
movzx eax, byte [eax + edx]
mov ecx, 0x1f
mov eax, dword [edi + eax*4]
inc eax
bsr eax, eax
sub ecx, eax
mov eax, 0x1f
sub eax, ecx
shl eax, 8
cmp eax, esi
cmova eax, esi
inc edx
sub ebx, eax
mov eax, dword [esp + 0x38]
cmp edx, 1
jb 0x10578a60
mov edi, dword [esp + 0x4c]
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x38], 1
jne 0x10578ab8
lea eax, [edi + 1]
mov ecx, 0x1f
bsr eax, eax
mov esi, 0x1f
sub ecx, eax
sub esi, ecx
mov ecx, dword [esp + 0x18]
shl esi, 8
jmp 0x10578b30
cmp edi, 0x20000
jne 0x10578adc
push 0
push eax
push 0x1ffff
call fcn.1057ae30
mov ecx, dword [esp + 0x24]
add esp, 0xc
lea esi, [eax + 0x100]
jmp 0x10578b30
cmp edi, 0x3f
jbe 0x10578afb
bsr eax, edi
mov ecx, 0x1f
mov edx, 0x1f
sub ecx, eax
mov eax, dword [esp + 0x18]
sub edx, ecx
add edx, 0x13
jmp 0x10578b02
movzx edx, byte [edi + 0x10a66d98]
mov eax, dword [eax + 4]
mov ecx, 0x1f
movzx esi, byte [edx + 0x10a66c28]
shl esi, 8
mov eax, dword [eax + edx*4]
inc eax
bsr eax, eax
sub ecx, eax
mov eax, 0x1f
sub eax, ecx
mov ecx, dword [esp + 0x18]
shl eax, 8
add esi, dword [ecx + 0x2c]
sub esi, eax
cmp dword [ecx + 0x38], 1
lea eax, [edi - 1]
jne 0x10578b4f
bsr eax, edi
mov ecx, 0x1f
mov edx, 0x1f
sub ecx, eax
sub edx, ecx
shl edx, 8
jmp 0x10578bc5
cmp eax, 0x20000
jne 0x10578b71
push 0
push dword [esp + 0x1c]
push 0x1ffff
call fcn.1057ae30
add esp, 0xc
lea edx, [eax + 0x100]
jmp 0x10578bc5
cmp eax, 0x3f
jbe 0x10578b8c
bsr eax, eax
mov ecx, 0x1f
mov edx, 0x1f
sub ecx, eax
sub edx, ecx
add edx, 0x13
jmp 0x10578b93
movzx edx, byte [eax + 0x10a66d98]
mov eax, dword [esp + 0x18]
mov ecx, 0x1f
mov eax, dword [eax + 4]
mov eax, dword [eax + edx*4]
movzx edx, byte [edx + 0x10a66c28]
inc eax
bsr eax, eax
shl edx, 8
sub ecx, eax
mov eax, 0x1f
sub eax, ecx
mov ecx, dword [esp + 0x18]
shl eax, 8
add edx, dword [ecx + 0x2c]
sub edx, eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
sub ecx, edx
mov edx, eax
add ecx, esi
add ecx, ebx
mov eax, dword [edx + 0x1c]
mov dword [esp + 0x38], eax
cmp ecx, eax
jg 0x10578bff
movups xmm0, xmmword [edx]
mov eax, dword [edx + 0x18]
movups xmmword [edx + 0x1c], xmm0
movq xmm0, qword [edx + 0x10]
movq qword [edx + 0x2c], xmm0
mov dword [edx + 0x34], eax
mov dword [edx + 0x28], edi
mov edi, ecx
mov dword [edx + 0x1c], ecx
jmp 0x10578c03
mov edi, dword [esp + 0x38]
cmp dword [edx + 0x28], 0
jne 0x10578c97
mov ecx, dword [esp + 0x20]
xor ebx, ebx
sub ecx, dword [edx + 0x24]
mov edx, dword [edx + 0x20]
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + eax*4 + 0xc], ebx
movq xmm0, qword [ecx + eax*4 + 0x10]
mov ecx, dword [ecx + eax*4 + 0x18]
sete bl
movq qword [esp + 0x68], xmm0
mov dword [esp + 0x70], ecx
cmp edx, 3
jbe 0x10578c5b
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x6c], eax
lea eax, [edx - 3]
mov dword [esp + 0x68], eax
jmp 0x10578c85
lea eax, [edx - 1]
add eax, ebx
je 0x10578c85
mov esi, dword [esp + 0x68]
cmp eax, 3
jne 0x10578c70
lea edx, [esi - 1]
jmp 0x10578c79
mov edx, dword [esp + eax*4 + 0x68]
cmp eax, 2
jb 0x10578c7d
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x24]
movq xmm0, qword [esp + 0x68]
movq qword [edx + 0x2c], xmm0
mov dword [edx + 0x34], ecx
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
add esi, ebx
cmp esi, dword [esp + 0x5c]
ja 0x10578fea
cmp ebx, dword [esp + 0x28]
je 0x10579045
lea eax, [edi + 0x80]
cmp dword [edx + 0x38], eax
jle 0x10578fea
xor ebx, ebx
mov ecx, 0x1f
cmp dword [edx + 0x28], ebx
mov edx, dword [esp + 0x18]
sete bl
cmp dword [edx + 0x38], 1
jne 0x10578cf1
mov eax, 1
mov edx, 0x1f
bsr eax, eax
sub ecx, eax
sub edx, ecx
shl edx, 8
jmp 0x10578d0b
mov eax, dword [edx + 4]
mov edx, dword [edx + 0x2c]
mov eax, dword [eax]
inc eax
bsr eax, eax
sub ecx, eax
mov eax, 0x1f
sub eax, ecx
shl eax, 8
sub edx, eax
lea eax, [edx + edi]
mov edi, dword [esp + 0x54]
push edi
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x3c]
add eax, 0x2c
push eax
push dword [esp + 0x48]
lea eax, [esp + 0x9c]
push esi
push eax
push dword [ebp + 8]
push ebx
call dword [esp + 0xb0]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x5c]
sub eax, esi
sub esi, dword [ebp + 0x14]
push eax
push esi
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0xfc]
push ebx
push eax
call fcn.1057aef0
mov esi, dword [esp + 0x7c]
add esp, 0x34
test esi, esi
je 0x10578fe6
mov ecx, dword [ebx + esi*8 - 4]
mov ebx, dword [esp + 0x20]
cmp ecx, dword [esp + 0x94]
ja 0x1057900d
lea eax, [ecx + ebx]
cmp eax, 0x1000
jae 0x1057900d
add eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x3c]
jae 0x1057900d
xor edx, edx
mov dword [esp + 0x4c], edx
test esi, esi
je 0x10578fcb
mov eax, dword [esp + 0x34]
add eax, 0xfffffffc
mov dword [esp + 0x38], eax
nop word [eax + eax]
mov ecx, dword [eax + 4]
mov ebx, dword [eax + 8]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x98], ebx
test edx, edx
je 0x10578de1
mov eax, dword [eax]
inc eax
mov dword [esp + 0x9c], eax
jmp 0x10578dea
mov eax, edi
mov dword [esp + 0x9c], edi
cmp ebx, eax
jb 0x10578faf
mov esi, dword [esp + 0x20]
lea eax, [ebx + 0x10a66dd5]
mov edx, dword [esp + 0x1c]
add esi, ebx
mov dword [esp + 0x44], eax
lea eax, [esi*8]
sub eax, esi
lea edi, [edx + eax*4]
mov eax, 0xfffffffe
sub eax, dword [esp + 0x20]
mov dword [esp + 0xa0], eax
mov eax, 0xfffffffd
sub eax, dword [esp + 0x20]
mov dword [esp + 0x40], edi
mov dword [esp + 0x60], eax
bsr eax, ecx
mov ecx, 0x1f
mov edx, 0x1f
sub ecx, eax
mov eax, dword [esp + 0x18]
sub edx, ecx
mov ecx, 0x1f
cmp dword [eax + 0x38], 1
jne 0x10578e6e
mov eax, dword [esp + 0xa0]
add eax, esi
bsr eax, eax
sub ecx, eax
sub edx, ecx
add edx, 0x2f
shl edx, 8
jmp 0x10578f0c
mov eax, dword [eax + 0xc]
mov edi, edx
shl edi, 8
mov eax, dword [eax + edx*4]
inc eax
bsr eax, eax
sub ecx, eax
mov eax, 0x1f
sub eax, ecx
mov ecx, dword [esp + 0x18]
shl eax, 8
add edi, dword [ecx + 0x34]
sub edi, eax
cmp edx, 0x14
jb 0x10578ea2
shl edx, 9
add edi, 0xffffda00
add edi, edx
mov eax, dword [esp + 0x60]
add eax, esi
cmp eax, 0x7f
jbe 0x10578ec3
bsr eax, eax
mov ecx, 0x1f
mov ebx, 0x1f
sub ecx, eax
sub ebx, ecx
add ebx, 0x24
jmp 0x10578eca
mov eax, dword [esp + 0x44]
movzx ebx, byte [eax]
mov eax, dword [esp + 0x18]
mov ecx, 0x1f
mov edx, 0x1f
mov eax, dword [eax + 8]
mov eax, dword [eax + ebx*4]
inc eax
bsr eax, eax
sub ecx, eax
movzx eax, byte [ebx + 0x10a66c98]
mov ebx, dword [esp + 0x98]
sub edx, ecx
mov ecx, dword [esp + 0x18]
shl eax, 8
shl edx, 8
add eax, dword [ecx + 0x30]
sub eax, edx
lea edx, [edi + 0x33]
mov edi, dword [esp + 0x40]
add edx, eax
add edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x28]
cmp esi, ecx
ja 0x10578f22
cmp edx, dword [edi]
jge 0x10578fa3
jmp 0x10578f56
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + eax*4]
mov ecx, esi
sub ecx, dword [esp + 0x28]
mov dword [esp + 0x28], esi
nop dword [eax]
mov dword [eax + 0x1c], 0x40000000
lea eax, [eax + 0x1c]
mov dword [eax + 0xc], 1
sub ecx, 1
jne 0x10578f40
mov ecx, dword [esp + 0x1c]
lea eax, [esi*8]
mov edi, dword [esp + 0x1c]
sub eax, esi
dec dword [esp + 0x44]
dec esi
mov dword [ecx + eax*4 + 8], ebx
dec ebx
mov ecx, dword [esp + 0x50]
mov dword [edi + eax*4 + 4], ecx
mov dword [edi + eax*4 + 0xc], 0
mov dword [edi + eax*4], edx
mov edi, dword [esp + 0x40]
sub edi, 0x1c
mov dword [esp + 0x98], ebx
mov dword [esp + 0x40], edi
cmp ebx, dword [esp + 0x9c]
jae 0x10578e33
mov edx, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x38]
inc edx
add eax, 8
mov dword [esp + 0x4c], edx
mov dword [esp + 0x38], eax
cmp edx, esi
jb 0x10578dc0
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
inc ecx
lea eax, [ecx*8]
sub eax, ecx
mov dword [edx + eax*4], 0x40000000
jmp 0x10578fee
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
inc ebx
mov esi, dword [esp + 0x28]
add eax, 0x1c
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
cmp ebx, esi
ja 0x1057904d
mov ecx, ebx
jmp 0x10578a18
mov eax, dword [esp + 0x34]
movaps xmm2, xmmword [esp + 0xc0]
mov edi, dword [esp + 0x18]
mov dword [esp + 0xac], ecx
mov edx, dword [eax + esi*8 - 8]
xor esi, esi
mov dword [esp + 0xa8], edx
lea eax, [ecx + ebx]
mov dword [esp + 0xb0], esi
movups xmm1, xmmword [esp + 0xa4]
jmp 0x105790a2
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
lea eax, [esi*8]
sub eax, esi
movups xmm1, xmmword [edx + eax*4]
movq xmm2, qword [edx + eax*4 + 0x10]
mov eax, dword [edx + eax*4 + 0x18]
movaps xmm0, xmm1
psrldq xmm0, 8
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x28]
mov ebx, eax
movd ecx, xmm0
movups xmmword [esp + 0xa4], xmm1
mov esi, dword [esp + 0xb0]
mov edx, dword [esp + 0xa8]
sub ebx, ecx
movaps xmmword [esp + 0xc0], xmm2
mov dword [esp + 0x20], ebx
test ecx, ecx
jne 0x105790b5
mov ebx, dword [esp + 0x2c]
add ebx, eax
mov dword [esp + 0x2c], ebx
jmp 0x105793ff
test esi, esi
jne 0x10579148
mov ecx, dword [esp + 0x1c]
lea eax, [ebx*8]
sub eax, ebx
xor ebx, ebx
cmp dword [ecx + eax*4 + 0xc], ebx
movq xmm0, qword [ecx + eax*4 + 0x10]
mov ecx, dword [ecx + eax*4 + 0x18]
sete bl
movq qword [esp + 0x78], xmm0
mov dword [esp + 0x80], ecx
cmp edx, 3
jbe 0x10579104
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x7c], eax
lea eax, [edx - 3]
mov dword [esp + 0x78], eax
jmp 0x1057912e
lea eax, [edx - 1]
add eax, ebx
je 0x1057912e
mov edi, dword [esp + 0x78]
cmp eax, 3
jne 0x10579119
lea edx, [edi - 1]
jmp 0x10579122
mov edx, dword [esp + eax*4 + 0x78]
cmp eax, 2
jb 0x10579126
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], edx
mov edx, dword [ebp + 0x10]
movq xmm0, qword [esp + 0x78]
mov ebx, dword [esp + 0x20]
movq qword [edx], xmm0
mov dword [edx + 8], ecx
mov edx, dword [esp + 0x58]
jmp 0x1057915c
mov eax, dword [ebp + 0x10]
sub ebx, esi
mov edx, dword [esp + 0x58]
mov dword [esp + 0x20], ebx
movq qword [eax], xmm2
mov dword [eax + 8], edx
lea ecx, [ebx + 2]
mov ebx, dword [esp + 0x1c]
lea eax, [ecx*8]
mov dword [esp + 0x24], ecx
sub eax, ecx
test esi, esi
je 0x10579183
movups xmmword [ebx + eax*4 - 0x1c], xmm1
movq qword [ebx + eax*4 - 0xc], xmm2
mov dword [ebx + eax*4 - 4], edx
mov edi, dword [esp + 0x20]
lea ecx, [ebx + eax*4]
mov esi, dword [esp + 0x24]
movups xmmword [ecx], xmm1
lea eax, [edi*8]
movq qword [ecx + 0x10], xmm2
sub eax, edi
mov dword [ecx + 0x18], edx
mov edx, esi
movups xmm1, xmmword [ebx + eax*4]
movq xmm2, qword [ebx + eax*4 + 0x10]
mov eax, dword [ebx + eax*4 + 0x18]
movaps xmm0, xmm1
psrldq xmm0, 0xc
mov dword [esp + 0x50], eax
movd eax, xmm0
movaps xmm0, xmm1
psrldq xmm0, 8
movd edi, xmm0
mov dword [ecx + 0xc], eax
test edi, edi
je 0x10579247
mov esi, dword [esp + 0x50]
nop dword [eax]
lea ecx, [ecx - 0x1c]
add eax, edi
movups xmmword [ecx], xmm1
dec edx
movq qword [ecx + 0x10], xmm2
mov ebx, edx
mov dword [ecx + 0x18], esi
mov esi, dword [esp + 0x20]
sub esi, eax
mov dword [esp + 0x20], esi
lea eax, [esi*8]
sub eax, esi
mov esi, dword [esp + 0x1c]
movups xmm1, xmmword [esi + eax*4]
movq xmm2, qword [esi + eax*4 + 0x10]
mov esi, dword [esi + eax*4 + 0x18]
movaps xmm0, xmm1
psrldq xmm0, 0xc
movd eax, xmm0
movaps xmm0, xmm1
psrldq xmm0, 8
movd edi, xmm0
mov dword [ecx + 0xc], eax
test edi, edi
jne 0x105791e0
mov esi, dword [esp + 0x24]
cmp ebx, esi
ja 0x10579393
mov ebx, dword [esp + 0x1c]
lea eax, [edx*8]
sub esi, edx
sub eax, edx
lea ebx, [ebx + eax*4]
add ebx, 8
inc esi
mov dword [esp + 0x24], esi
nop dword [eax]
mov eax, dword [ebx]
mov edi, dword [ebx + 4]
mov ecx, dword [ebx - 4]
mov dword [esp + 0x64], eax
mov dword [esp + 0x50], ecx
lea edx, [eax + edi]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x30]
add edx, edi
mov dword [esp + 0x2c], edx
test eax, eax
je 0x10579383
push eax
push ecx
push dword [esp + 0x38]
push edi
push dword [esp + 0x28]
call fcn.1057b980
mov esi, dword [ebp + 0xc]
add esp, 0x14
mov eax, dword [esp + 0x3c]
add esi, 0xc
mov edx, dword [esp + 0x2c]
add eax, 0xffffffe0
mov ecx, dword [esi]
cmp edx, eax
ja 0x10579305
mov eax, dword [esp + 0x30]
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
cmp edi, 0x10
jbe 0x10579314
mov ecx, dword [esi]
lea edx, [edi - 0x10]
movups xmm0, xmmword [eax + 0x10]
add ecx, 0x10
lea eax, [edi - 0x10]
add edx, ecx
movups xmmword [ecx], xmm0
cmp eax, 0x10
jle 0x10579314
lea eax, [ecx + 0x10]
mov ecx, dword [esp + 0x30]
add ecx, 0x20
movups xmm0, xmmword [ecx]
lea ecx, [ecx + 0x20]
movups xmmword [eax], xmm0
movups xmm0, xmmword [ecx - 0x10]
movups xmmword [eax + 0x10], xmm0
add eax, 0x20
cmp eax, edx
jb 0x105792e5
mov esi, dword [ebp + 0xc]
add esi, 0xc
jmp 0x10579314
push eax
push edx
push dword [esp + 0x38]
push ecx
call fcn.1054a9a0
add esp, 0x10
add dword [esi], edi
mov edx, dword [ebp + 0xc]
cmp edi, 0xffff
jbe 0x10579333
mov eax, dword [edx + 4]
sub eax, dword [edx]
sar eax, 3
mov dword [edx + 0x24], 1
mov dword [edx + 0x28], eax
mov eax, dword [edx + 4]
mov ecx, dword [esp + 0x50]
mov word [eax + 4], di
mov eax, dword [edx + 4]
mov dword [eax], ecx
mov ecx, dword [esp + 0x64]
add ecx, 0xfffffffd
cmp ecx, 0xffff
jbe 0x10579364
mov eax, dword [edx + 4]
sub eax, dword [edx]
sar eax, 3
mov dword [edx + 0x24], 2
mov dword [edx + 0x28], eax
mov eax, dword [edx + 4]
mov esi, dword [esp + 0x24]
mov word [eax + 6], cx
mov eax, dword [esp + 0x30]
add dword [edx + 4], 8
add eax, dword [esp + 0x60]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
add ebx, 0x1c
sub esi, 1
mov dword [esp + 0x24], esi
jne 0x10579260
mov edi, dword [esp + 0x18]
cmp dword [edi + 0x40], 2
je 0x105793b8
mov eax, dword [edi + 0x18]
mov ecx, 0x1f
inc eax
bsr eax, eax
sub ecx, eax
mov eax, 0x1f
sub eax, ecx
shl eax, 8
mov dword [edi + 0x28], eax
mov eax, dword [edi + 0x1c]
mov ecx, 0x1f
inc eax
mov ebx, dword [esp + 0x2c]
bsr eax, eax
sub ecx, eax
mov eax, 0x1f
sub eax, ecx
mov ecx, 0x1f
shl eax, 8
mov dword [edi + 0x2c], eax
mov eax, dword [edi + 0x20]
inc eax
bsr eax, eax
sub ecx, eax
mov eax, 0x1f
sub eax, ecx
shl eax, 8
mov dword [edi + 0x30], eax
mov eax, dword [edi + 0x24]
inc eax
bsr eax, eax
shl eax, 8
mov dword [edi + 0x34], eax
cmp ebx, dword [esp + 0x5c]
jb 0x105786a3
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x30]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret