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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x13c]
mov ecx, 0x4f
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x14], 0xffffffff
jne 0x41b805
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x11e0]
mov dword [ebp + 0x14], ecx
mov dword [ebp - 0x14], 0
mov esi, esp
lea eax, [ebp - 0x14]
push eax
push 0x4004667f
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp esi, esp
call fcn.00544880
cmp eax, 0xffffffff
jne 0x41b85c
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00544880
push eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x11e0]
push ecx
push str.____Fail_to_ioctlsocket_Socket__d__return__1._errno__d_n
call fcn.0054b370
add esp, 0xc
or eax, 0xffffffff
jmp 0x41ba85
cmp dword [ebp - 0x14], 0
jne 0x41b86f
cmp dword [ebp + 0x10], 0
jne 0x41b86f
xor eax, eax
jmp 0x41ba85
cmp dword [ebp - 0x14], 0
jne 0x41b990
cmp dword [ebp + 0x10], 0
je 0x41b990
mov byte [ebp - 0x135], 0
lea eax, [ebp - 0x24]
push eax
call fcn.0041c7e0
add esp, 4
cmp dword [ebp + 0x10], 0
jle 0x41b8b5
mov eax, dword [ebp + 0x10]
cdq
add eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
adc ecx, edx
mov byte [ebp - 0x135], 1
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x14], 0
jne 0x41b990
mov esi, esp
lea eax, [ebp - 0x14]
push eax
push 0x4004667f
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp esi, esp
call fcn.00544880
cmp eax, 0xffffffff
jne 0x41b918
call fcn.0054cb70
mov eax, dword [eax]
push eax
call fcn.0054c750
add esp, 4
push eax
call fcn.0054cb70
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x11e0]
push eax
push str.____Fail_to_ioctlsocket_Socket__d__return__1._errno__d__errstr__s_n
call fcn.0054b370
add esp, 0x10
or eax, 0xffffffff
jmp 0x41ba85
cmp dword [ebp + 0x10], 0
jle 0x41b97a
cmp dword [ebp - 0x14], 0
jne 0x41b96e
cmp byte [ebp - 0x135], 0
jne 0x41b93a
push 0x41baf3
call fcn.0054d9b0
add esp, 4
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x20]
jg 0x41b96e
jl 0x41b94c
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x24]
jae 0x41b96e
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x11e0]
push edx
push str.____ioctl_Time_Over_SocketId__d___WaitTime__d__n
call fcn.0054b370
add esp, 0xc
xor eax, eax
jmp 0x41ba85
lea eax, [ebp - 0x24]
push eax
call fcn.0041c7e0
add esp, 4
mov esi, esp
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, esp
call fcn.00544880
jmp 0x41b8b5
mov esi, esp
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp esi, esp
call fcn.00544880
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jge 0x41ba82
lea eax, [ebp - 0x50]
push eax
call fcn.0041c7e0
add esp, 4
mov eax, dword [ebp - 0x50]
add eax, 5
mov ecx, dword [ebp - 0x4c]
adc ecx, 0
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], ecx
cmp dword [ebp - 0x40], 0
jge 0x41ba82
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00544880
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0x2733
jne 0x41ba30
mov esi, esp
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, esp
call fcn.00544880
mov esi, esp
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp esi, esp
call fcn.00544880
mov dword [ebp - 0x40], eax
jmp 0x41ba37
mov eax, dword [ebp - 0x6c]
neg eax
jmp 0x41ba85
cmp dword [ebp - 0x40], 0
jge 0x41ba71
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0x4c]
jg 0x41ba71
jl 0x41ba4f
mov ecx, dword [ebp - 0x60]
cmp ecx, dword [ebp - 0x50]
jae 0x41ba71
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x11e0]
push edx
push str.____Recv_Time_Over_SocketId__d___WaitTime__d__n
call fcn.0054b370
add esp, 0xc
mov eax, dword [ebp - 0x6c]
neg eax
jmp 0x41ba85
lea eax, [ebp - 0x50]
push eax
call fcn.0041c7e0
add esp, 4
jmp 0x41b9d8
mov eax, dword [ebp - 0x40]
push edx
mov ecx, ebp
push eax
lea edx, [0x41baac]
call fcn.005448b0
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0x13c
cmp ebp, esp
call fcn.00544880
mov esp, ebp
pop ebp
ret 0x10