Function at 0x479c80
Capabilities:
Get socket status

Disassembly:
sub esp, 0x344
mov edx, dword [esp + 0x350]
xor eax, eax
push ebx
mov ebx, dword [esp + 0x34c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], eax
push ebp
push esi
push edi
test ebx, ebx
je 0x479e54
mov ecx, dword [esp + 0x35c]
test ecx, ecx
je 0x479e54
lea ecx, [ecx]
cmp dword [ebx + eax*8], 0xffffffff
jne 0x479ce0
inc eax
cmp eax, ecx
jb 0x479cd0
jmp 0x479e54
test edx, edx
jle 0x479d15
lea eax, [esp + 0x38]
mov dword [esp + 0x18], edx
push eax
call fcn.0047d7c0
add esp, 4
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x35c]
jmp 0x479d19
mov eax, dword [esp + 0x44]
or ebp, 0xffffffff
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], ebp
xor edi, edi
mov ebp, dword [esp + 0x358]
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x14c], ebx
add ebp, 4
mov dword [esp + 0x250], esi
mov eax, ecx
mov dword [esp + 0x1c], ecx
lea esp, [esp]
xor ecx, ecx
mov word [ebp + 2], cx
mov ecx, dword [ebp - 4]
cmp ecx, 0xffffffff
je 0x479e31
movzx eax, word [ebp]
mov edx, eax
mov dword [esp + 0x14], edx
test eax, 0x710
je 0x479e2d
cmp ecx, dword [esp + 0x10]
jbe 0x479d81
mov dword [esp + 0x10], ecx
test eax, 0x300
je 0x479db1
xor eax, eax
test edi, edi
je 0x479d9b
mov edi, edi
cmp dword [esp + eax*4 + 0x4c], ecx
je 0x479d9b
inc eax
cmp eax, edi
jb 0x479d90
cmp eax, edi
jne 0x479db1
cmp edi, 0x40
jae 0x479db1
mov dword [esp + eax*4 + 0x4c], ecx
mov edi, dword [esp + 0x48]
inc edi
mov dword [esp + 0x48], edi
mov eax, dword [esp + 0x14]
test al, 0x10
je 0x479df1
xor eax, eax
test ebx, ebx
je 0x479dce
nop
cmp dword [esp + eax*4 + 0x150], ecx
je 0x479dce
inc eax
cmp eax, ebx
jb 0x479dc0
cmp eax, ebx
jne 0x479ded
cmp ebx, 0x40
jae 0x479ded
mov dword [esp + eax*4 + 0x150], ecx
mov ebx, dword [esp + 0x14c]
inc ebx
mov dword [esp + 0x14c], ebx
mov eax, dword [esp + 0x14]
test eax, 0x600
je 0x479e2d
xor eax, eax
test esi, esi
je 0x479e0e
mov edi, edi
cmp dword [esp + eax*4 + 0x254], ecx
je 0x479e0e
inc eax
cmp eax, esi
jb 0x479e00
cmp eax, esi
jne 0x479e2d
cmp esi, 0x40
jae 0x479e2d
mov dword [esp + eax*4 + 0x254], ecx
mov esi, dword [esp + 0x250]
inc esi
mov dword [esp + 0x250], esi
mov eax, dword [esp + 0x1c]
add ebp, 8
sub eax, 1
mov dword [esp + 0x1c], eax
jne 0x479d50
mov edx, dword [esp + 0x360]
test edi, edi
jne 0x479e7b
test ebx, ebx
jne 0x479e7b
test esi, esi
jne 0x479e7b
test edx, edx
je 0x47a08a
jns 0x47a083
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x344
ret
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [esp + 0x30]
xor eax, eax
test edx, edx
sets al
dec eax
and eax, ecx
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
lea esp, [esp]
test edx, edx
jle 0x479ed9
mov ecx, dword [esp + 0x18]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x30], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
jmp 0x479eeb
jne 0x479eeb
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
push eax
neg esi
lea eax, [esp + 0x254]
sbb esi, esi
and esi, eax
neg ebx
lea eax, [esp + 0x150]
sbb ebx, ebx
and ebx, eax
neg edi
push esi
sbb edi, edi
lea eax, [esp + 0x50]
push ebx
and edi, eax
push edi
push ecx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x479ff0
call ebp
test eax, eax
je 0x479f41
cmp dword [0x5a16c8], 0
jne 0x479e6d
cmp eax, 0x2714
jne 0x479e6d
mov edx, dword [esp + 0x360]
test edx, edx
jg 0x479f6b
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x14c]
mov esi, dword [esp + 0x250]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
jmp 0x479ea0
lea eax, [esp + 0x38]
push eax
call fcn.0047d7c0
mov edx, eax
sub esp, 0xc
mov eax, dword [esp + 0x30]
mov ecx, esp
sub esp, 0x10
mov dword [ecx], eax
mov eax, dword [esp + 0x44]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x48]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x4c]
mov dword [ecx + 0xc], eax
mov ecx, esp
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov eax, dword [edx + 0xc]
mov dword [ecx + 0xc], eax
call fcn.0047d870
mov edx, dword [esp + 0x380]
add esp, 0x20
mov ecx, edx
sub ecx, eax
mov dword [esp + 0x18], ecx
test ecx, ecx
jle 0x47a08a
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x14c]
mov esi, dword [esp + 0x250]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
jmp 0x479ea0
test eax, eax
js 0x479e6d
je 0x47a08a
mov esi, dword [esp + 0x358]
xor edi, edi
add esi, 6
mov ebp, 0x300
mov ebx, 0x400
xor eax, eax
mov word [esi], ax
mov eax, dword [esi - 6]
cmp eax, 0xffffffff
je 0x47a069
lea ecx, [esp + 0x48]
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47a033
or word [esi], bp
lea eax, [esp + 0x14c]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47a04b
or word [esi], 0x10
lea eax, [esp + 0x250]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47a062
or word [esi], bx
cmp word [esi], 0
je 0x47a069
inc edi
add esi, 8
sub dword [esp + 0x35c], 1
jne 0x47a014
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x344
ret
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x344
ret