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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x28], ecx
mov ecx, dword [ecx]
push edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
call fcn.10067b20
test eax, eax
jg 0x100683f7
mov eax, 0x2c1
jmp 0x100686aa
xorps xmm0, xmm0
lea eax, [ebp - 0x10]
lea edx, [ebx + 1]
xor esi, esi
movdqu xmmword [ebp - 0x18], xmm0
mov dword [ebp - 0x14], eax
xor edi, edi
lea eax, [edx + 8]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], edx
cmp eax, edx
jbe 0x1006846c
lea eax, [ebx + 9]
cmp eax, 0x400
ja 0x10068440
call fcn.100990e0
mov ebx, esp
test ebx, ebx
je 0x1006843b
mov dword [ebx], 0xcccc
add ebx, 8
mov edx, dword [ebp - 0x1c]
jmp 0x1006846e
xor ecx, ecx
mov eax, edx
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 0x10068467
mov dword [ebx], 0xdddd
add ebx, 8
mov edx, dword [ebp - 0x1c]
jmp 0x1006846e
xor ebx, ebx
push edx
push 0
push ebx
call sub.MSVCR120.dll_memset
xor eax, eax
add esp, 0xc
mov word [ebp - 8], ax
test ebx, ebx
je 0x10068660
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jle 0x10068647
mov eax, dword [ebp - 0x20]
cmp edi, eax
jge 0x100684e2
lea ebx, [ebx]
push 0
push 1
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x28]
push dword [eax]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
add edi, esi
test esi, esi
jle 0x100684ce
push 1
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x1c]
push ebx
call dword [sym.imp.MSVCR120.dll_strncat_s]
add esp, 0x10
cmp byte [ebp - 8], 0xa
mov eax, dword [ebp - 0x20]
je 0x100684df
test esi, esi
jle 0x100684df
cmp edi, eax
jl 0x100684a0
mov ecx, dword [ebp + 0x10]
dec ecx
mov dword [ebp + 0x10], ecx
jne 0x10068496
test esi, esi
jle 0x10068647
cmp byte [ebx], 0
jne 0x100684ff
mov esi, 0x100a4cdc
jmp 0x100685de
mov edi, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10068504
sub edi, ecx
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10068512
sub ecx, edx
lea ecx, [ecx + ecx*2]
add ecx, 4
lea eax, [ecx + 8]
cmp eax, ecx
jbe 0x100685ab
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10068531
sub ecx, edx
lea eax, [ecx + 4]
mov ecx, ebx
lea eax, [eax + eax*2]
lea edx, [ecx + 1]
cmp eax, 0x400
ja 0x10068575
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10068550
sub ecx, edx
lea eax, [ecx + 4]
lea eax, [eax + eax*2]
call fcn.100990e0
mov esi, esp
test esi, esi
je 0x100685ad
mov dword [esi], 0xcccc
add esi, 8
jmp 0x100685ad
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10068575
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 esi, eax
add esp, 4
test esi, esi
je 0x100685ad
mov dword [esi], 0xdddd
add esi, 8
jmp 0x100685ad
xor esi, esi
push esi
lea ecx, [ebp - 0x18]
call fcn.10010950
lea eax, [edi + 2]
xor ecx, ecx
lea eax, [edi + eax*2]
shr eax, 1
cmp eax, 1
jle 0x100685d4
push eax
push esi
push 0xffffffffffffffff
push ebx
call fcn.10034e00
add esp, 0x10
mov ecx, eax
xor eax, eax
mov word [esi + ecx*2], ax
test esi, esi
je 0x10068622
mov edi, dword [ebp - 0x24]
push esi
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add ebx, 0xfffffff8
add esp, 0xc
cmp dword [ebx], 0xdddd
jne 0x10068608
push ebx
mov ebx, dword [sym.imp.MSVCR120.dll_free]
call ebx
add esp, 4
jmp 0x1006860e
mov ebx, dword [sym.imp.MSVCR120.dll_free]
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x10068611
sub edi, ecx
sar edi, 1
jmp 0x1006866b
add ebx, 0xfffffff8
cmp dword [ebx], 0xdddd
jne 0x1006863d
push ebx
mov ebx, dword [sym.imp.MSVCR120.dll_free]
call ebx
add esp, 4
xor edi, edi
jmp 0x1006866b
mov ebx, dword [sym.imp.MSVCR120.dll_free]
xor edi, edi
jmp 0x1006866b
add ebx, 0xfffffff8
cmp dword [ebx], 0xdddd
jne 0x10068660
push ebx
mov ebx, dword [sym.imp.MSVCR120.dll_free]
call ebx
add esp, 4
jmp 0x10068666
mov ebx, dword [sym.imp.MSVCR120.dll_free]
mov edi, 0x2c1
mov ecx, dword [ebp - 0x18]
xor esi, esi
test ecx, ecx
jle 0x10068697
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x10068692
sub eax, 8
cmp dword [eax], 0xdddd
jne 0x10068692
push eax
call ebx
mov ecx, dword [ebp - 0x18]
add esp, 4
inc esi
cmp esi, ecx
jl 0x10068674
cmp ecx, 2
jle 0x100686a8
push dword [ebp - 0x14]
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
mov eax, edi
lea esp, [ebp - 0x34]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 0xc