Function at 0x424030
Capabilities:
Get socket status

Disassembly:
sub esp, 0x348
mov eax, dword [0x6f33d4]
xor eax, esp
mov dword [esp + 0x344], eax
mov ecx, dword [esp + 0x354]
push ebx
mov ebx, dword [esp + 0x350]
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x14], esi
cmp ebx, esi
je 0x42408c
mov edx, dword [esp + 0x360]
xor eax, eax
cmp edx, esi
jbe 0x42408c
cmp dword [ebx + eax*8], 0xffffffff
jne 0x4240b3
inc eax
cmp eax, edx
jb 0x424081
cmp ecx, esi
je 0x4240ac
jge 0x4240a5
push 0x2726
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
or eax, 0xffffffff
jmp 0x4243b9
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
jmp 0x4243b9
cmp ecx, esi
jle 0x4240e3
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x18], ecx
call fcn.00444630
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 0xc]
add esp, 4
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
xor ecx, ecx
xor edi, edi
or eax, 0xffffffff
mov dword [esp + 0x48], ecx
mov dword [esp + 0x14c], esi
mov dword [esp + 0x250], edi
mov dword [esp + 0x18], eax
xor ebp, ebp
xor edx, edx
mov word [ebx + ebp*8 + 6], dx
mov edx, dword [ebx + ebp*8]
cmp edx, 0xffffffff
je 0x4241d5
movzx ebx, word [ebx + ebp*8 + 4]
test bl, 7
je 0x4241cd
cmp edx, eax
jbe 0x42412b
mov dword [esp + 0x18], edx
test bl, 1
je 0x424157
xor eax, eax
test ecx, ecx
je 0x424141
cmp dword [esp + eax*4 + 0x4c], edx
je 0x424141
inc eax
cmp eax, ecx
jb 0x424136
cmp eax, ecx
jne 0x424157
cmp ecx, 0x40
jae 0x424157
mov dword [esp + eax*4 + 0x4c], edx
mov ecx, dword [esp + 0x48]
inc ecx
mov dword [esp + 0x48], ecx
test bl, 4
je 0x42418f
xor eax, eax
test esi, esi
je 0x424170
cmp dword [esp + eax*4 + 0x150], edx
je 0x424170
inc eax
cmp eax, esi
jb 0x424162
cmp eax, esi
jne 0x42418f
cmp esi, 0x40
jae 0x42418f
mov dword [esp + eax*4 + 0x150], edx
mov esi, dword [esp + 0x14c]
inc esi
mov dword [esp + 0x14c], esi
test bl, 2
je 0x4241cd
xor eax, eax
test edi, edi
je 0x4241ae
lea ebx, [ebx]
cmp dword [esp + eax*4 + 0x254], edx
je 0x4241ae
inc eax
cmp eax, edi
jb 0x4241a0
cmp eax, edi
jne 0x4241cd
cmp edi, 0x40
jae 0x4241cd
mov dword [esp + eax*4 + 0x254], edx
mov edi, dword [esp + 0x250]
inc edi
mov dword [esp + 0x250], edi
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
inc ebp
cmp ebp, dword [esp + 0x360]
jb 0x424102
test ecx, ecx
jne 0x42420b
test esi, esi
jne 0x42420b
test edi, edi
jne 0x42420b
mov eax, dword [esp + 0x10]
test eax, eax
je 0x424204
js 0x424092
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
jmp 0x4243b9
xor ebx, ebx
cmp dword [esp + 0x10], ebx
lea edx, [esp + 0x30]
setl bl
lea ebp, [eax + 1]
dec ebx
and ebx, edx
jmp 0x424232
mov edi, dword [esp + 0x250]
mov esi, dword [esp + 0x14c]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x10]
xor edx, edx
cmp eax, edx
jle 0x424267
mov eax, 0x10624dd3
imul dword [esp + 0x14]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x30], eax
imul eax, eax, 0x3e8
sub edx, eax
imul edx, edx, 0x3e8
jmp 0x42426d
jne 0x424271
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
neg edi
sbb edi, edi
lea eax, [esp + 0x250]
and edi, eax
neg esi
sbb esi, esi
push ebx
lea edx, [esp + 0x150]
and esi, edx
neg ecx
push edi
sbb ecx, ecx
lea eax, [esp + 0x50]
push esi
and ecx, eax
push ecx
push ebp
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, 0xffffffff
jne 0x42433a
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
test eax, eax
je 0x4242cb
cmp dword [0x6f6580], 0
jne 0x42409d
cmp eax, 0x2714
jne 0x42409d
cmp dword [esp + 0x10], 0
jle 0x424220
lea ecx, [esp + 0x38]
push ecx
call fcn.00444630
mov edx, dword [esp + 0x24]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x34]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x3c]
mov dword [ecx + 0xc], edx
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.004446d0
mov ecx, dword [esp + 0x30]
sub ecx, eax
add esp, 0x20
mov dword [esp + 0x14], ecx
test ecx, ecx
jle 0x4240ac
jmp 0x424220
test eax, eax
js 0x42409d
je 0x4240ac
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x360]
xor ebx, ebx
add esi, 6
mov eax, dword [esi - 6]
xor ecx, ecx
mov word [esi], cx
cmp eax, 0xffffffff
je 0x4243b1
lea edx, [esp + 0x48]
push edx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x424378
or word [esi], 1
mov ecx, dword [esi - 6]
lea eax, [esp + 0x14c]
push eax
push ecx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x424391
or word [esi], 4
mov eax, dword [esi - 6]
lea edx, [esp + 0x250]
push edx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x4243aa
or word [esi], 2
cmp word [esi], 0
je 0x4243b1
inc ebx
add esi, 8
dec edi
jne 0x424358
mov eax, ebx
mov ecx, dword [esp + 0x354]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004bec6d
add esp, 0x348
ret