Function at 0x10068190
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebx]
mov dword [ebp - 0x18], edi
call fcn.10067b20
test eax, eax
jg 0x100681c3
mov eax, 0x2c1
jmp 0x1006839b
xorps xmm0, xmm0
lea eax, [ebp - 0xc]
movdqu xmmword [ebp - 0x14], xmm0
mov dword [ebp - 0x10], eax
lea eax, [edi + 8]
mov dword [ebp - 0x14], 0
cmp eax, edi
jbe 0x10068225
cmp eax, 0x400
ja 0x100681fc
call fcn.100990e0
mov edi, esp
test edi, edi
je 0x10068227
mov dword [edi], 0xcccc
add edi, 8
jmp 0x10068227
xor ecx, ecx
mov eax, edi
add eax, 8
setb cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.MSVCR120.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x10068227
mov dword [edi], 0xdddd
add edi, 8
jmp 0x10068227
xor edi, edi
push dword [ebp - 0x18]
push 0
push edi
call sub.MSVCR120.dll_memset
mov eax, dword [ebx]
add esp, 0xc
test eax, eax
je 0x1006838c
test edi, edi
je 0x1006838c
push 0
push dword [ebp - 0x18]
push edi
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1006838c
cmp byte [edi], 0
jne 0x1006826b
mov ebx, 0x100a4cdc
jmp 0x10068351
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10068270
sub ecx, edx
mov dword [ebp - 0x1c], ecx
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10068281
sub ecx, edx
lea ecx, [ecx + ecx*2]
add ecx, 4
lea eax, [ecx + 8]
cmp eax, ecx
jbe 0x1006831b
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100682a0
sub ecx, edx
lea eax, [ecx + 4]
mov ecx, edi
lea eax, [eax + eax*2]
lea edx, [ecx + 1]
cmp eax, 0x400
ja 0x100682e5
jmp 0x100682c0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100682c0
sub ecx, edx
lea eax, [ecx + 4]
lea eax, [eax + eax*2]
call fcn.100990e0
mov ebx, esp
test ebx, ebx
je 0x1006831d
mov dword [ebx], 0xcccc
add ebx, 8
jmp 0x1006831d
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100682e5
sub ecx, edx
lea eax, [ecx + 2]
lea eax, [ecx + eax*2]
xor ecx, ecx
add eax, 8
setb cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.MSVCR120.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1006831d
mov dword [ebx], 0xdddd
add ebx, 8
jmp 0x1006831d
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x14]
call fcn.10010950
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
lea eax, [eax + eax*2]
add eax, 4
shr eax, 1
cmp eax, 1
jle 0x10068347
push eax
push ebx
push 0xffffffffffffffff
push edi
call fcn.10034e00
add esp, 0x10
mov ecx, eax
xor eax, eax
mov word [ebx + ecx*2], ax
test ebx, ebx
je 0x10068373
push ebx
push dword [ebp - 0x18]
push esi
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10068362
sub esi, ecx
sar esi, 1
jmp 0x10068391
add edi, 0xfffffff8
cmp dword [edi], 0xdddd
jne 0x10068388
push edi
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
xor esi, esi
jmp 0x10068391
mov esi, 0x2c1
lea ecx, [ebp - 0x14]
call fcn.10010900
mov eax, esi
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 8