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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x7c
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
mov edi, 0xffffffff
cmp eax, 0x848
jb 0x6ed0e8
mov edx, dword [esp + 0x9c]
mov eax, dword [esp + 0x90]
mov eax, dword [eax]
movzx ebp, al
pxor xmm0, xmm0
movdqu xmmword [edx + 0x2d0], xmm0
movdqu xmmword [edx + 0x2c0], xmm0
movdqu xmmword [edx + 0x2b0], xmm0
movdqu xmmword [edx + 0x2a0], xmm0
movdqu xmmword [edx + 0x290], xmm0
movdqu xmmword [edx + 0x280], xmm0
movdqu xmmword [edx + 0x270], xmm0
mov edi, 0xffffffd4
cmp ebp, 0xc
ja 0x6ed0e8
mov dword [esp + 0x30], eax
lea ecx, [edx + 0x270]
lea eax, [edx + 0x3e0]
add edx, 0x4e0
lea esi, [esp + 0x50]
lea ebx, [esp + 0x4c]
push dword [esp + 0xa4]
push 0x368
push edx
push dword [esp + 0xa4]
push dword [esp + 0xa4]
push esi
push ebx
push ecx
push 0x100
push eax
call fcn.0067b0d0
add esp, 0x28
cmp eax, 0xffffff88
ja 0x6ec9e2
mov ebx, dword [esp + 0x50]
cmp ebx, ebp
ja 0x6ed0e8
mov esi, ebp
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x30]
shr eax, 0x18
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x90]
add eax, 4
mov dword [esp + 0x44], eax
cmp ebx, 0xc
setb cl
cmp ebp, 0xc
setae al
and al, cl
lea ecx, [ebx + 1]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x9c]
lea ecx, [ecx + ebx*4]
add ecx, 0x2b0
xor ebp, ebp
xor edi, edi
nop word cs:[eax + eax]
mov edx, edi
add ebp, 0xffffffcc
cmp dword [ecx + edi*4 - 0x40], 0
lea edi, [edi - 1]
je 0x6ec990
test al, al
mov eax, 0xb
cmovne esi, eax
mov dword [esp + 0x14], esi
lea eax, [ebx + edi]
add eax, 2
xor edx, edx
mov dword [esp + 8], ebx
lea ecx, [ebx + edi]
inc ecx
mov dword [esp + 4], ecx
mov dword [esp + 0x1c], eax
cmp eax, 2
jb 0x6eca80
mov eax, dword [esp + 8]
add eax, edi
cmp eax, 3
jae 0x6ec9e9
mov ecx, 1
xor eax, eax
jmp 0x6eca48
mov edi, eax
jmp 0x6ed0e8
mov ebx, dword [esp + 4]
and ebx, 0xfffffffc
xor eax, eax
xor ecx, ecx
mov esi, dword [esp + 0x9c]
nop dword [eax + eax]
mov edx, dword [esi + ecx*4 + 0x274]
add edx, eax
mov dword [esi + ecx*4 + 0x2ac], eax
mov eax, dword [esi + ecx*4 + 0x278]
add eax, edx
mov dword [esi + ecx*4 + 0x2b0], edx
mov edx, dword [esi + ecx*4 + 0x27c]
add edx, eax
mov dword [esi + ecx*4 + 0x2b4], eax
mov eax, dword [esi + ecx*4 + 0x280]
add eax, edx
mov dword [esi + ecx*4 + 0x2b8], edx
add ecx, 4
cmp ebx, ecx
jne 0x6eca00
inc ecx
mov edx, eax
test byte [esp + 4], 3
je 0x6eca80
mov edx, dword [esp + 0x9c]
lea ecx, [edx + ecx*4]
add ecx, 0x2a8
mov ebx, dword [esp + 4]
and ebx, 3
xor esi, esi
nop word [eax + eax]
mov edx, dword [ecx + esi*4 - 0x38]
add edx, eax
mov dword [ecx + esi*4], eax
inc esi
mov eax, edx
cmp ebx, esi
jne 0x6eca70
mov esi, dword [esp + 0x9c]
mov dword [esi + 0x2a8], edx
mov eax, dword [esp + 8]
lea eax, [esi + eax*4]
mov dword [eax + edi*4 + 0x2b0], edx
mov ecx, dword [esp + 0x4c]
test ecx, ecx
mov dword [esp + 0x18], edi
je 0x6ecb96
xor eax, eax
cmp ecx, 1
je 0x6ecb5f
mov dword [esp + 0xc], ebp
mov edx, ecx
and edx, 0xfffffffe
xor eax, eax
nop word cs:[eax + eax]
mov esi, dword [esp + 0x9c]
movzx esi, byte [esi + eax + 0x3e0]
mov edi, dword [esp + 0x9c]
mov edi, dword [edi + esi*4 + 0x2a8]
lea ebx, [edi + 1]
mov ebp, dword [esp + 0x9c]
mov dword [ebp + esi*4 + 0x2a8], ebx
mov esi, dword [esp + 0x9c]
mov byte [esi + edi + 0x2e0], al
mov esi, dword [esp + 0x9c]
movzx esi, byte [esi + eax + 0x3e1]
mov edi, dword [esp + 0x9c]
mov edi, dword [edi + esi*4 + 0x2a8]
lea ebx, [edi + 1]
mov ebp, dword [esp + 0x9c]
mov dword [ebp + esi*4 + 0x2a8], ebx
mov esi, dword [esp + 0x9c]
mov ebx, eax
inc bl
mov byte [esi + edi + 0x2e0], bl
add eax, 2
cmp eax, edx
jne 0x6ecad0
mov ebp, dword [esp + 0xc]
mov edi, dword [esp + 0x18]
test cl, 1
je 0x6ecb96
movzx ecx, byte [esi + eax + 0x3e0]
mov edx, dword [esi + ecx*4 + 0x2a8]
lea esi, [edx + 1]
mov edi, dword [esp + 0x9c]
mov dword [edi + ecx*4 + 0x2a8], esi
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x9c]
mov byte [esi + edx + 0x2e0], al
mov dword [esi + 0x2a8], 0
cmp dword [esp + 0x1c], 2
jb 0x6ecc3a
mov ecx, dword [esp + 8]
mov eax, ecx
add eax, edi
je 0x6ecc22
mov dword [esp + 0xc], ebp
mov eax, dword [esp + 0x9c]
lea ebp, [eax + 0x278]
mov eax, dword [esp + 0x14]
sub eax, ecx
mov ecx, dword [esp + 4]
and ecx, 0xfffffffe
mov dword [esp], ecx
xor ebx, ebx
mov esi, 0xffffffff
nop dword [eax]
mov edx, dword [ebp - 4]
mov edi, dword [ebp]
mov ecx, eax
shl edx, cl
add edx, ebx
mov dword [ebp - 0x274], ebx
inc cl
shl edi, cl
mov ebx, edi
add ebx, edx
mov dword [ebp - 0x270], edx
add ebp, 8
add eax, 2
mov ecx, dword [esp]
add ecx, esi
add ecx, 0xfffffffe
add esi, 0xfffffffe
cmp ecx, 0xffffffff
jne 0x6ecbe0
neg esi
mov ebp, dword [esp + 0xc]
mov edi, dword [esp + 0x18]
jmp 0x6ecc29
xor ebx, ebx
mov esi, 1
test byte [esp + 4], 1
je 0x6ecc3a
mov eax, dword [esp + 0x9c]
mov dword [eax + esi*4], ebx
mov ecx, edi
neg ecx
mov ebx, dword [esp + 0x14]
lea eax, [ebx + edi]
inc eax
mov dword [esp + 0x34], ecx
cmp ecx, eax
mov esi, dword [esp + 0x9c]
jae 0x6ecdde
movd xmm0, dword [esp + 0x34]
pshufd xmm0, xmm0, 0x51
mov eax, dword [esp + 4]
and eax, 0xfffffff8
mov dword [esp + 0x20], eax
inc eax
mov dword [esp + 0x28], eax
lea eax, [esi + 0x14]
mov dword [esp + 0x24], eax
lea eax, [esi + 0xc]
mov dword [esp], eax
neg ebp
mov eax, dword [esp + 8]
add eax, edi
mov dword [esp + 0x10], eax
pcmpeqd xmm1, xmm1
mov dword [esp + 0xc], ebp
jmp 0x6eccc2
psubd xmm0, xmm1
pshufd xmm2, xmm0, 0x55
movd eax, xmm2
mov ebx, dword [esp + 0x14]
mov ecx, ebx
sub ecx, eax
add ecx, dword [esp + 0x18]
cmp ecx, 0xffffffff
je 0x6ecdde
cmp dword [esp + 0x1c], 2
jb 0x6ecca0
pshufd xmm2, xmm0, 0x55
movd ecx, xmm2
imul ebx, ecx, 0x34
mov eax, 1
cmp dword [esp + 4], 8
jb 0x6ecd3f
movd edx, xmm0
imul edx, edx, 0x34
add edx, ebp
cmp edx, 0x20
jb 0x6ecd3f
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
nop word [eax + eax]
movdqu xmm2, xmmword [edx - 0x10]
movdqu xmm3, xmmword [edx]
movdqa xmm4, xmm0
psrlq xmm4, 0x20
psrld xmm2, xmm4
psrld xmm3, xmm4
movdqu xmmword [edx + ebx - 0x10], xmm2
movdqu xmmword [edx + ebx], xmm3
add edx, 0x20
add eax, 0xfffffff8
jne 0x6ecd00
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
cmp dword [esp + 4], edx
je 0x6ecca0
mov edi, dword [esp + 0x10]
sub edi, eax
lea edx, [edi + 2]
inc edi
mov dword [esp + 0x2c], edi
test dl, 3
je 0x6ecd7d
lea ebp, [esi + ebx]
mov edx, dword [esp + 0x1c]
sub dl, al
movzx edi, dl
and edi, 3
nop word cs:[eax + eax]
mov edx, dword [esi + eax*4]
shr edx, cl
mov dword [ebp + eax*4], edx
inc eax
dec edi
jne 0x6ecd70
cmp dword [esp + 0x2c], 3
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0xc]
mov edx, dword [esp]
jb 0x6ecca0
add ebx, edx
nop word cs:[eax + eax]
mov edx, dword [esp]
mov edx, dword [edx + eax*4 - 0xc]
shr edx, cl
mov dword [ebx + eax*4 - 0xc], edx
mov edx, dword [esp]
mov edx, dword [edx + eax*4 - 8]
shr edx, cl
mov dword [ebx + eax*4 - 8], edx
mov edx, dword [esp]
mov edx, dword [edx + eax*4 - 4]
shr edx, cl
mov dword [ebx + eax*4 - 4], edx
mov edx, dword [esp]
mov edx, dword [edx + eax*4]
shr edx, cl
mov dword [ebx + eax*4], edx
add eax, 4
cmp edi, eax
jne 0x6ecda0
jmp 0x6ecca0
cmp dword [esp + 4], 0
jle 0x6ed0c9
mov ecx, dword [esp + 0x9c]
lea esi, [ecx + 0x2e0]
mov eax, dword [esp + 0x38]
sub eax, ebx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x90]
add eax, 0x34
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 8]
lea edx, [eax + eax]
inc edx
mov dword [esp + 0x3c], edx
sub edx, ebx
imul eax, eax, 0x34
add eax, ecx
mov ecx, eax
mov eax, 1
mov dword [esp + 0x20], esi
jmp 0x6ece7b
mov eax, dword [esp + 0x9c]
mov eax, dword [eax + edi*4]
mov ecx, dword [esp + 0x44]
lea ecx, [ecx + eax*4]
add edx, esi
add ebp, esi
push 1
push 0
push dword [esp + 0x1c]
push ebx
push ebp
call fcn.006ef860
add esp, 0x14
mov ecx, dword [esp]
mov edi, dword [esp + 0x40]
lea eax, [edi + 1]
dec dword [esp + 0x3c]
mov edx, dword [esp + 0x68]
dec edx
add ecx, 0xffffffcc
cmp dword [esp + 4], edi
mov ebx, dword [esp + 0x14]
je 0x6ed0c9
mov dword [esp], ecx
cmp edx, 2
mov edi, eax
mov eax, 1
mov dword [esp + 0x68], edx
cmovge eax, edx
mov ecx, dword [esp + 0x9c]
mov edx, dword [ecx + edi*4 + 0x2a4]
mov ebp, dword [ecx + edi*4 + 0x2a8]
mov ecx, ebx
mov ebx, dword [esp + 0x38]
sub ebx, edi
sub ecx, ebx
cmp ecx, dword [esp + 0x34]
mov dword [esp + 0x40], edi
jb 0x6ece30
mov edi, 1
shl edi, cl
mov dword [esp + 8], edi
mov ecx, dword [esp + 0x60]
mov edi, ebx
add ebx, ecx
cmp ebx, 2
mov ecx, 1
cmovl ebx, ecx
mov dword [esp + 0x10], ebx
cmp edx, ebp
mov ecx, dword [esp]
je 0x6ece5a
mov ebx, edx
mov edx, dword [esp + 0x3c]
sub edx, eax
mov dword [esp + 0x6c], edx
mov eax, dword [esp + 0x9c]
mov edx, dword [esp + 0x40]
mov edx, dword [eax + edx*4]
imul eax, edi, 0x34
add eax, dword [esp + 0x9c]
mov dword [esp + 0x64], eax
shl edi, 0x10
add edi, 0x1000000
mov dword [esp + 0x70], edi
mov eax, dword [esp + 0x5c]
lea eax, [eax + edx*4]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 8]
lea eax, [eax*4]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ebp
jmp 0x6ecf65
mov edx, dword [esp + 0x24]
add edx, dword [esp + 8]
mov ebx, dword [esp + 0x28]
inc ebx
mov eax, dword [esp + 0x74]
add dword [esp + 0x48], eax
mov ebp, dword [esp + 0x78]
cmp ebx, ebp
mov esi, dword [esp + 0x20]
je 0x6ece5a
mov eax, dword [esp + 0x44]
mov dword [esp + 0x24], edx
lea ebp, [eax + edx*4]
mov dword [esp + 0x28], ebx
movzx eax, byte [esi + ebx]
movzx edi, ax
cmp dword [esp + 0x10], 2
mov dword [esp + 0xc], edi
jb 0x6ecfb1
mov eax, dword [esp + 0x70]
or eax, edi
mov ecx, ebp
cmp dword [esp + 8], 2
je 0x6ecfa9
cmp dword [esp + 8], 4
jne 0x6ed03c
mov dword [ebp], eax
mov dword [ebp + 4], eax
lea ecx, [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov ecx, dword [esp]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 4]
mov esi, dword [esp + 0x9c]
mov edi, dword [esp + 0x1c]
jg 0x6ecf40
mov ebx, dword [esp + 0x6c]
mov eax, dword [esp + 0x10]
nop word cs:[eax + eax]
lea ecx, [eax + 1]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp]
mov ecx, dword [ecx + eax*4]
lea ecx, [ecx*4]
add ecx, ebp
mov dword [esp + 0x2c], ecx
mov edx, dword [esi + eax*4 + 0x2a4]
mov ecx, dword [esp + 0x20]
add edx, ecx
mov eax, dword [esi + eax*4 + 0x2a8]
add eax, ecx
mov ecx, dword [esp + 0x2c]
push 2
push dword [esp + 0x10]
push dword [esp + 0x1c]
push ebx
push eax
call fcn.006ef860
mov ecx, dword [esp + 0x14]
add esp, 0x14
dec ebx
mov edx, dword [esp + 0x18]
mov eax, edx
cmp edi, edx
jne 0x6ecfe0
jmp 0x6ecf40
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x64]
mov ebx, dword [edx + ecx*4]
test ebx, ebx
mov ecx, dword [esp]
jle 0x6ecfb1
lea ecx, [ebx - 1]
shr ecx, 3
inc ecx
xor edx, edx
cmp ebx, 9
mov edi, dword [esp + 0x48]
jb 0x6ed09f
mov ebx, ecx
and ebx, 0xfffffffe
movd xmm0, eax
punpckldq xmm0, xmm0
pshufd xmm0, xmm0, 0x44
xor edx, edx
nop dword [eax + eax]
movdqu xmmword [edi + edx*4 - 0x30], xmm0
movdqu xmmword [edi + edx*4 - 0x20], xmm0
movdqu xmmword [edi + edx*4 - 0x10], xmm0
movdqu xmmword [edi + edx*4], xmm0
add edx, 0x10
add ebx, 0xfffffffe
jne 0x6ed080
test cl, 1
mov ecx, dword [esp]
je 0x6ecfb1
movd xmm0, eax
punpckldq xmm0, xmm0
pshufd xmm0, xmm0, 0x44
movdqu xmmword [ebp + edx*4], xmm0
movdqu xmmword [ebp + edx*4 + 0x10], xmm0
jmp 0x6ecfb1
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x30]
mov byte [eax], cl
mov byte [eax + 1], 1
mov byte [eax + 2], bl
mov ecx, dword [esp + 0x54]
mov byte [eax + 3], cl
mov edi, dword [esp + 0x58]
mov eax, edi
add esp, 0x7c
pop esi
pop edi
pop ebx
pop ebp
ret