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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
add esp, 0xffffff80
mov ebx, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [esp + 0x6c], ecx
mov edi, dword [ebp + 8]
mov dword [esp + 0x74], eax
sub eax, ebx
sar eax, 2
mov dword [esp + 0x78], ebx
imul ecx, eax, 0xaaaaaaab
cmp ecx, 0xaaaaaaa
je 0x5ca301
mov esi, dword [esp + 0x74]
mov edx, 1
cmp ebx, esi
mov esi, dword [ebp + 8]
cmovne edx, ecx
add ecx, edx
setb al
mov dword [esp + 0x70], ecx
sub esi, ebx
movzx edx, al
test edx, edx
jne 0x5ca260
test ecx, ecx
jne 0x5ca2e6
mov dword [esp + 0x7c], 0
mov eax, dword [ebp + 0xc]
mov ebx, dword [esp + 0x7c]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
add esi, ebx
mov dword [esi], 0
mov edx, ecx
mov dword [esi + 4], 0
sub edx, eax
mov dword [esi + 8], 0
mov dword [esp + 0x50], edx
je 0x5c9f70
cmp edx, 0x7ffffffc
ja 0x5ca2a4
mov dword [esp], edx
call sym.operator_new_unsigned_int_
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov edx, ecx
sub edx, eax
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x50]
movd xmm0, ebx
punpckldq xmm0, xmm0
add edx, ebx
movq qword [esi], xmm0
mov dword [esi + 8], edx
cmp eax, ecx
je 0x5c9a21
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 8], ecx
call sym._memmove
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x78]
add ebx, eax
mov dword [esi + 4], ebx
cmp dword [ebp + 8], ecx
je 0x5ca290
mov edx, dword [ebp + 8]
mov eax, ecx
lea esi, [edx - 0xc]
sub esi, ecx
shr esi, 2
imul esi, esi, 0x2aaaaaab
and esi, 0x3fffffff
cmp esi, 2
jbe 0x5ca280
mov ebx, dword [esp + 0x7c]
mov edx, ecx
sub ebx, ecx
mov ecx, dword [esp + 0x7c]
lea ebx, [ebx - 4]
cmp ebx, 0x28
ja 0x5c9f80
mov eax, dword [ebp + 8]
mov ebx, dword [esp + 0x78]
sub eax, ebx
sub eax, 0xc
shr eax, 2
imul eax, eax, 0x2aaaaaab
add eax, 1
and eax, 7
je 0x5c9b5d
cmp eax, 1
je 0x5c9b3f
cmp eax, 2
je 0x5c9b2a
cmp eax, 3
je 0x5c9b15
cmp eax, 4
je 0x5c9b00
cmp eax, 5
je 0x5c9aeb
cmp eax, 6
je 0x5c9ad6
mov ecx, dword [esp + 0x7c]
movq xmm5, qword [ebx]
lea edx, [ebx + 0xc]
mov eax, dword [ebx + 8]
movq qword [ecx], xmm5
add ecx, 0xc
mov dword [ecx - 4], eax
movq qword [esp + 0x50], xmm5
movq xmm0, qword [edx]
mov ebx, dword [edx + 8]
add ecx, 0xc
add edx, 0xc
mov dword [ecx - 4], ebx
movq qword [ecx - 0xc], xmm0
movq xmm3, qword [edx]
mov eax, dword [edx + 8]
add ecx, 0xc
add edx, 0xc
mov dword [ecx - 4], eax
movq qword [ecx - 0xc], xmm3
movq xmm1, qword [edx]
mov ebx, dword [edx + 8]
add ecx, 0xc
add edx, 0xc
mov dword [ecx - 4], ebx
movq qword [ecx - 0xc], xmm1
movq xmm4, qword [edx]
mov eax, dword [edx + 8]
add ecx, 0xc
add edx, 0xc
mov dword [ecx - 4], eax
movq qword [ecx - 0xc], xmm4
movq xmm2, qword [edx]
mov ebx, dword [edx + 8]
add ecx, 0xc
add edx, 0xc
mov dword [ecx - 4], ebx
movq qword [ecx - 0xc], xmm2
movq xmm7, qword [edx]
mov eax, dword [edx + 8]
add ecx, 0xc
add edx, 0xc
movq qword [ecx - 0xc], xmm7
mov dword [ecx - 4], eax
cmp dword [ebp + 8], edx
je 0x5c9beb
mov ebx, dword [edx + 8]
movq xmm6, qword [edx]
add ecx, 0x60
add edx, 0x60
movq qword [ecx - 0x60], xmm6
mov dword [ecx - 0x58], ebx
mov eax, dword [edx - 0x4c]
movq xmm5, qword [edx - 0x54]
mov dword [ecx - 0x4c], eax
movq qword [ecx - 0x54], xmm5
mov ebx, dword [edx - 0x40]
movq xmm0, qword [edx - 0x48]
mov dword [ecx - 0x40], ebx
movq qword [ecx - 0x48], xmm0
mov eax, dword [edx - 0x34]
movq xmm3, qword [edx - 0x3c]
mov dword [ecx - 0x34], eax
movq qword [ecx - 0x3c], xmm3
mov ebx, dword [edx - 0x28]
movq xmm1, qword [edx - 0x30]
mov dword [ecx - 0x28], ebx
movq qword [ecx - 0x30], xmm1
mov eax, dword [edx - 0x1c]
movq xmm4, qword [edx - 0x24]
mov dword [ecx - 0x1c], eax
movq qword [ecx - 0x24], xmm4
movq xmm2, qword [edx - 0x18]
mov ebx, dword [edx - 0x10]
movq qword [ecx - 0x18], xmm2
mov dword [ecx - 0x10], ebx
movq xmm7, qword [edx - 0xc]
mov eax, dword [edx - 4]
movq qword [ecx - 0xc], xmm7
mov dword [ecx - 4], eax
cmp dword [ebp + 8], edx
jne 0x5c9b5d
lea ebx, [esi + 1]
mov ecx, dword [esp + 0x7c]
lea esi, [ebx + ebx*2]
lea esi, [ecx + esi*4]
mov dword [esp + 0x50], esi
mov edx, dword [esp + 0x74]
lea ebx, [esi + 0xc]
cmp dword [ebp + 8], edx
je 0x5c9f2d
mov eax, dword [ebp + 8]
sub edx, eax
mov ecx, edx
sub ecx, 0xc
shr ecx, 2
imul esi, ecx, 0x2aaaaaab
and esi, 0x3fffffff
lea ecx, [esi + 1]
cmp esi, 2
jbe 0x5ca29d
mov edi, ecx
mov esi, eax
mov edx, ebx
shr edi, 2
lea edi, [edi + edi*2]
shl edi, 4
add esi, edi
sub edi, 0x30
shr edi, 4
mov dword [esp + 0x40], esi
imul edi, edi, 0xaaaaaab
add edi, 1
and edi, 7
je 0x5c9d87
cmp edi, 1
je 0x5c9d5b
cmp edi, 2
je 0x5c9d3b
cmp edi, 3
je 0x5c9d1b
cmp edi, 4
je 0x5c9cfb
cmp edi, 5
je 0x5c9cdb
cmp edi, 6
je 0x5c9cbb
movdqu xmm6, xmmword [eax + 0x10]
movdqu xmm0, xmmword [eax + 0x20]
add eax, 0x30
movdqu xmm5, xmmword [eax - 0x30]
mov edx, dword [esp + 0x50]
movups xmmword [esp + 0x30], xmm6
movups xmmword [esp + 0x20], xmm0
add edx, 0x3c
movups xmmword [esp + 0x10], xmm5
movups xmmword [ebx], xmm5
movups xmmword [ebx + 0x10], xmm6
movups xmmword [ebx + 0x20], xmm0
movdqu xmm3, xmmword [eax]
movdqu xmm1, xmmword [eax + 0x10]
add edx, 0x30
add eax, 0x30
movdqu xmm4, xmmword [eax - 0x10]
movups xmmword [edx - 0x30], xmm3
movups xmmword [edx - 0x20], xmm1
movups xmmword [edx - 0x10], xmm4
movdqu xmm2, xmmword [eax]
movdqu xmm7, xmmword [eax + 0x10]
add edx, 0x30
add eax, 0x30
movdqu xmm6, xmmword [eax - 0x10]
movups xmmword [edx - 0x30], xmm2
movups xmmword [edx - 0x20], xmm7
movups xmmword [edx - 0x10], xmm6
movdqu xmm0, xmmword [eax]
movdqu xmm5, xmmword [eax + 0x10]
add edx, 0x30
add eax, 0x30
movdqu xmm3, xmmword [eax - 0x10]
movups xmmword [edx - 0x30], xmm0
movups xmmword [edx - 0x20], xmm5
movups xmmword [edx - 0x10], xmm3
movdqu xmm1, xmmword [eax]
movdqu xmm4, xmmword [eax + 0x10]
add edx, 0x30
add eax, 0x30
movdqu xmm2, xmmword [eax - 0x10]
movups xmmword [edx - 0x30], xmm1
movups xmmword [edx - 0x20], xmm4
movups xmmword [edx - 0x10], xmm2
movdqu xmm7, xmmword [eax]
movdqu xmm6, xmmword [eax + 0x10]
add edx, 0x30
add eax, 0x30
movdqu xmm0, xmmword [eax - 0x10]
movups xmmword [edx - 0x30], xmm7
movups xmmword [edx - 0x20], xmm6
movups xmmword [edx - 0x10], xmm0
movdqu xmm5, xmmword [eax]
movdqu xmm3, xmmword [eax + 0x10]
add eax, 0x30
add edx, 0x30
movdqu xmm1, xmmword [eax - 0x10]
mov esi, dword [esp + 0x40]
movups xmmword [edx - 0x30], xmm5
movups xmmword [edx - 0x20], xmm3
movups xmmword [edx - 0x10], xmm1
cmp eax, esi
je 0x5c9ecf
movdqu xmm4, xmmword [eax]
movdqu xmm2, xmmword [eax + 0x10]
add eax, 0x180
add edx, 0x180
movdqu xmm7, xmmword [eax - 0x160]
movdqu xmm6, xmmword [eax - 0x140]
movdqu xmm0, xmmword [eax - 0x130]
movdqu xmm5, xmmword [eax - 0x150]
movups xmmword [edx - 0x180], xmm4
movdqu xmm3, xmmword [eax - 0x110]
movdqu xmm1, xmmword [eax - 0x100]
movups xmmword [edx - 0x170], xmm2
movups xmmword [edx - 0x160], xmm7
movdqu xmm2, xmmword [eax - 0xe0]
movdqu xmm7, xmmword [eax - 0xf0]
movups xmmword [edx - 0x150], xmm5
movdqu xmm4, xmmword [eax - 0x120]
movdqu xmm5, xmmword [eax - 0xb0]
movups xmmword [edx - 0x140], xmm6
movdqu xmm6, xmmword [eax - 0xd0]
movups xmmword [edx - 0x130], xmm0
movdqu xmm0, xmmword [eax - 0xa0]
movups xmmword [edx - 0x110], xmm3
movdqu xmm3, xmmword [eax - 0xc0]
movups xmmword [edx - 0x100], xmm1
movdqu xmm1, xmmword [eax - 0x80]
movups xmmword [edx - 0xf0], xmm7
movups xmmword [edx - 0xe0], xmm2
movdqu xmm2, xmmword [eax - 0x70]
movups xmmword [edx - 0xd0], xmm6
movups xmmword [edx - 0xc0], xmm3
movups xmmword [edx - 0xb0], xmm5
movups xmmword [edx - 0xa0], xmm0
movups xmmword [edx - 0x120], xmm4
movdqu xmm4, xmmword [eax - 0x90]
movdqu xmm6, xmmword [eax - 0x50]
movups xmmword [edx - 0x80], xmm1
movdqu xmm7, xmmword [eax - 0x40]
movdqu xmm5, xmmword [eax - 0x60]
movdqu xmm3, xmmword [eax - 0x20]
movdqu xmm0, xmmword [eax - 0x10]
movups xmmword [edx - 0x70], xmm2
movdqu xmm1, xmmword [eax - 0x30]
mov edi, dword [esp + 0x40]
movups xmmword [edx - 0x90], xmm4
movups xmmword [edx - 0x60], xmm5
movups xmmword [edx - 0x50], xmm6
movups xmmword [edx - 0x40], xmm7
movups xmmword [edx - 0x30], xmm1
movups xmmword [edx - 0x20], xmm3
movups xmmword [edx - 0x10], xmm0
cmp eax, edi
jne 0x5c9d87
mov eax, ecx
mov edi, dword [ebp + 8]
and eax, 0xfffffffc
lea edx, [eax + eax*2]
shl edx, 2
lea eax, [ebx + edx]
add edi, edx
test cl, 3
je 0x5c9f27
mov esi, dword [edi + 8]
movq xmm2, qword [edi]
lea edx, [edi + 0xc]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x74]
movq qword [eax], xmm2
cmp esi, edx
je 0x5c9f27
mov edx, dword [edi + 0x14]
movq xmm4, qword [edi + 0xc]
mov dword [eax + 0x14], edx
lea edx, [edi + 0x18]
movq qword [eax + 0xc], xmm4
cmp esi, edx
je 0x5c9f27
movq xmm6, qword [edi + 0x18]
mov edi, dword [edi + 0x20]
mov dword [eax + 0x20], edi
movq qword [eax + 0x18], xmm6
lea ecx, [ecx + ecx*2]
lea ebx, [ebx + ecx*4]
mov esi, dword [esp + 0x78]
test esi, esi
je 0x5c9f4e
mov eax, dword [esp + 0x6c]
mov edx, dword [eax + 8]
mov dword [esp], esi
mov dword [esp + 0x78], edx
sub edx, esi
mov dword [esp + 4], edx
call sym.operator_delete_void__unsigned_int_
mov ecx, dword [esp + 0x6c]
mov edi, dword [esp + 0x7c]
mov dword [ecx + 4], ebx
mov ebx, dword [esp + 0x70]
mov dword [ecx], edi
add ebx, edi
mov dword [ecx + 8], ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov dword [esp + 0x40], 0
xor ebx, ebx
jmp 0x5c99f4
lea ebx, [esi + 1]
mov edx, ecx
mov esi, eax
mov ecx, ebx
shr ecx, 2
lea ecx, [ecx + ecx*2]
shl ecx, 4
add esi, ecx
sub ecx, 0x30
shr ecx, 4
imul ecx, ecx, 0xaaaaaab
add ecx, 1
and ecx, 7
je 0x5ca09e
cmp ecx, 1
je 0x5ca076
cmp ecx, 2
je 0x5ca056
cmp ecx, 3
je 0x5ca036
cmp ecx, 4
je 0x5ca016
cmp ecx, 5
je 0x5c9ff6
cmp ecx, 6
jne 0x5ca2a9
movdqu xmm1, xmmword [eax]
movdqu xmm4, xmmword [eax + 0x10]
add edx, 0x30
add eax, 0x30
movdqu xmm7, xmmword [eax - 0x10]
movups xmmword [edx - 0x30], xmm1
movups xmmword [edx - 0x20], xmm4
movups xmmword [edx - 0x10], xmm7
movdqu xmm5, xmmword [eax]
movdqu xmm0, xmmword [eax + 0x10]
add edx, 0x30
add eax, 0x30
movdqu xmm2, xmmword [eax - 0x10]
movups xmmword [edx - 0x30], xmm5
movups xmmword [edx - 0x20], xmm0
movups xmmword [edx - 0x10], xmm2
movdqu xmm6, xmmword [eax]
movdqu xmm3, xmmword [eax + 0x10]
add edx, 0x30
add eax, 0x30
movdqu xmm1, xmmword [eax - 0x10]
movups xmmword [edx - 0x30], xmm6
movups xmmword [edx - 0x20], xmm3
movups xmmword [edx - 0x10], xmm1
movdqu xmm4, xmmword [eax]
movdqu xmm7, xmmword [eax + 0x10]
add edx, 0x30
add eax, 0x30
movdqu xmm5, xmmword [eax - 0x10]
movups xmmword [edx - 0x30], xmm4
movups xmmword [edx - 0x20], xmm7
movups xmmword [edx - 0x10], xmm5
movdqu xmm0, xmmword [eax]
movdqu xmm2, xmmword [eax + 0x10]
add edx, 0x30
add eax, 0x30
movdqu xmm6, xmmword [eax - 0x10]
movups xmmword [edx - 0x30], xmm0
movups xmmword [edx - 0x20], xmm2
movups xmmword [edx - 0x10], xmm6
movdqu xmm3, xmmword [eax]
movdqu xmm1, xmmword [eax + 0x10]
add eax, 0x30
add edx, 0x30
movdqu xmm4, xmmword [eax - 0x10]
movups xmmword [edx - 0x30], xmm3
movups xmmword [edx - 0x20], xmm1
movups xmmword [edx - 0x10], xmm4
cmp eax, esi
je 0x5ca1ea
mov dword [esp + 0x50], edi
movdqu xmm7, xmmword [eax]
movdqu xmm5, xmmword [eax + 0x10]
add eax, 0x180
add edx, 0x180
movdqu xmm0, xmmword [eax - 0x160]
movups xmmword [edx - 0x180], xmm7
movups xmmword [edx - 0x170], xmm5
movups xmmword [edx - 0x160], xmm0
movdqu xmm6, xmmword [eax - 0x140]
movdqu xmm3, xmmword [eax - 0x130]
movdqu xmm2, xmmword [eax - 0x150]
movups xmmword [edx - 0x140], xmm6
movups xmmword [edx - 0x150], xmm2
movups xmmword [edx - 0x130], xmm3
movdqu xmm1, xmmword [eax - 0x110]
movdqu xmm4, xmmword [eax - 0x100]
movdqu xmm7, xmmword [eax - 0x120]
movups xmmword [edx - 0x110], xmm1
movups xmmword [edx - 0x120], xmm7
movups xmmword [edx - 0x100], xmm4
movdqu xmm0, xmmword [eax - 0xd0]
movdqu xmm6, xmmword [eax - 0xf0]
movdqu xmm5, xmmword [eax - 0xe0]
movups xmmword [edx - 0xf0], xmm6
movups xmmword [edx - 0xd0], xmm0
movups xmmword [edx - 0xe0], xmm5
movdqu xmm3, xmmword [eax - 0xb0]
movdqu xmm2, xmmword [eax - 0xa0]
movdqu xmm1, xmmword [eax - 0xc0]
movups xmmword [edx - 0xb0], xmm3
movups xmmword [edx - 0xc0], xmm1
movups xmmword [edx - 0xa0], xmm2
movdqu xmm4, xmmword [eax - 0x80]
movdqu xmm7, xmmword [eax - 0x70]
movdqu xmm5, xmmword [eax - 0x90]
movups xmmword [edx - 0x80], xmm4
movups xmmword [edx - 0x90], xmm5
movups xmmword [edx - 0x70], xmm7
movdqu xmm6, xmmword [eax - 0x50]
movdqu xmm0, xmmword [eax - 0x40]
movdqu xmm3, xmmword [eax - 0x60]
movups xmmword [edx - 0x50], xmm6
movups xmmword [edx - 0x60], xmm3
movups xmmword [edx - 0x40], xmm0
movdqu xmm1, xmmword [eax - 0x20]
movdqu xmm4, xmmword [eax - 0x10]
movdqu xmm2, xmmword [eax - 0x30]
movups xmmword [edx - 0x20], xmm1
movups xmmword [edx - 0x30], xmm2
movups xmmword [edx - 0x10], xmm4
cmp eax, esi
jne 0x5ca0a2
mov edi, dword [esp + 0x50]
mov esi, ebx
mov ecx, dword [esp + 0x7c]
and esi, 0xfffffffc
lea eax, [esi + esi*2]
mov esi, dword [esp + 0x78]
shl eax, 2
lea edx, [ecx + eax]
add eax, esi
test bl, 3
je 0x5c9bee
movq xmm7, qword [eax]
mov ecx, dword [eax + 8]
lea esi, [eax + 0xc]
mov dword [edx + 8], ecx
movq qword [edx], xmm7
cmp dword [ebp + 8], esi
je 0x5c9bee
movq xmm5, qword [eax + 0xc]
mov ecx, dword [eax + 0x14]
lea esi, [eax + 0x18]
mov dword [edx + 0x14], ecx
movq qword [edx + 0xc], xmm5
cmp dword [ebp + 8], esi
je 0x5c9bee
movq xmm6, qword [eax + 0x18]
mov eax, dword [eax + 0x20]
movq qword [edx + 0x18], xmm6
mov dword [edx + 0x20], eax
jmp 0x5c9bee
mov dword [esp + 0x70], 0x7ffffff8
mov edx, dword [esp + 0x70]
mov dword [esp], edx
call sym.operator_new_unsigned_int_
mov dword [esp + 0x7c], eax
jmp 0x5c999e
mov edx, ecx
mov ecx, dword [esp + 0x7c]
jmp 0x5c9a71
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x50], esi
jmp 0x5c9bfc
mov eax, ebx
jmp 0x5c9ee7
call sym.std::__throw_bad_array_new_length__
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
movdqu xmm6, xmmword [eax + 0x10]
movdqu xmm3, xmmword [eax + 0x20]
lea edx, [edx + 0x30]
add eax, 0x30
movdqu xmm2, xmmword [eax - 0x30]
movups xmmword [edx - 0x20], xmm6
movups xmmword [edx - 0x30], xmm2
movups xmmword [edx - 0x10], xmm3
movups xmmword [esp + 0x50], xmm6
movups xmmword [esp + 0x40], xmm3
movups xmmword [esp + 0x30], xmm2
jmp 0x5c9fd6
mov ebx, ecx
mov ecx, 0xaaaaaaa
cmp ebx, ecx
cmovbe ecx, ebx
lea eax, [ecx + ecx*2]
shl eax, 2
mov dword [esp + 0x70], eax
jmp 0x5ca268
mov dword [esp], 0x603f60
call sym.std::__throw_length_error_char_const_
mov dword [esp], eax
call sym.___cxa_begin_catch
cmp dword [esp + 0x7c], 0
je 0x5ca335
mov esi, dword [esp + 0x70]
mov eax, dword [esp + 0x7c]
mov dword [esp + 4], esi
mov dword [esp], eax
call sym.operator_delete_void__unsigned_int_
call sym.___cxa_rethrow
mov ecx, dword [esi]
mov edx, dword [esi + 8]
sub edx, ecx
test ecx, ecx
je 0x5ca330
mov dword [esp + 4], edx
mov dword [esp], ecx
call sym.operator_delete_void__unsigned_int_
jmp 0x5ca330