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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a220
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x45f014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
mov ebx, dword [ebp + 8]
xor eax, eax
push eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x28]
push 4
push eax
push dword [ebx + 0x14]
mov dword [ebp - 0x30], ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x40c6fd
js 0x40c765
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x14], edi
test edi, edi
je 0x40c76a
lea eax, [edi + 1]
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x24]
push eax
movq qword [ebp - 0x24], xmm0
call fcn.00409d00
mov esi, dword [ebp - 0x24]
mov ebx, esi
mov dword [ebp - 4], 0
test edi, edi
jle 0x40c610
mov eax, dword [ebp - 0x30]
push 0
push edi
push ebx
push dword [eax + 0x14]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x40c71d
sub edi, eax
add ebx, eax
test edi, edi
jg 0x40c5f0
mov ebx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x14]
cmp dword [ebx + 0x44], 0
je 0x40c669
push edi
push esi
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
call fcn.0040e9c0
mov ecx, dword [ebx + 0x44]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x40c7a2
mov eax, dword [ecx]
lea edx, [ebp - 0x4c]
push edx
call dword [eax + 8]
mov eax, dword [ebp - 0x38]
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x40c669
inc eax
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp - 0x4c]
call fcn.0040f480
cmp dword [ebx + 0x6c], 0
je 0x40c68d
mov ecx, dword [ebx + 0x6c]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], esi
test ecx, ecx
je 0x40c7a2
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x18]
push edx
call dword [eax + 8]
add dword [ebp - 0x2c], edi
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x40c6e4
mov eax, dword [ebp - 0x1c]
sub eax, esi
cmp eax, 0x1000
jb 0x40c6c6
test byte [ebp - 0x24], 0x1f
jne 0x40c733
mov eax, dword [esi - 4]
cmp eax, esi
jae 0x40c733
sub esi, eax
cmp esi, 4
jb 0x40c733
cmp esi, 0x23
ja 0x40c733
mov esi, eax
push esi
call fcn.0041e538
add esp, 4
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
push 0
push 4
lea eax, [ebp - 0x28]
push eax
push dword [ebx + 0x14]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x40c5b1
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e7b3
mov esp, ebp
pop ebp
ret 4
test esi, esi
je 0x40c765
mov eax, dword [ebp - 0x1c]
sub eax, esi
cmp eax, 0x1000
jb 0x40c75c
test byte [ebp - 0x24], 0x1f
je 0x40c738
call fcn.004381a1
mov eax, dword [esi - 4]
cmp eax, esi
jb 0x40c744
call fcn.004381a1
sub esi, eax
cmp esi, 4
jae 0x40c750
call fcn.004381a1
cmp esi, 0x23
jbe 0x40c75a
call fcn.004381a1
mov esi, eax
push esi
call fcn.0041e538
add esp, 4
or eax, 0xffffffff
jmp 0x40c6ff
push 2
push dword [ebx + 0x14]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [ebx + 0x14]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 0x14], 0xffffffff
cmp dword [ebx + 0x94], 0
je 0x40c7b0
call fcn.0043957f
mov ecx, dword [ebx + 0x94]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
test ecx, ecx
jne 0x40c7a7
call fcn.0041cd2a
mov eax, dword [ecx]
lea edx, [ebp - 0x18]
push edx
call dword [eax + 8]
cmp byte [ebx + 0x98], 1
jne 0x40c7c1
mov edx, dword [ebx]
mov ecx, ebx
push 1
call dword [edx]
mov eax, dword [ebp - 0x34]
mov byte [eax + 0x99], 1
mov eax, dword [ebp - 0x2c]
jmp 0x40c6ff