Function at 0x402250
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov eax, 0x1924
call fcn.00409410
push ebx
push ebp
mov ebx, ecx
push esi
push edi
xor edi, edi
mov ecx, dword [ebx]
cmp ecx, edi
je 0x402593
cmp dword [esp + 0x1940], edi
jne 0x402297
mov eax, dword [esp + 0x193c]
mov edx, dword [esp + 0x1938]
push eax
push edx
call fcn.00408c20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1924
ret 0xc
mov eax, dword [0x40eaac]
cmp eax, 2
jne 0x4024ca
mov eax, dword [0x40c35c]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x34]
mov dword [esp + 0x38], eax
push edi
push edx
inc eax
push edi
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x44], 1
call sub.WSOCK32.dll_select
test eax, eax
jle 0x4023ff
mov edx, dword [0x40c35c]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x30]
push eax
push ecx
push edi
inc edx
push edi
push edx
call sub.WSOCK32.dll_select
test eax, eax
jle 0x402380
mov eax, dword [0x40c35c]
mov dword [0x40eaac], edi
push eax
call sub.WSOCK32.dll_closesocket
mov ecx, dword [esp + 0x193c]
mov edx, dword [esp + 0x1938]
push ecx
mov ecx, dword [ebx]
push edx
call fcn.00408c20
mov eax, dword [0x40e89c]
mov ecx, dword [0x40dec0]
push 0x40eb00
push eax
push 0x40e84c
push ecx
lea edx, [esp + 0x144]
push str._s:_s:_10d:_s:TCPERROR:send_select___returned_fd_set_except_error._n
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x14c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x134]
push ecx
mov ecx, dword [ebx]
push eax
call fcn.00408c20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1924
ret 0xc
mov edi, str.___UDP_BKUP___
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x934]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [esp + 0x193c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x1938]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movsx ecx, bp
mov edx, ecx
mov esi, eax
lea edi, [esp + 0x942]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x40c35c]
push ecx
mov ecx, dword [ebx]
push ebp
push eax
call fcn.00408b60
mov ecx, dword [ebx]
lea edx, [ebp + 0xe]
lea eax, [esp + 0x934]
push edx
push eax
call fcn.00408c20
mov esi, dword [esp + 0x1938]
xor edi, edi
jmp 0x402416
mov ebp, dword [esp + 0x193c]
mov esi, dword [esp + 0x1938]
mov ecx, dword [ebx]
push ebp
push esi
call fcn.00408c20
mov eax, dword [0x40c35c]
mov ecx, 1
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x10]
lea edx, [esp + 0x30]
push ecx
mov dword [esp + 0x38], eax
push edx
push edi
inc eax
push edi
push eax
mov dword [esp + 0x24], edi
call sub.WSOCK32.dll_select
test eax, eax
jle 0x402461
mov eax, dword [0x40c35c]
mov dword [0x40eaac], edi
push eax
call sub.WSOCK32.dll_closesocket
mov ecx, dword [ebx]
push ebp
push esi
call fcn.00408c20
mov eax, dword [0x40c35c]
lea ecx, [esp + 0x10]
push ecx
push edi
lea edx, [esp + 0x38]
push edi
inc eax
push edx
push eax
call sub.WSOCK32.dll_select
test eax, eax
jle 0x402593
mov edx, dword [0x40c35c]
push edi
lea ecx, [esp + 0x538]
push 0x400
push ecx
push edx
call sub.WSOCK32.dll_recv
test eax, eax
jne 0x402593
mov eax, dword [0x40c35c]
mov dword [0x40eaac], edi
push eax
call sub.WSOCK32.dll_closesocket
mov ecx, dword [ebx]
push ebp
push esi
call fcn.00408c20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1924
ret 0xc
cmp eax, 1
jne 0x40257e
mov eax, dword [0x40c35c]
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x38], eax
push edi
lea edx, [esp + 0x38]
push edi
inc eax
push edx
push eax
mov dword [esp + 0x24], 0x10
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], 0x32
mov dword [esp + 0x44], 1
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
je 0x40255a
mov edx, dword [0x40c35c]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ecx
push edx
call sub.WSOCK32.dll_accept
mov ecx, dword [esp + 0x1938]
mov dword [0x40c35c], eax
push eax
mov eax, dword [esp + 0x1940]
push eax
mov dword [0x40eaac], 2
push ecx
mov ecx, dword [ebx]
call fcn.00408b60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1924
ret 0xc
mov edx, dword [esp + 0x193c]
mov eax, dword [esp + 0x1938]
mov ecx, dword [ebx]
push edx
push eax
call fcn.00408c20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1924
ret 0xc
mov edx, dword [esp + 0x193c]
mov eax, dword [esp + 0x1938]
push edx
push eax
call fcn.00408c20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1924
ret 0xc