Function at 0x426690
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
push ebx
push esi
xor esi, esi
push edi
push esi
mov dword [esp + 0x20], esi
or ebx, 0xffffffff
call dword [sym.imp.MSVCR80.dll__time64]
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x14]
add esp, 4
cmp eax, 0xffffffff
mov dword [esp + 0x14], edx
jne 0x4266d3
cmp dword [edi + 0x18], esi
jne 0x4266d3
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
cmp eax, 0xffffffff
mov dword [esp + 0x28], ecx
mov dword [esp + 0x130], esi
je 0x4266f4
mov ecx, 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
mov ebx, eax
mov eax, dword [edi + 0x2c]
cmp eax, 0xffffffff
je 0x426715
cmp ecx, 0x40
jae 0x42670a
mov dword [esp + ecx*4 + 0x2c], eax
add dword [esp + 0x28], 1
cmp ebx, 0xffffffff
je 0x426713
cmp eax, ebx
jbe 0x426715
mov ebx, eax
mov esi, dword [edi + 0x18]
test esi, esi
je 0x4267f2
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x1c]
test eax, eax
mov edi, dword [esi + 4]
je 0x42673a
lea ecx, [esp + 0x10]
push ecx
push 0
push esi
call eax
add esp, 0xc
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
je 0x42675f
mov ecx, dword [esp + 0x28]
cmp ecx, 0x40
jae 0x426754
mov dword [esp + ecx*4 + 0x2c], eax
add dword [esp + 0x28], 1
cmp ebx, 0xffffffff
je 0x42675d
cmp eax, ebx
jbe 0x42675f
mov ebx, eax
test byte [esi + 0x38], 8
je 0x42679e
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
je 0x42679e
mov ecx, dword [esp + 0x130]
cmp ecx, 0x40
jae 0x426791
mov dword [esp + ecx*4 + 0x134], eax
mov ecx, dword [esp + 0x130]
add ecx, 1
mov dword [esp + 0x130], ecx
cmp ebx, 0xffffffff
je 0x42679a
cmp eax, ebx
jbe 0x4267a5
mov ebx, eax
jmp 0x4267a5
mov ecx, dword [esp + 0x130]
cmp dword [esi + 0x2c], 0
jle 0x4267da
test byte [esi + 0x38], 2
jne 0x4267da
mov esi, dword [esi + 0x18]
cmp esi, 0xffffffff
je 0x4267e5
cmp ecx, 0x40
jae 0x4267cd
mov dword [esp + ecx*4 + 0x134], esi
add dword [esp + 0x130], 1
cmp ebx, 0xffffffff
je 0x4267d6
cmp esi, ebx
jbe 0x4267e5
mov ebx, esi
jmp 0x4267e5
test byte [esi + 0x38], 0x10
je 0x4267e5
call fcn.00426020
test edi, edi
mov esi, edi
jne 0x426720
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x20], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul ecx, ecx, 0x3e8
lea edx, [esp + 0x20]
push edx
push 0
lea eax, [esp + 0x138]
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x34]
push ecx
add ebx, 1
push ebx
call sub.WS2_32.dll_select
test eax, eax
jle 0x426920
mov eax, dword [edi + 0x14]
cmp eax, 0xffffffff
je 0x426871
lea edx, [esp + 0x28]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x426871
mov ebx, edi
call fcn.004263b0
test eax, eax
je 0x426871
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x10], ecx
mov edx, dword [esp + 0x14]
mov dword [eax + 0x14], edx
mov eax, dword [edi + 0x2c]
cmp eax, 0xffffffff
je 0x4268ac
lea ecx, [esp + 0x28]
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4268ac
mov eax, dword [edi + 0x2c]
push 0
push 1
lea edx, [esp + 0x17]
push edx
push eax
call sub.WS2_32.dll_recv
mov edx, dword [edi + 0x2c]
push 0
push 1
lea ecx, [esp + 0x17]
push ecx
push edx
call sub.WS2_32.dll_send
mov ebx, dword [edi + 0x18]
test ebx, ebx
je 0x426920
mov ecx, dword [ebx + 0x18]
mov edi, dword [ebx + 4]
lea eax, [esp + 0x28]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4268db
mov edx, dword [esp + 0x10]
mov dword [ebx + 0x10], edx
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x14], eax
call fcn.00426500
mov edx, dword [ebx + 0x18]
lea ecx, [esp + 0x130]
push ecx
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x426917
mov eax, dword [ebx + 0x38]
test al, 8
je 0x4268fe
call fcn.00426500
jmp 0x426917
test al, 2
jne 0x426917
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x10], eax
mov ecx, dword [esp + 0x14]
mov esi, ebx
mov dword [ebx + 0x14], ecx
call fcn.00426620
test edi, edi
mov ebx, edi
jne 0x4268b3
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x18]
test esi, esi
je 0x426949
jmp 0x426930
add dword [esp + 0x1c], 1
test byte [esi + 0x38], 0x10
mov ebx, dword [esi + 4]
je 0x426943
call fcn.00426020
test ebx, ebx
mov esi, ebx
jne 0x426930
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret