Function at 0x4a3d90
Capabilities:
Get socket status

Disassembly:
sub esp, 0x320
mov eax, dword [0x6d3f68]
xor eax, esp
mov dword [esp + 0x31c], eax
mov eax, dword [esp + 0x334]
mov dword [esp + 4], eax
push ebp
push esi
push edi
test eax, eax
jl 0x4a3dd4
jg 0x4a3dc7
mov esi, dword [esp + 0x33c]
cmp esi, 0x7fffffff
jb 0x4a3ddb
xor eax, eax
mov esi, closesocket
mov dword [esp + 0x10], eax
jmp 0x4a3ddb
mov esi, dword [esp + 0x33c]
mov ecx, dword [esp + 0x330]
mov ebp, dword [esp + 0x338]
mov edi, dword [esp + 0x334]
cmp ecx, 0xffffffff
jne 0x4a3e4a
cmp edi, 0xffffffff
jne 0x4a3e4a
cmp ebp, edi
jne 0x4a3e4a
test esi, esi
je 0x4a3e30
jns 0x4a3e29
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, edi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x31c]
xor ecx, esp
call fcn.0062e5ad
add esp, 0x320
ret
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x31c]
xor ecx, esp
call fcn.0062e5ad
add esp, 0x320
ret
push ebx
xor ebx, ebx
mov dword [esp + 0x124], ebx
cmp ecx, 0xffffffff
je 0x4a3e70
mov ebx, 1
mov dword [esp + 0x128], ecx
mov dword [esp + 0x124], ebx
mov dword [esp + 0x24], ecx
or edx, 0xffffffff
mov eax, ecx
cmp ecx, edx
cmove eax, edx
mov edx, ebx
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x20], ecx
cmp edi, 0xffffffff
je 0x4a3efc
xor eax, eax
test ebx, ebx
je 0x4a3e9f
cmp dword [esp + eax*4 + 0x128], edi
je 0x4a3e9f
inc eax
cmp eax, ebx
jb 0x4a3e91
cmp eax, ebx
jne 0x4a3ebe
cmp ebx, 0x40
jae 0x4a3ebe
mov dword [esp + eax*4 + 0x128], edi
mov ebx, dword [esp + 0x124]
inc ebx
mov dword [esp + 0x124], ebx
xor eax, eax
test edx, edx
je 0x4a3ecf
cmp dword [esp + eax*4 + 0x24], edi
je 0x4a3ecf
inc eax
cmp eax, edx
jb 0x4a3ec4
mov ecx, edx
mov dword [esp + 0x20], ecx
cmp eax, edx
jne 0x4a3eef
mov dword [esp + 0x20], ecx
cmp edx, 0x40
jae 0x4a3eef
mov dword [esp + eax*4 + 0x24], edi
mov ecx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x10]
cmp edi, eax
cmova eax, edi
mov dword [esp + 0x10], eax
xor edx, edx
mov dword [esp + 0x228], edx
cmp ebp, 0xffffffff
je 0x4a3f51
mov edx, 1
mov dword [esp + 0x22c], ebp
xor eax, eax
mov dword [esp + 0x228], edx
test ecx, ecx
je 0x4a3f2e
cmp dword [esp + eax*4 + 0x24], ebp
je 0x4a3f2e
inc eax
cmp eax, ecx
jb 0x4a3f23
cmp eax, ecx
jne 0x4a3f44
cmp ecx, 0x40
jae 0x4a3f44
mov dword [esp + eax*4 + 0x24], ebp
mov ecx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x10]
cmp ebp, eax
cmova eax, ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
test eax, eax
jl 0x4a3f6a
jg 0x4a3f63
cmp esi, 0x7fffffff
jb 0x4a3f6a
mov esi, closesocket
xor eax, eax
test ebx, ebx
jne 0x4a3fa4
test edx, edx
jne 0x4a3fa4
test ecx, ecx
jne 0x4a3fa4
test esi, esi
jne 0x4a3f81
xor eax, eax
jmp 0x4a403c
jns 0x4a3f96
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
jmp 0x4a403c
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
jmp 0x4a403c
lea edx, [esp + 0x18]
mov dword [esp + 0x14], edx
test eax, eax
jg 0x4a3fca
jl 0x4a3fb6
test esi, esi
jae 0x4a3fc0
mov dword [esp + 0x14], 0
jmp 0x4a3fff
test eax, eax
jl 0x4a3ff3
jg 0x4a3fca
test esi, esi
je 0x4a3ff3
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
imul eax, eax, 0x3e8
sub esi, eax
imul eax, esi, 0x3e8
mov dword [esp + 0x1c], eax
jmp 0x4a3fff
or esi, eax
jne 0x4a3fff
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
push dword [esp + 0x14]
xor eax, eax
lea edx, [esp + 0x24]
test ecx, ecx
lea ecx, [esp + 0x22c]
cmove edx, eax
cmp dword [esp + 0x22c], eax
push edx
cmove ecx, eax
xor esi, esi
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x130]
test ebx, ebx
cmove eax, esi
inc ecx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x4a4048
or eax, 0xffffffff
jmp 0x4a40e3
jne 0x4a4051
xor eax, eax
jmp 0x4a40e3
mov ebx, dword [esp + 0x334]
xor esi, esi
cmp ebx, 0xffffffff
je 0x4a4089
lea eax, [esp + 0x124]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
mov ecx, 1
lea eax, [esp + 0x20]
push eax
push ebx
cmovne esi, ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a4089
or esi, 4
cmp edi, 0xffffffff
je 0x4a40b5
lea eax, [esp + 0x124]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a40a3
or esi, 8
lea eax, [esp + 0x20]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a40b5
or esi, 4
cmp ebp, 0xffffffff
je 0x4a40e1
lea eax, [esp + 0x228]
push eax
push ebp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a40cf
or esi, 2
lea eax, [esp + 0x20]
push eax
push ebp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a40e1
or esi, 4
mov eax, esi
mov ecx, dword [esp + 0x32c]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0062e5ad
add esp, 0x320
ret