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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov edx, ecx
push esi
push edi
mov dword [esp + 0xc], edx
mov esi, dword [edx + 0xa4]
mov eax, esi
sar eax, 5
add eax, 8
je 0x6b5195
shl eax, 2
mov ecx, 0x7d8950
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push eax
mov eax, dword [0x7d8950]
mov eax, dword [eax + 0xc]
call eax
mov edi, eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
cdq
and edx, 3
add eax, edx
mov edx, dword [esp + 0xc]
sar eax, 2
jmp 0x6b519b
xor edi, edi
mov dword [esp + 0x2c], edi
test eax, eax
mov ecx, connect
xorps xmm5, xmm5
cmovne ecx, eax
sar esi, 7
mov dword [esp + 0x6c], ecx
mov ecx, edi
test esi, esi
js 0x6b51c2
mov eax, ecx
add ecx, 0x10
sub esi, 1
movaps xmmword [eax], xmm5
jns 0x6b51b5
movaps xmm1, xmmword [edx + 0x40]
mov ecx, dword [ebp + 8]
addps xmm1, xmmword [ecx]
mulps xmm1, xmmword [edx + 0x60]
minps xmm1, xmmword [0x87afb0]
maxps xmm1, xmm5
addps xmm1, xmmword [0x87afe0]
movd eax, xmm1
movaps xmm0, xmm1
psrldq xmm0, 4
psrldq xmm1, 8
shr eax, 7
mov word [esp + 0x70], ax
movd eax, xmm0
shr eax, 7
mov word [esp + 0x72], ax
movd eax, xmm1
movaps xmm1, xmmword [edx + 0x50]
addps xmm1, xmmword [ecx + 0x10]
mov esi, dword [esp + 0x70]
and esi, 0xfffe
shr eax, 7
mov word [esp + 0x74], ax
mov dword [esp + 0x10], esi
mulps xmm1, xmmword [edx + 0x60]
mov esi, dword [esp + 0x72]
and esi, 0xfffe
mov dword [esp + 0x50], esi
mov esi, dword [esp + 0x74]
minps xmm1, xmmword [0x87afb0]
and esi, 0xfffe
mov dword [esp + 0x58], esi
maxps xmm1, xmm5
addps xmm1, xmmword [0x87afe0]
movd edx, xmm1
movaps xmm0, xmm1
psrldq xmm0, 4
psrldq xmm1, 8
shr edx, 7
movzx edx, dx
or edx, 1
movd ecx, xmm0
movd eax, xmm1
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0xc]
shr ecx, 7
shr eax, 7
movzx ecx, cx
mov esi, dword [edx + 0xac]
or ecx, 1
movzx eax, ax
add esi, 4
or eax, 1
mov dword [esp + 0x54], ecx
cmp dword [edx + 0xd0], 0
mov dword [esp + 0x60], eax
je 0x6b53ab
mov eax, dword [esp + 0x10]
mov ecx, 0x10
sub ecx, dword [edx + 0xd4]
sar eax, cl
test eax, eax
jle 0x6b53ab
mov esi, dword [edx + 0xd8]
shl eax, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], esi
movzx edx, word [eax + esi - 0x10]
mov ecx, edx
and edx, 0x1f
sar ecx, 5
mov eax, dword [edi + ecx*4]
btc eax, edx
mov dword [edi + ecx*4], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov esi, dword [eax + esi - 0xc]
mov eax, dword [eax + ecx - 8]
sub eax, 1
mov dword [esp + 0x34], eax
js 0x6b5332
nop dword [eax]
movzx edx, word [esi]
lea esi, [esi + 2]
mov ecx, edx
and edx, 0x1f
sar ecx, 5
mov eax, dword [edi + ecx*4]
btc eax, edx
sub dword [esp + 0x34], 1
mov dword [edi + ecx*4], eax
jns 0x6b5310
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0xc]
movzx esi, word [eax + ecx - 0x10]
mov ecx, dword [edx + 0xac]
shl esi, 4
add esi, dword [edx + 0xa0]
mov dword [esp + 0x38], esi
movzx eax, word [esi + 0xa]
lea eax, [ecx + eax*4]
mov dword [esp + 0x3c], eax
movzx eax, word [esi + 8]
inc eax
lea esi, [ecx + eax*4]
mov eax, dword [esp + 0x3c]
cmp esi, eax
jae 0x6b5399
nop dword [eax]
test byte [esi], 1
jne 0x6b538e
movzx edx, word [esi + 2]
mov ecx, edx
and edx, 0x1f
sar ecx, 5
mov eax, dword [edi + ecx*4]
btr eax, edx
mov dword [edi + ecx*4], eax
mov eax, dword [esp + 0x3c]
add esi, 4
cmp esi, eax
jb 0x6b5370
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x38]
movzx esi, word [eax + 8]
mov eax, dword [edx + 0xac]
inc esi
lea esi, [eax + esi*4]
movzx eax, word [esi]
cmp eax, dword [esp + 0x10]
jae 0x6b53d5
movzx edx, word [esi + 2]
add esi, 4
mov ecx, edx
and edx, 0x1f
sar ecx, 5
mov eax, dword [edi + ecx*4]
btc eax, edx
mov dword [edi + ecx*4], eax
movzx eax, word [esi]
cmp eax, dword [esp + 0x10]
jb 0x6b53b4
movzx ecx, word [esi]
mov edx, dword [esp + 0x40]
mov eax, ecx
cmp eax, edx
jae 0x6b540b
test cl, 1
jne 0x6b5400
movzx edx, word [esi + 2]
mov ecx, edx
and edx, 0x1f
sar ecx, 5
mov eax, dword [edi + ecx*4]
btc eax, edx
mov edx, dword [esp + 0x40]
mov dword [edi + ecx*4], eax
movzx ecx, word [esi + 4]
add esi, 4
cmp ecx, edx
jb 0x6b53e2
mov ecx, dword [esp + 0xc]
push dword [esp + 0x50]
add ecx, 0xb8
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
add eax, 0xfffffffe
mov dword [esp + 0x44], edx
lea edi, [edx + 4]
lea esi, [edx + eax*4]
push esi
push edi
call fcn.006b9200
push dword [esp + 0x54]
sub eax, dword [esp + 0x44]
push esi
mov esi, dword [esp + 0x14]
sar eax, 2
push edi
mov word [esp + 0x7c], ax
lea ecx, [esi + 0xb8]
call fcn.006b9200
mov edx, dword [esi + 0xc4]
mov ecx, 0xfffffffc
sub ecx, dword [esp + 0x40]
push dword [esp + 0x58]
add eax, ecx
mov dword [esp + 0x44], edx
sar eax, 2
lea ecx, [esi + 0xc4]
mov word [esp + 0x78], ax
lea edi, [edx + 4]
mov eax, dword [ecx + 4]
add eax, 0xfffffffe
lea esi, [edx + eax*4]
push esi
push edi
call fcn.006b9200
push dword [esp + 0x60]
sub eax, dword [esp + 0x44]
push esi
mov esi, dword [esp + 0x14]
sar eax, 2
push edi
mov word [esp + 0x7e], ax
lea ecx, [esi + 0xc4]
call fcn.006b9200
mov edi, dword [esi + 0xa0]
mov ecx, 0xfffffffc
sub ecx, dword [esp + 0x40]
add eax, ecx
mov ecx, dword [esp + 0x2c]
sar eax, 2
mov edx, ecx
mov word [esp + 0x76], ax
mov eax, dword [esi + 0xa4]
sar eax, 5
inc eax
mov dword [esp + 0x38], edx
lea eax, [ecx + eax*4]
mov dword [esp + 0x40], eax
cmp ecx, eax
jae 0x6b5633
mov eax, dword [esp + 0x74]
lea esi, [edi + 0x24]
mov edi, dword [ebp + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x3c], esi
nop dword [eax]
mov edx, dword [edx]
mov dword [esp + 0xc], edx
test edx, edx
je 0x6b5612
nop
test dl, 0xf
je 0x6b55f8
test dl, 1
je 0x6b5552
mov ecx, eax
mov eax, dword [esi - 0x20]
sub ecx, dword [esi - 0x24]
sub eax, dword [esp + 0x70]
or ecx, eax
test ecx, 0x80008000
jne 0x6b554e
mov ecx, dword [esi - 0x18]
test cl, 1
jne 0x6b554e
mov eax, dword [edi]
push 0
push ecx
mov ecx, edi
mov eax, dword [eax + 4]
call eax
mov edx, dword [esp + 0xc]
fstp st(0)
mov eax, dword [esp + 0x74]
test dl, 2
je 0x6b5587
mov ecx, eax
mov eax, dword [esi - 0x10]
sub ecx, dword [esi - 0x14]
sub eax, dword [esp + 0x70]
or ecx, eax
test ecx, 0x80008000
jne 0x6b5587
mov ecx, dword [esi - 8]
test cl, 1
jne 0x6b5587
mov eax, dword [edi]
push 0
push ecx
mov ecx, edi
mov eax, dword [eax + 4]
call eax
mov edx, dword [esp + 0xc]
fstp st(0)
test dl, 4
je 0x6b55bd
mov ecx, dword [esp + 0x74]
mov eax, dword [esi]
sub ecx, dword [esi - 4]
sub eax, dword [esp + 0x70]
or ecx, eax
test ecx, 0x80008000
jne 0x6b55bd
mov ecx, dword [esi + 8]
test cl, 1
jne 0x6b55bd
mov eax, dword [edi]
push 0
push ecx
mov ecx, edi
mov eax, dword [eax + 4]
call eax
mov edx, dword [esp + 0xc]
fstp st(0)
test dl, 8
je 0x6b55f4
mov ecx, dword [esp + 0x74]
mov eax, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
sub eax, dword [esp + 0x70]
or ecx, eax
test ecx, 0x80008000
jne 0x6b55f4
mov ecx, dword [esi + 0x18]
test cl, 1
jne 0x6b55f4
mov eax, dword [edi]
push 0
push ecx
mov ecx, edi
mov eax, dword [eax + 4]
call eax
mov edx, dword [esp + 0xc]
fstp st(0)
mov eax, dword [esp + 0x74]
shr edx, 4
add esi, 0x40
mov dword [esp + 0xc], edx
test edx, edx
jne 0x6b5510
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
add esi, 0x200
add edx, 4
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], edx
cmp edx, ecx
jb 0x6b5500
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x6c]
test eax, eax
js 0x6b5652
and eax, 0x3fffffff
shl eax, 2
push eax
mov eax, dword [0x7d8950]
push ecx
mov ecx, 0x7d8950
call dword [eax + 0x10]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8