Function at 0x40aa23
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10058
call fcn.004012a0
mov dword [ebp - 8], ecx
and dword [ebp - 4], 0
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 0xffffffff
jne 0x40aa45
jmp 0x40ac8f
mov dword [ebp - 0x34], 0xea60
push 4
lea eax, [ebp - 0x34]
push eax
push 0x1006
push 0xffff
mov eax, dword [ebp - 8]
push dword [eax + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0xffff
push 0
lea eax, [ebp - 0x10058]
push eax
call fcn.0040132f
add esp, 0xc
lea ecx, [ebp - 0x54]
call fcn.00406692
push 0x4267a4
lea ecx, [ebp - 0x38]
call fcn.00406b58
push eax
lea ecx, [ebp - 0x28]
call fcn.00406651
lea ecx, [ebp - 0x38]
call fcn.00406b06
lea ecx, [ebp - 0x18]
call fcn.00406692
and dword [ebp - 0xc], 0
and dword [ebp - 0x10], 0
and dword [ebp - 0x1c], 0
push 0
push 0xc
lea eax, [ebp - 0x10058]
push eax
mov eax, dword [ebp - 8]
push dword [eax + 0xc]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xc
jne 0x40abc7
cmp dword [ebp - 4], 0xffffffff
je 0x40abc7
and dword [ebp - 0x58], 0
lea ecx, [ebp - 0x30]
call fcn.00406692
push 0xc
lea eax, [ebp - 0x10058]
push eax
lea ecx, [ebp - 0x30]
call fcn.00406598
push ecx
push ecx
mov ecx, esp
lea eax, [ebp - 0x30]
push eax
call fcn.004066fc
push ecx
push ecx
mov ecx, esp
lea eax, [ebp - 0x28]
push eax
call fcn.004066fc
lea eax, [ebp - 0x44]
push eax
call fcn.0040ba16
add esp, 0x14
push 4
lea ecx, [ebp - 0x44]
call fcn.004066b9
add eax, 0xc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
sub eax, 0xc
mov dword [ebp - 0xc], eax
je 0x40abb5
mov eax, dword [ebp - 0xc]
add eax, 0xc
cmp eax, dword [ebp - 4]
je 0x40abb5
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
push 0
push dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
lea eax, [ebp + eax - 0x10058]
push eax
mov eax, dword [ebp - 8]
push dword [eax + 0xc]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x40abaa
lea ecx, [ebp - 0x44]
call fcn.004066da
lea ecx, [ebp - 0x30]
call fcn.004066da
lea ecx, [ebp - 0x18]
call fcn.004066da
lea ecx, [ebp - 0x28]
call fcn.004066da
lea ecx, [ebp - 0x54]
call fcn.004066da
jmp 0x40ac8f
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x20]
mov dword [ebp - 4], eax
jmp 0x40ab44
lea ecx, [ebp - 0x44]
call fcn.004066da
lea ecx, [ebp - 0x30]
call fcn.004066da
jmp 0x40abea
cmp dword [ebp - 4], 0xffffffff
jne 0x40abea
lea ecx, [ebp - 0x18]
call fcn.004066da
lea ecx, [ebp - 0x28]
call fcn.004066da
lea ecx, [ebp - 0x54]
call fcn.004066da
jmp 0x40ac8f
push dword [ebp - 4]
lea eax, [ebp - 0x10058]
push eax
lea ecx, [ebp - 0x18]
call fcn.00406598
push ecx
push ecx
mov ecx, esp
lea eax, [ebp - 0x18]
push eax
call fcn.004066fc
push ecx
push ecx
mov ecx, esp
lea eax, [ebp - 0x28]
push eax
call fcn.004066fc
lea eax, [ebp - 0x4c]
push eax
call fcn.0040ba16
add esp, 0x14
mov ecx, dword [ebp - 8]
add ecx, 0x10
call fcn.004065e7
mov eax, dword [ebp - 8]
add eax, 0x10
mov dword [ebp - 0x3c], eax
push dword [ebp - 4]
lea ecx, [ebp - 0x4c]
call fcn.004066ab
push eax
mov ecx, dword [ebp - 0x3c]
call fcn.00406598
lea ecx, [ebp - 0x18]
call fcn.004065e7
lea ecx, [ebp - 0x4c]
call fcn.004065e7
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.0040986b
lea ecx, [ebp - 0x4c]
call fcn.004066da
cmp dword [ebp - 4], 0
jg 0x40aaac
lea ecx, [ebp - 0x18]
call fcn.004066da
lea ecx, [ebp - 0x28]
call fcn.004066da
lea ecx, [ebp - 0x54]
call fcn.004066da
leave
ret 4