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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push esi
push edi
push ebx
sub esp, 0x124
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 0x20]
test edi, edi
jne 0x1005a432
mov ebx, dword [ecx + 0x58]
cmp dword [ecx + 0x70], 4
je 0x1005ad81
mov esi, dword [ecx + 0x50]
cmp ebx, 2
je 0x1005a422
cmp ebx, 4
je 0x1005a422
cmp ebx, 6
je 0x1005a422
cmp ebx, 8
je 0x1005a422
cmp ebx, 0x10
jne 0x1005a435
lea edx, [esi + esi*2]
mov eax, dword [ecx + edx*8 + 0x70]
mov dword [ecx + 0x58], eax
mov dword [ecx + edx*8 + 0x70], ebx
jmp 0x1005a435
mov esi, dword [ecx + 0x50]
mov eax, dword [ebp + 0xc]
test esi, esi
jl 0x1005a484
mov dword [esp + 0xa4], esi
mov ebx, 1
mov dword [esp], edi
xor edx, edx
mov esi, dword [ebp + 8]
lea ecx, [edx + edx*2]
mov dword [esp + 4], edx
cdq
mov edi, dword [esi + ecx*8 + 0x58]
idiv edi
mov edx, dword [esp + 4]
inc edx
mov dword [esi + ecx*8 + 0x60], ebx
imul ebx, edi
mov dword [esi + ecx*8 + 0x5c], eax
cmp edx, dword [esp + 0xa4]
jle 0x1005a44d
mov esi, dword [esp + 0xa4]
mov edi, dword [esp]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
cdq
mov ebx, dword [ebp + 0xc]
idiv ebx
mov dword [esp + 0x9c], eax
xor ebx, ebx
test esi, esi
jl 0x1005b804
xor edi, edi
push 1
pop edx
mov dword [esp + 0xc], edi
mov eax, edx
mov dword [esp + 0xa4], esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
mov esi, dword [esp + 0xc]
jmp 0x1005a4c7
mov eax, 1
mov edx, eax
mov dword [esp + 0xa0], edx
jmp 0x1005a4e3
mov eax, dword [esp + 0xa0]
imul eax, edi
mov dword [esp + 0xa0], eax
mov edx, dword [ebp + 8]
lea ecx, [esi + esi*2]
mov eax, dword [esp + 0xa0]
mov dword [esp + 0xa8], ecx
mov edi, dword [edx + ecx*8 + 0x58]
cmp edi, 0xd
mov ebx, dword [edx + ecx*8 + 0x5c]
mov dword [edx + ecx*8 + 0x64], eax
jle 0x1005a539
test edi, 1
je 0x1005a539
cmp edi, dword [esp + 0x18]
jne 0x1005adbc
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0xa8]
mov eax, dword [esp + 0x14]
mov dword [edx + ecx*8 + 0x68], eax
mov eax, dword [esp + 0x10]
cmp edi, eax
cmovge eax, edi
mov dword [esp + 0x10], eax
cmp esi, dword [esp + 0xa4]
jne 0x1005a578
cmp ebx, 0xd
jle 0x1005a578
test bl, 1
je 0x1005a578
cmp ebx, dword [esp + 0x18]
jne 0x1005adf9
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0xa8]
mov eax, dword [esp + 0x14]
mov dword [edx + ecx*8 + 0x80], eax
mov eax, dword [esp + 0x10]
cmp ebx, eax
cmovge eax, ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x18]
mov edx, dword [eax]
mov ecx, edx
neg ecx
and ecx, 0x3f
add edx, ecx
lea ecx, [ebx*8]
imul ecx, edi
add ecx, edx
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0xa8]
mov eax, dword [ecx + eax*8 + 0x60]
imul eax, dword [esp + 0x9c]
cmp dword [ecx + 0x20], 0
jne 0x1005ad4c
cmp edi, 0xd
jg 0x1005aac4
test bl, 1
je 0x1005a7b7
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x24], 0
je 0x1005a69b
test ebx, ebx
jle 0x1005ad4c
mov dword [esp + 0x90], eax
xor eax, eax
mov dword [esp + 0x38], eax
lea ecx, [edi*8 - 8]
mov dword [esp + 0x3c], ecx
lea ecx, [edi - 1]
mov dword [esp + 4], eax
cmp edi, 1
mov dword [esp + 0xb8], ecx
mov dword [esp], edx
mov eax, dword [esp + 0x90]
jle 0x1005ad4c
mov dword [esp + 0x90], eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x78], edx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0xf0], edi
mov esi, dword [esp]
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x38]
mov edx, dword [ebp + 0x10]
xor ebx, ebx
mov dword [esp + 0x38], eax
lea edi, [edx + ecx]
xor edx, edx
mov eax, dword [edx + edi]
mov dword [esi + ebx*8], eax
mov eax, dword [edx + edi + 4]
add edx, ecx
mov dword [esi + ebx*8 + 4], eax
inc ebx
cmp ebx, dword [esp + 0xb8]
jb 0x1005a64a
mov edx, dword [esp + 0x90]
mov eax, dword [esp + 0x38]
inc eax
add esi, dword [esp + 0x3c]
lea ecx, [ecx + edx*8]
cmp eax, dword [esp + 0x8c]
jb 0x1005a63c
mov edx, dword [esp + 0x78]
mov ebx, dword [esp + 0x8c]
mov edi, dword [esp + 0xf0]
mov esi, dword [esp + 0xc]
jmp 0x1005ad4c
mov ecx, ebx
shr ecx, 0x1f
add ecx, ebx
sar ecx, 1
mov dword [esp + 0x74], ecx
cmp ebx, 1
jle 0x1005ad4c
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x5c], 0
mov dword [esp + 0xf0], edi
lea ebx, [ecx + eax*8]
mov dword [esp + 0x64], ebx
mov ebx, eax
shl ebx, 4
mov dword [esp + 0x68], ebx
mov dword [esp + 0x90], eax
mov dword [esp + 0x78], edx
mov dword [esp + 0xc], esi
add ecx, ebx
mov dword [esp + 0x60], ecx
lea ebx, [edi*8]
neg ebx
lea ecx, [edi - 1]
mov dword [esp + 0xe4], ecx
mov ecx, edi
shl ecx, 4
add ebx, edx
add ebx, ecx
add ecx, 0xfffffff0
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ecx
mov ebx, dword [esp + 0x8c]
mov edi, dword [esp + 0x5c]
cmp dword [esp + 0xf0], 1
jle 0x1005ae4b
mov esi, dword [esp + 0x68]
xor ecx, ecx
mov ebx, esi
imul ebx, edi
mov eax, dword [esp + 0x90]
add esi, ebx
mov edx, dword [esp + 0x60]
mov dword [esp + 0xe8], esi
lea eax, [ebx + eax*8]
mov dword [esp + 0xec], eax
add edx, ebx
mov eax, dword [esp + 0x70]
imul eax, edi
add ebx, dword [esp + 0x64]
add eax, dword [esp + 0x6c]
mov esi, ecx
mov dword [esp + 0x5c], edi
mov edi, dword [ebx + 4]
inc ecx
mov dword [esi + eax - 4], edi
mov edi, dword [edx + 4]
mov dword [esi + eax + 4], edi
mov edi, dword [ebx]
mov dword [esi + eax - 8], edi
mov edi, dword [edx]
mov dword [esi + eax], edi
add esi, 0x10
add ebx, dword [esp + 0xec]
add edx, dword [esp + 0xe8]
cmp ecx, dword [esp + 0xe4]
jb 0x1005a76f
mov edi, dword [esp + 0x5c]
inc edi
cmp edi, dword [esp + 0x74]
jb 0x1005a721
jmp 0x1005a680
test bl, 2
je 0x1005a8ec
mov dword [esp + 0x90], eax
lea eax, [ebx + 1]
mov dword [esp + 0x78], edx
mov edx, eax
shr edx, 0x1f
add edx, eax
sar edx, 1
mov dword [esp + 0x1c], edx
test ebx, ebx
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x78]
jle 0x1005ad4c
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x90], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0xc], esi
lea ecx, [ecx + eax*8]
shl eax, 4
mov dword [esp + 0x28], eax
lea eax, [edi - 1]
mov dword [esp + 0xac], eax
mov eax, edi
shl eax, 4
mov dword [esp + 0x20], ecx
mov ecx, eax
neg ecx
add ecx, eax
add eax, 0xfffffff0
mov dword [esp + 0x30], eax
add ecx, edx
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x90]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x78], edx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0xf0], edi
cmp dword [esp + 0xf0], 1
jle 0x1005ae25
mov edi, dword [esp + 0x28]
xor edx, edx
imul edi, esi
mov eax, dword [ebp + 0x10]
mov ebx, dword [esp + 0x90]
mov ecx, dword [esp + 0x20]
add eax, edi
mov dword [esp + 0x34], eax
lea ebx, [edi + ebx*8]
mov eax, dword [esp + 0x30]
add ecx, edi
imul eax, esi
mov dword [esp + 0xb4], ebx
mov dword [esp + 0x24], esi
add eax, dword [esp + 0x2c]
mov ebx, edx
mov esi, dword [esp + 0x34]
mov dword [esp + 0xb0], edi
mov edi, dword [esi + 4]
inc edx
mov dword [ebx + eax + 4], edi
mov edi, dword [ecx + 4]
mov dword [ebx + eax + 0xc], edi
mov edi, dword [esi]
mov dword [ebx + eax], edi
mov edi, dword [ecx]
mov dword [ebx + eax + 8], edi
add ebx, 0x10
add esi, dword [esp + 0xb0]
add ecx, dword [esp + 0xb4]
cmp edx, dword [esp + 0xac]
jb 0x1005a8a4
mov esi, dword [esp + 0x24]
inc esi
cmp esi, dword [esp + 0x1c]
jb 0x1005a851
jmp 0x1005a680
test ebx, ebx
jle 0x1005ad4c
mov dword [esp + 0x40], 0
lea ecx, [edi*8 - 8]
mov dword [esp + 0x58], ecx
lea ecx, [eax*8]
mov dword [esp + 0x54], ecx
mov ecx, eax
shl ecx, 4
mov dword [esp + 0x4c], ecx
lea ecx, [eax + eax*2]
mov dword [esp + 0x50], ecx
cmp edi, 1
jle 0x1005ad4c
mov dword [esp + 0x90], eax
mov dword [esp + 0x78], edx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0xf0], edi
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x54]
imul ecx, eax
mov esi, dword [esp + 0x90]
mov edi, dword [esp + 0x4c]
mov edx, dword [esp + 0x58]
imul edx, eax
lea ebx, [ecx + esi*8]
imul esi, eax
add edx, dword [esp + 0x78]
add edi, ecx
mov dword [esp + 0xd8], edi
mov edi, dword [esp + 0x50]
mov dword [esp + 0xd0], 1
mov dword [esp + 0x48], ecx
mov dword [esp + 0xcc], esi
lea edi, [ecx + edi*8]
mov dword [esp + 0x44], 0x20
mov dword [esp + 0xbc], esi
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc8], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0xd4], edi
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0xcc]
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 0xd0]
mov edx, dword [ebp + 0x10]
mov edi, dword [esp + 0xc8]
mov dword [esp + 0xcc], eax
mov eax, dword [edx + eax*8]
mov dword [ecx + edi - 0x20], eax
mov eax, dword [esp + 0xc4]
imul eax, esi
mov dword [esp + 0xdc], eax
mov eax, dword [edx + eax]
mov dword [ecx + edi - 0x1c], eax
mov eax, dword [esp + 0xd8]
imul eax, esi
mov dword [esp + 0xe0], eax
mov eax, dword [edx + eax]
mov dword [ecx + edi - 0x18], eax
mov eax, dword [esp + 0xd4]
imul eax, esi
mov dword [esp + 0xd0], esi
mov esi, dword [edx + eax]
mov dword [ecx + edi - 0x14], esi
mov esi, dword [ebx + edx + 4]
mov dword [ecx + edi - 0x10], esi
mov esi, dword [esp + 0xdc]
add ebx, dword [esp + 0xc0]
mov esi, dword [esi + edx + 4]
mov dword [ecx + edi - 0xc], esi
mov esi, dword [esp + 0xe0]
mov eax, dword [eax + edx + 4]
mov esi, dword [esi + edx + 4]
mov dword [ecx + edi - 8], esi
mov dword [ecx + edi - 4], eax
add ecx, 0x20
mov eax, dword [esp + 0xcc]
mov esi, dword [esp + 0xd0]
inc esi
add eax, dword [esp + 0xbc]
cmp esi, dword [esp + 0xf0]
jl 0x1005a9dd
mov eax, dword [esp + 0x40]
add eax, 4
cmp eax, dword [esp + 0x8c]
jl 0x1005a94c
mov edx, dword [esp + 0x78]
mov ebx, dword [esp + 0x8c]
mov edi, dword [esp + 0xf0]
mov esi, dword [esp + 0xc]
jmp 0x1005ad4c
test bl, 3
je 0x1005ab74
test ebx, ebx
jle 0x1005ad4c
xor ecx, ecx
mov dword [esp + 0x94], ecx
mov dword [esp + 0xf4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0x78], edx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 0x90], eax
mov edx, dword [esp + 8]
mov esi, ecx
mov ebx, dword [esp + 0x94]
xor eax, eax
mov dword [esp + 0x94], ebx
xor ecx, ecx
mov dword [esp + 0xf4], esi
mov ebx, dword [ebp + 0x10]
mov esi, dword [ecx + ebx]
mov dword [edx + eax*8], esi
mov esi, dword [ecx + ebx + 4]
mov dword [edx + eax*8 + 4], esi
inc eax
add ecx, dword [esp + 0xf4]
cmp eax, edi
jl 0x1005ab21
mov eax, dword [esp + 0x90]
lea edx, [edx + edi*8]
mov ebx, dword [esp + 0x94]
inc ebx
mov esi, dword [esp + 0xf4]
cmp ebx, dword [esp + 0x8c]
lea esi, [esi + eax*8]
jl 0x1005ab0c
mov edx, dword [esp + 0x78]
mov ebx, dword [esp + 0x8c]
mov esi, dword [esp + 0xc]
jmp 0x1005ad4c
test ebx, ebx
jle 0x1005ad38
mov dword [esp + 0x98], 0
lea ecx, [edi*8]
mov dword [esp + 0x88], ecx
lea ecx, [eax*8]
mov dword [esp + 0x84], ecx
mov ecx, eax
shl ecx, 4
mov dword [esp + 0x7c], ecx
lea ecx, [eax + eax*2]
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x90], eax
mov dword [esp + 0x78], edx
mov dword [esp + 0xf0], edi
mov dword [esp + 0xc], esi
mov ebx, dword [esp + 0x98]
mov edi, dword [esp + 0x84]
xor eax, eax
imul edi, ebx
mov edx, dword [esp + 0x90]
mov esi, edx
mov ecx, dword [esp + 0x88]
imul ecx, ebx
lea edx, [edi + edx*8]
imul esi, ebx
mov dword [esp + 0x10c], edx
mov edx, dword [esp + 0x7c]
add ecx, dword [esp + 0x78]
mov dword [esp + 0x110], eax
mov dword [esp + 0xf8], esi
add edx, edi
mov dword [esp + 0x108], edx
mov edx, dword [esp + 0x80]
mov dword [esp + 0x100], ecx
mov dword [esp + 0x98], ebx
mov dword [esp + 0xfc], edi
lea edx, [edi + edx*8]
mov dword [esp + 0x104], edx
xor edx, edx
mov ecx, eax
mov esi, edx
mov ebx, dword [ebp + 0x10]
mov edi, dword [esp + 0x100]
mov dword [esp + 0x110], ecx
mov ecx, dword [ebx + ecx*8]
mov dword [esi + edi], ecx
mov ecx, dword [esp + 0x10c]
imul ecx, eax
mov dword [esp + 0x118], ecx
mov ecx, dword [ebx + ecx]
mov dword [esi + edi + 4], ecx
mov ecx, dword [esp + 0x108]
imul ecx, eax
mov dword [esp + 0x11c], ecx
mov ecx, dword [ebx + ecx]
mov dword [esi + edi + 8], ecx
mov ecx, dword [esp + 0x104]
imul ecx, eax
mov dword [esp + 0x114], eax
mov eax, dword [ebx + ecx]
mov dword [esi + edi + 0xc], eax
mov eax, dword [edx + ebx + 4]
mov dword [esi + edi + 0x10], eax
mov eax, dword [esp + 0x118]
add edx, dword [esp + 0xfc]
mov eax, dword [eax + ebx + 4]
mov dword [esi + edi + 0x14], eax
mov eax, dword [esp + 0x11c]
mov ecx, dword [ecx + ebx + 4]
mov eax, dword [eax + ebx + 4]
mov dword [esi + edi + 0x18], eax
mov dword [esi + edi + 0x1c], ecx
add esi, 0x20
mov ecx, dword [esp + 0x110]
mov eax, dword [esp + 0x114]
inc eax
add ecx, dword [esp + 0xf8]
cmp eax, dword [esp + 0xf0]
jl 0x1005ac54
mov ebx, dword [esp + 0x98]
add ebx, 4
cmp ebx, dword [esp + 0x8c]
jl 0x1005abda
mov edx, dword [esp + 0x78]
mov ebx, dword [esp + 0x8c]
mov edi, dword [esp + 0xf0]
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea eax, [edi*4]
cmp eax, ecx
cmovge ecx, eax
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 8]
inc esi
mov eax, dword [esp + 0xa8]
mov dword [ecx + eax*8 + 0x6c], edx
mov edx, dword [ecx + 0x50]
cmp esi, edx
mov dword [esp + 0xa4], edx
jg 0x1005ae71
imul ebx, edi
cmp ebx, 0x7d0
jle 0x1005a4d2
jmp 0x1005a4c2
cmp ebx, 6
je 0x1005adb4
shl ebx, 2
mov esi, dword [ecx + 0x50]
test esi, esi
mov dword [ecx + 0x58], ebx
jle 0x1005adab
mov eax, 1
lea ebx, [eax + eax*2]
inc eax
mov edx, dword [ecx + ebx*8 + 0x70]
cmp eax, esi
mov dword [ecx + ebx*8 + 0x58], edx
jle 0x1005ad98
mov ebx, dword [ecx + 0x58]
dec esi
mov dword [ecx + 0x50], esi
jmp 0x1005a409
mov esi, dword [ecx + 0x50]
jmp 0x1005a422
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
mov edx, ecx
neg edx
and edx, 0x3f
add ecx, edx
mov dword [esp + 0x14], ecx
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call fcn.1005bb00
add esp, 0x10
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x18], edi
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x50]
mov dword [esp + 0xa4], ecx
jmp 0x1005a51a
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
mov edx, ecx
neg edx
and edx, 0x3f
add ecx, edx
mov dword [esp + 0x14], ecx
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
call fcn.1005bb00
add esp, 0x10
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
jmp 0x1005a556
inc esi
cmp esi, dword [esp + 0x1c]
jb 0x1005a851
mov edx, dword [esp + 0x78]
mov ebx, dword [esp + 0x8c]
mov edi, dword [esp + 0xf0]
mov esi, dword [esp + 0xc]
jmp 0x1005ad4c
inc edi
cmp edi, dword [esp + 0x74]
jb 0x1005a721
mov edx, dword [esp + 0x78]
mov ebx, dword [esp + 0x8c]
mov edi, dword [esp + 0xf0]
mov esi, dword [esp + 0xc]
jmp 0x1005ad4c
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0xa0]
mov ebx, dword [esp + 0x10]
mov edi, dword [ecx + 0x20]
mov edx, dword [ebp + 0xc]
test edi, edi
lea esi, [edx + ebx]
lea edx, [esi*8 + 0x80]
mov dword [ecx + 0x18], edx
je 0x1005b48d
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 0xc]
mov edx, dword [eax]
mov esi, edx
neg esi
and esi, 0x3f
add edx, esi
mov dword [esp + 0x4c], edx
lea esi, [edx + edi*4]
mov dword [eax], esi
mov dword [ecx + 0x54], edx
mov esi, dword [eax]
mov edx, esi
neg edx
and edx, 0x3f
add esi, edx
mov dword [esp + 0x20], esi
lea edi, [esi + edi*4]
mov dword [eax], edi
mov edi, dword [ecx + 0x50]
lea eax, [edi + edi*2]
mov eax, dword [ecx + eax*8 + 0x5c]
test eax, eax
jle 0x1005af96
cmp eax, 4
jl 0x1005b79e
mov edi, dword [esp + 0x4c]
and edi, 0xf
je 0x1005af03
test edi, 3
jne 0x1005b79e
neg edi
add edi, 0x10
shr edi, 2
lea edx, [edi + 4]
cmp eax, edx
jl 0x1005b79e
mov esi, eax
sub esi, edi
and esi, 3
neg esi
add esi, eax
test edi, edi
jbe 0x1005af2e
mov ecx, dword [esp + 0x4c]
xor edx, edx
mov dword [ecx + edx*4], edx
inc edx
cmp edx, edi
jb 0x1005af23
mov ecx, dword [ebp + 8]
mov dword [esp], eax
mov eax, 4
mov dword [esp + 4], esi
lea edx, [edi + 1]
lea esi, [edi + 2]
movd xmm0, eax
lea eax, [edi + 3]
pshufd xmm1, xmm0, 0
movd xmm0, edi
movd xmm2, edx
movd xmm4, esi
punpcklqdq xmm0, xmm2
movd xmm3, eax
punpcklqdq xmm4, xmm3
shufps xmm0, xmm4, 0x88
mov esi, dword [esp + 4]
mov eax, dword [esp]
mov edx, dword [esp + 0x4c]
movdqa xmmword [edx + edi*4], xmm0
add edi, 4
paddd xmm0, xmm1
cmp edi, esi
jb 0x1005af73
cmp esi, eax
jae 0x1005af93
mov edx, dword [esp + 0x4c]
mov dword [edx + esi*4], esi
inc esi
cmp esi, eax
jb 0x1005af8b
mov edi, dword [ecx + 0x50]
test edi, edi
lea eax, [edi + 1]
mov dword [esp + 0x1c], eax
jl 0x1005b41c
mov esi, dword [esp + 0x20]
lea eax, [edi + edi*2]
and esi, 0xf
lea edi, [ecx + eax*8]
mov eax, esi
mov edx, esi
neg eax
and edx, 3
add eax, 0x10
mov dword [esp + 0x14], 0
shr eax, 2
mov dword [esp + 0xc], esi
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], ebx
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
lea ecx, [esi + esi*2]
shl ecx, 3
neg ecx
mov ebx, dword [edx + ecx + 0x58]
mov edi, dword [edx + ecx + 0x5c]
mov eax, dword [edx + ecx + 0x6c]
mov ecx, dword [edx + ecx + 0x60]
imul ecx, dword [esp + 0x9c]
mov dword [esp + 0x40], eax
cmp ebx, 0xd
jg 0x1005b0a0
test edi, edi
jle 0x1005b407
shl ecx, 3
xor edx, edx
mov dword [esp + 0x38], ecx
lea eax, [ebx*8 - 8]
mov dword [esp + 0x3c], eax
lea eax, [ebx - 1]
mov dword [esp + 0x5c], eax
xor eax, eax
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x4c]
cmp dword [esp + 0x50], 1
mov ebx, dword [ecx + edx*4]
jle 0x1005b7a5
imul ebx, dword [esp + 0x38]
xor edi, edi
mov ecx, dword [esp + 0x40]
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x48], eax
add ecx, eax
mov dword [esp + 0x44], edx
add esi, ebx
mov eax, edi
mov edx, dword [eax + esi]
mov dword [ecx + edi*8], edx
mov edx, dword [eax + esi + 4]
add eax, ebx
mov dword [ecx + edi*8 + 4], edx
inc edi
cmp edi, dword [esp + 0x5c]
jb 0x1005b071
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
inc edx
add eax, dword [esp + 0x3c]
cmp edx, dword [esp + 0x54]
jb 0x1005b043
jmp 0x1005b7b4
test edi, edi
jle 0x1005b407
shl ecx, 3
xor eax, eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x54], edi
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x4c]
xor esi, esi
mov dword [esp + 0x34], eax
mov edi, dword [edx + eax*4]
xor edx, edx
imul edi, dword [esp + 0x38]
mov dword [esp + 0x58], edi
mov eax, dword [ebp + 0x10]
mov edi, dword [edx + eax]
mov dword [ecx + esi*8], edi
mov edi, dword [edx + eax + 4]
mov dword [ecx + esi*8 + 4], edi
inc esi
add edx, dword [esp + 0x58]
cmp esi, ebx
jb 0x1005b0d8
mov eax, dword [esp + 0x34]
lea ecx, [ecx + ebx*8]
inc eax
cmp eax, dword [esp + 0x54]
jb 0x1005b0bd
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x14]
cmp edi, 6
jle 0x1005b212
mov eax, dword [esp + 0x4c]
cmp eax, dword [esp + 0x20]
jae 0x1005b12b
mov edx, dword [esp + 0x20]
lea eax, [edi*4]
sub edx, dword [esp + 0x4c]
cmp eax, edx
jle 0x1005b14c
mov eax, dword [esp + 0x4c]
cmp eax, dword [esp + 0x20]
jbe 0x1005b212
lea edx, [edi*4]
sub eax, dword [esp + 0x20]
cmp eax, edx
jl 0x1005b212
mov edx, dword [esp + 0xc]
test edx, edx
je 0x1005b163
cmp dword [esp + 8], 0
jne 0x1005b7c5
mov edx, dword [esp + 4]
lea eax, [edx + 4]
cmp edi, eax
jl 0x1005b7c5
mov ecx, edi
sub ecx, edx
and ecx, 3
neg ecx
add ecx, edi
test edx, edx
jbe 0x1005b1aa
mov dword [esp + 0x54], edi
xor eax, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x50], ebx
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x4c]
mov ebx, dword [edi + eax*4]
mov dword [esi + eax*4], ebx
inc eax
cmp eax, edx
jb 0x1005b193
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x4c]
lea eax, [eax + edx*4]
test al, 0xf
je 0x1005b1d4
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x4c]
movdqu xmm0, xmmword [esi + edx*4]
movdqa xmmword [eax + edx*4], xmm0
add edx, 4
cmp edx, ecx
jb 0x1005b1c1
jmp 0x1005b1f1
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x4c]
movdqa xmm0, xmmword [esi + edx*4]
movdqa xmmword [eax + edx*4], xmm0
add edx, 4
cmp edx, ecx
jb 0x1005b1e0
mov esi, dword [esp + 0x14]
cmp ecx, edi
jae 0x1005b22f
mov dword [esp + 0x14], esi
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x4c]
mov eax, dword [esi + ecx*4]
mov dword [edx + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x1005b205
jmp 0x1005b22b
mov dword [esp + 0x14], esi
xor eax, eax
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x4c]
mov edx, dword [esi + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, edi
jb 0x1005b220
mov esi, dword [esp + 0x14]
test ebx, ebx
jle 0x1005b407
mov dword [esp + 0x50], ebx
lea edx, [ebx*4]
mov dword [esp], edx
xor eax, eax
mov dword [esp + 0x14], esi
mov edx, dword [esp + 0x4c]
cmp dword [esp + 0x50], 6
jg 0x1005b263
mov ebx, eax
imul ebx, dword [esp]
add ebx, edx
jmp 0x1005b3ce
mov dword [esp + 0x28], eax
lea ecx, [edi*4]
mov dword [esp + 0x54], edi
mov edx, dword [esp + 0x50]
movd xmm0, ecx
pshufd xmm0, xmm0, 0
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x4c]
lea eax, [ecx + ebx*4]
mov dword [esp + 0x2c], eax
imul ebx, dword [esp]
lea ecx, [edi + ebx - 4]
cmp ecx, eax
lea esi, [edi + ebx]
mov dword [esp + 0x30], esi
jbe 0x1005b2b0
mov eax, ecx
sub eax, dword [esp + 0x2c]
cmp eax, 4
jge 0x1005b2cf
cmp ecx, dword [esp + 0x2c]
jae 0x1005b3c0
neg ecx
lea eax, [edx*4]
add ecx, dword [esp + 0x2c]
cmp ecx, eax
jl 0x1005b3c0
and esi, 0xf
je 0x1005b2e8
test esi, 3
jne 0x1005b7cc
neg esi
add esi, 0x10
shr esi, 2
lea eax, [esi + 4]
cmp edx, eax
jl 0x1005b7cc
mov eax, edx
sub eax, esi
and eax, 3
neg eax
add eax, edx
test esi, esi
jbe 0x1005b32a
xor ebx, ebx
mov dword [esp + 0x24], eax
xor ecx, ecx
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
mov eax, dword [edx]
add eax, ecx
mov dword [edi + ebx*4], eax
inc ebx
add ecx, dword [esp + 0x54]
cmp ebx, esi
jb 0x1005b312
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x24], eax
mov eax, esi
mov ebx, dword [esp + 0x54]
imul eax, ebx
lea ecx, [ebx + eax]
lea edi, [ebx + ecx]
movd xmm1, eax
movd xmm2, ecx
movd xmm4, edi
add edi, ebx
punpcklqdq xmm1, xmm2
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
movd xmm3, edi
punpcklqdq xmm4, xmm3
mov ebx, dword [esp + 0x30]
shufps xmm1, xmm4, 0x88
movd xmm2, dword [ecx]
pshufd xmm3, xmm2, 0
paddd xmm3, xmm1
paddd xmm1, xmm0
movdqa xmmword [ebx + esi*4], xmm3
add esi, 4
cmp esi, eax
jb 0x1005b367
mov ecx, dword [esp + 0x54]
imul ecx, eax
cmp eax, edx
jae 0x1005b7d3
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
mov ebx, dword [esi]
add ebx, ecx
mov dword [edi + eax*4], ebx
inc eax
add ecx, dword [esp + 0x54]
cmp eax, edx
jb 0x1005b39b
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0x54]
jb 0x1005b27f
jmp 0x1005b3fe
mov ebx, esi
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x4c]
xor esi, esi
mov dword [esp + 0x54], edi
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov edx, dword [edi + eax*4]
add edx, ecx
mov dword [ebx + esi*4], edx
inc esi
add ecx, dword [esp + 0x54]
cmp esi, dword [esp + 0x50]
jb 0x1005b3da
inc eax
mov edi, dword [esp + 0x54]
cmp eax, edi
mov edx, dword [esp + 0x4c]
jb 0x1005b24f
nop dword [eax + eax]
mov esi, dword [esp + 0x14]
inc esi
cmp esi, dword [esp + 0x1c]
jb 0x1005afe1
mov ecx, dword [ebp + 8]
mov ebx, dword [esp + 0x10]
mov edi, dword [ecx + 0x50]
mov eax, dword [ebp + 0xc]
lea esi, [edi + edi*2]
cdq
mov esi, dword [ecx + esi*8 + 0x5c]
idiv esi
test edi, edi
js 0x1005b45a
mov dword [esp + 0x10], ebx
mov esi, 1
cmp eax, 0x7d0
lea edx, [edi + edi*2]
mov dword [ecx + edx*8 + 0x64], esi
mov ebx, dword [ecx + edx*8 + 0x58]
jle 0x1005b44d
cmp edi, 1
jne 0x1005b450
imul esi, ebx
cdq
idiv ebx
dec edi
jns 0x1005b436
mov ebx, dword [esp + 0x10]
mov eax, dword [ebp + 0xc]
lea edx, [eax*8]
mov eax, dword [ecx + 0x18]
sub eax, edx
test ebx, ebx
jne 0x1005b476
mov dword [ecx + 0x18], 0
jmp 0x1005b479
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x54], 0
add esp, 0x124
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0x18]
mov esi, dword [edi]
mov ebx, esi
neg ebx
and ebx, 0x3f
add esi, ebx
lea edx, [esi + eax*4]
mov dword [edi], edx
mov dword [esi], 0
mov ebx, dword [ecx + 0x50]
mov edx, ebx
dec edx
js 0x1005b78e
mov dword [esp + 0x1c], 1
lea edx, [ebx + ebx*2 - 3]
mov dword [esp + 0x14], 0
lea edi, [ecx + edx*8]
mov edx, esi
and edx, 0xf
mov dword [esp + 0x28], edi
mov edi, edx
and edi, 3
mov dword [esp + 0x20], edi
mov edi, edx
neg edi
add edi, 0x10
shr edi, 2
mov dword [esp + 0x18], edx
mov dword [esp + 0xa0], eax
movdqa xmm0, xmmword [0x10394a10]
mov dword [esp + 0x10], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], esi
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
lea ebx, [edx + edx*2]
shl ebx, 3
neg ebx
cmp eax, dword [esp + 0xa0]
mov ecx, dword [ecx + ebx + 0x58]
jge 0x1005b6aa
mov ebx, ecx
dec ebx
js 0x1005b697
test eax, eax
jle 0x1005b697
xor esi, esi
lea edi, [ecx*4]
imul edi, eax
lea ebx, [eax*4]
add edi, dword [esp + 0x2c]
mov dword [esp + 0x34], esi
mov dword [esp], edi
sub edi, ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x40], edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x3c], ecx
mov esi, dword [esp]
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + 8], ebx
mov dword [esp + 0x44], ecx
cmp eax, 6
jg 0x1005b58f
mov ecx, dword [esp + 0x38]
jmp 0x1005b63e
mov dword [esp + 0x30], edi
lea ecx, [eax*4]
neg ecx
add ecx, dword [esp]
mov esi, dword [esp + 0x3c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 8]
imul ecx, edx
mov ebx, dword [esp + 4]
sub ebx, ecx
add ebx, 0xfffffffc
mov dword [esp + 0xc], ebx
cmp ebx, dword [esp + 0x2c]
jbe 0x1005b5d2
mov edi, ebx
lea ebx, [eax*4]
sub edi, dword [esp + 0x2c]
cmp ebx, edi
jle 0x1005b5f1
mov ebx, dword [esp + 0x2c]
cmp ebx, dword [esp + 0xc]
jbe 0x1005b636
mov ebx, dword [esp + 0xc]
lea edi, [eax*4]
neg ebx
add ebx, dword [esp + 0x2c]
cmp ebx, edi
jl 0x1005b636
neg ecx
xor ebx, ebx
mov dword [esp + 0x34], edx
add ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x2c]
mov edi, dword [edx + ebx*4]
imul edi, dword [esp + 0x44]
lea edi, [esi + edi - 1]
mov dword [ecx + ebx*4], edi
inc ebx
cmp ebx, eax
jb 0x1005b601
mov ecx, dword [esp + 0x38]
dec esi
mov edx, dword [esp + 0x34]
inc edx
dec dword [esp + 0x30]
lea ebx, [ecx + eax*4]
mov dword [esp + 0x38], ebx
cmp edx, dword [esp + 0x44]
jb 0x1005b5a7
jmp 0x1005b68f
mov dword [esp + 0x3c], esi
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x44]
neg ecx
mov dword [esp + 0x34], edx
xor esi, esi
add ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x2c]
add ebx, edi
mov dword [esp + 0x30], edi
mov edi, dword [edx + esi*4]
imul edi, dword [esp + 0x44]
lea edi, [ebx + edi - 1]
mov dword [ecx + esi*4], edi
inc esi
cmp esi, eax
jb 0x1005b658
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
inc edx
mov edi, dword [esp + 0x30]
lea ebx, [ecx + eax*4]
dec dword [esp + 0x3c]
dec edi
mov dword [esp + 0x38], ebx
cmp edx, dword [esp + 0x44]
jb 0x1005b581
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x14]
inc edx
imul eax, ecx
cmp edx, dword [esp + 0x24]
jb 0x1005b50c
jmp 0x1005b787
test eax, eax
jle 0x1005b77c
cmp eax, 4
jl 0x1005b7eb
mov esi, dword [esp + 0x18]
test esi, esi
je 0x1005b6d2
cmp dword [esp + 0x20], 0
jne 0x1005b7eb
mov esi, dword [esp + 0x10]
lea ebx, [esi + 4]
cmp eax, ebx
jl 0x1005b7eb
mov edi, eax
sub edi, esi
and edi, 3
neg edi
add edi, eax
test esi, esi
jbe 0x1005b710
mov dword [esp + 0x14], edx
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + ebx*4]
imul eax, ecx
mov dword [edx + ebx*4], eax
inc ebx
cmp ebx, esi
jb 0x1005b6fa
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
movd xmm1, ecx
pshufd xmm2, xmm1, 0
movdqa xmm1, xmm2
mov ebx, dword [esp + 0x2c]
psrlq xmm1, 0x20
movdqa xmm3, xmmword [ebx + esi*4]
movdqa xmm4, xmm2
pmuludq xmm4, xmm3
psrlq xmm3, 0x20
pmuludq xmm3, xmm1
pand xmm4, xmm0
psllq xmm3, 0x20
por xmm4, xmm3
movdqa xmmword [ebx + esi*4], xmm4
add esi, 4
cmp esi, edi
jb 0x1005b726
cmp edi, eax
jae 0x1005b7f7
mov esi, dword [esp + 0x2c]
mov ebx, dword [esi + edi*4]
imul ebx, ecx
mov dword [esi + edi*4], ebx
inc edi
cmp edi, eax
jb 0x1005b761
inc edx
cmp edx, dword [esp + 0x24]
jb 0x1005b50c
jmp 0x1005b787
inc edx
cmp edx, dword [esp + 0x24]
jb 0x1005b50c
mov esi, dword [esp + 0x2c]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x54], esi
add esp, 0x124
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor esi, esi
jmp 0x1005af83
inc edx
add eax, dword [esp + 0x3c]
cmp edx, dword [esp + 0x54]
jb 0x1005b043
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x14]
jmp 0x1005b105
xor ecx, ecx
jmp 0x1005b1f5
xor eax, eax
jmp 0x1005b384
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0x54]
jb 0x1005b27f
jmp 0x1005b3fe
nop dword [eax + eax]
xor edi, edi
jmp 0x1005b755
inc edx
cmp edx, dword [esp + 0x24]
jb 0x1005b50c
jmp 0x1005b787
xor eax, eax
jmp 0x1005ae82