Function at 0x423bf0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x340
mov eax, dword [0x6f33d4]
xor eax, esp
mov dword [esp + 0x33c], eax
push ebx
push ebp
xor edx, edx
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
cmp dword [esp + 0x364], edx
jl 0x423c47
jg 0x423c32
mov ebp, dword [esp + 0x360]
cmp ebp, 0x7fffffff
jb 0x423c4e
mov ebp, bind
mov dword [esp + 0x360], ebp
mov dword [esp + 0x364], edx
jmp 0x423c4e
mov ebp, dword [esp + 0x360]
mov eax, dword [esp + 0x354]
mov ecx, dword [esp + 0x358]
cmp eax, 0xffffffff
jne 0x423c95
cmp ecx, eax
jne 0x423c95
cmp dword [esp + 0x35c], eax
jne 0x423c95
cmp ebp, edx
je 0x423c8e
jge 0x423c87
push 0x2726
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
or eax, 0xffffffff
jmp 0x42400c
push ebp
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
jmp 0x42400c
cmp dword [esp + 0x364], edx
jl 0x423cde
jg 0x423ca4
cmp ebp, edx
jbe 0x423cde
lea eax, [esp + 0x30]
push eax
mov edi, ebp
call fcn.00444630
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x358]
add esp, 4
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x358]
mov dword [esp + 0x20], edx
xor edx, edx
xor esi, esi
or ebx, 0xffffffff
mov dword [esp + 0x248], edx
mov dword [esp + 0x40], esi
cmp eax, 0xffffffff
je 0x423d12
mov esi, 1
mov edx, esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x24c], eax
mov dword [esp + 0x248], edx
mov ebx, eax
cmp ecx, 0xffffffff
je 0x423d7a
xor eax, eax
test esi, esi
je 0x423d2b
lea ecx, [ecx]
cmp dword [esp + eax*4 + 0x44], ecx
je 0x423d2b
inc eax
cmp eax, esi
jb 0x423d20
cmp eax, esi
jne 0x423d41
cmp esi, 0x40
jae 0x423d41
mov dword [esp + eax*4 + 0x44], ecx
mov esi, dword [esp + 0x40]
inc esi
mov dword [esp + 0x40], esi
xor eax, eax
test edx, edx
je 0x423d55
cmp dword [esp + eax*4 + 0x24c], ecx
je 0x423d55
inc eax
cmp eax, edx
jb 0x423d47
cmp eax, edx
jne 0x423d74
cmp edx, 0x40
jae 0x423d74
mov dword [esp + eax*4 + 0x24c], ecx
mov edx, dword [esp + 0x248]
inc edx
mov dword [esp + 0x248], edx
cmp ecx, ebx
jbe 0x423d7a
mov ebx, ecx
mov eax, dword [esp + 0x35c]
xor ecx, ecx
mov dword [esp + 0x144], ecx
cmp eax, 0xffffffff
je 0x423dfa
mov dword [esp + 0x148], eax
mov ecx, 1
xor eax, eax
mov dword [esp + 0x144], ecx
test edx, edx
je 0x423dcc
jmp 0x423db0
mov ebp, dword [esp + 0x35c]
cmp dword [esp + eax*4 + 0x24c], ebp
je 0x423dc5
inc eax
cmp eax, edx
jb 0x423db0
mov ebp, dword [esp + 0x360]
cmp eax, edx
jne 0x423dea
cmp edx, 0x40
jae 0x423dea
mov edx, dword [esp + 0x35c]
mov dword [esp + eax*4 + 0x24c], edx
inc dword [esp + 0x248]
cmp dword [esp + 0x35c], ebx
jbe 0x423dfa
mov ebx, dword [esp + 0x35c]
cmp dword [esp + 0x364], 0
jg 0x423e1f
jl 0x423e0a
test ebp, ebp
jae 0x423e1f
inc ebx
mov dword [esp + 0x2c], ebx
mov ebx, dword [sym.imp.WSOCK32.dll_select]
mov dword [esp + 0x10], 0
jmp 0x423e40
inc ebx
lea eax, [esp + 0x24]
mov dword [esp + 0x2c], ebx
mov ebx, dword [sym.imp.WSOCK32.dll_select]
mov dword [esp + 0x10], eax
jmp 0x423e40
mov ecx, dword [esp + 0x144]
mov esi, dword [esp + 0x40]
nop
cmp dword [esp + 0x364], 0
jl 0x423e7b
jg 0x423e50
test ebp, ebp
je 0x423e7b
mov eax, 0x10624dd3
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x24], eax
imul eax, eax, 0x3e8
mov edx, edi
sub edx, eax
imul edx, edx, 0x3e8
mov dword [esp + 0x28], edx
jmp 0x423e8e
mov eax, ebp
or eax, dword [esp + 0x364]
jne 0x423e8e
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x10]
push edx
neg ecx
sbb ecx, ecx
lea edx, [esp + 0x148]
and ecx, edx
lea eax, [esp + 0x24c]
push eax
neg esi
push ecx
mov ecx, dword [esp + 0x38]
sbb esi, esi
lea eax, [esp + 0x4c]
and esi, eax
push esi
push ecx
call ebx
cmp eax, 0xffffffff
jne 0x423f5c
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
test eax, eax
je 0x423ee6
cmp dword [0x6f6580], 0
jne 0x423c7f
cmp eax, 0x2714
jne 0x423c7f
cmp dword [esp + 0x364], 0
jl 0x423e34
jg 0x423efe
test ebp, ebp
je 0x423e34
lea edx, [esp + 0x30]
push edx
call fcn.00444630
mov edx, dword [esp + 0x18]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x28]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x30]
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 edi, ebp
sub edi, eax
add esp, 0x20
test edi, edi
jle 0x423c8e
jmp 0x423e34
test eax, eax
js 0x423c7f
je 0x423c8e
mov edi, dword [esp + 0x354]
xor esi, esi
cmp edi, 0xffffffff
je 0x423fa1
lea ecx, [esp + 0x40]
push ecx
push edi
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x423f8c
mov esi, 1
lea edx, [esp + 0x248]
push edx
push edi
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x423fa1
or esi, 4
mov edi, dword [esp + 0x358]
cmp edi, 0xffffffff
je 0x423fd4
lea eax, [esp + 0x40]
push eax
push edi
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x423fbf
or esi, 8
lea ecx, [esp + 0x248]
push ecx
push edi
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x423fd4
or esi, 4
mov edi, dword [esp + 0x35c]
cmp edi, 0xffffffff
je 0x42400a
lea edx, [esp + 0x144]
push edx
push edi
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x423ff5
or esi, 2
lea eax, [esp + 0x248]
push eax
push edi
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x42400a
or esi, 4
mov eax, esi
mov ecx, dword [esp + 0x34c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004bec6d
add esp, 0x340
ret