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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1c03c020]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ecx]
push esi
push edi
mov dword [ebp - 0xc], ecx
call fcn.1c013890
test eax, eax
jle 0x1c0140a7
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
add eax, 9
xor esi, esi
cmp eax, 0x400
mov dword [ebp - 0x24], ebx
jg 0x1c014012
call fcn.1c02bcf0
mov eax, esp
cmp eax, ebx
je 0x1c014029
mov dword [eax], 0xcccc
jmp 0x1c014026
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
cmp eax, ebx
je 0x1c014029
mov dword [eax], 0xdddd
add eax, 8
mov edi, eax
mov eax, dword [ebp + 0xc]
inc eax
push eax
push 0
push edi
mov dword [ebp - 0x10], eax
call fcn.1c02b4b0
xor ecx, ecx
add esp, 0xc
mov word [ebp - 8], cx
test edi, edi
je 0x1c01409f
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x1c01409f
mov dword [ebp - 0x14], eax
cmp ebx, dword [ebp + 0xc]
jge 0x1c014095
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push 0
push 1
lea edx, [ebp - 8]
push edx
push ecx
call sub.WS2_32.dll_recv
mov esi, eax
add ebx, esi
test esi, esi
jle 0x1c014086
mov eax, dword [ebp - 0x10]
push 1
lea edx, [ebp - 8]
push edx
push eax
push edi
call dword [sym.imp.MSVCR90.dll_strncat_s]
add esp, 0x10
cmp byte [ebp - 8], 0xa
je 0x1c014095
test esi, esi
jle 0x1c014095
cmp ebx, dword [ebp + 0xc]
jl 0x1c014057
sub dword [ebp - 0x14], 1
jne 0x1c014052
test esi, esi
jg 0x1c0140b1
lea edi, [ebp - 0x24]
call fcn.1c013840
mov eax, 0x2c1
jmp 0x1c0141bd
cmp byte [edi], 0
jne 0x1c0140c0
mov eax, 0x1c037380
jmp 0x1c014161
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1c0140c5
sub eax, edx
mov dword [ebp - 0xc], eax
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1c0140d6
sub eax, edx
lea ecx, [eax + eax*2 + 0xc]
cmp ecx, 0x400
mov eax, edi
lea edx, [eax + 1]
jg 0x1c014113
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1c0140f0
sub eax, edx
lea eax, [eax + eax*2 + 0xc]
call fcn.1c02bcf0
mov ebx, esp
test ebx, ebx
je 0x1c014139
mov dword [ebx], 0xcccc
add ebx, 8
jmp 0x1c014139
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1c014113
sub eax, edx
lea edx, [eax + eax*2 + 0xc]
push edx
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
test eax, eax
je 0x1c014137
mov dword [eax], 0xdddd
add eax, 8
mov ebx, eax
lea esi, [ebp - 0x24]
call fcn.1c0137e0
mov eax, dword [ebp - 0xc]
push 0
lea eax, [eax + eax*2 + 4]
shr eax, 1
push eax
push ebx
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.HncBL90.dll_HncAnsiToUnicode]
mov eax, ebx
test ebx, ebx
je 0x1c01419d
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
push eax
push ecx
push esi
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
jmp 0x1c014180
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1c014180
sub eax, edx
sar eax, 1
lea edi, [ebp - 0x24]
mov esi, eax
call fcn.1c013840
mov eax, esi
jmp 0x1c0141bd
cmp dword [edi - 8], 0xdddd
lea eax, [edi - 8]
jne 0x1c0141b3
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
lea edi, [ebp - 0x24]
call fcn.1c013840
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1c01a4c0
mov esp, ebp
pop ebp
ret 0xc