Function at 0x47e220
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 0x47e3f4
mov ecx, dword [esp + 0x35c]
test ecx, ecx
je 0x47e3f4
lea ecx, [ecx]
cmp dword [ebx + eax*8], 0xffffffff
jne 0x47e280
inc eax
cmp eax, ecx
jb 0x47e270
jmp 0x47e3f4
test edx, edx
jle 0x47e2b5
lea eax, [esp + 0x38]
mov dword [esp + 0x18], edx
push eax
call fcn.00481d70
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 0x47e2b9
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 0x47e3d1
movzx eax, word [ebp]
mov edx, eax
mov dword [esp + 0x14], edx
test eax, 0x710
je 0x47e3cd
cmp ecx, dword [esp + 0x10]
jbe 0x47e321
mov dword [esp + 0x10], ecx
test eax, 0x300
je 0x47e351
xor eax, eax
test edi, edi
je 0x47e33b
mov edi, edi
cmp dword [esp + eax*4 + 0x4c], ecx
je 0x47e33b
inc eax
cmp eax, edi
jb 0x47e330
cmp eax, edi
jne 0x47e351
cmp edi, 0x40
jae 0x47e351
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 0x47e391
xor eax, eax
test ebx, ebx
je 0x47e36e
nop
cmp dword [esp + eax*4 + 0x150], ecx
je 0x47e36e
inc eax
cmp eax, ebx
jb 0x47e360
cmp eax, ebx
jne 0x47e38d
cmp ebx, 0x40
jae 0x47e38d
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 0x47e3cd
xor eax, eax
test esi, esi
je 0x47e3ae
mov edi, edi
cmp dword [esp + eax*4 + 0x254], ecx
je 0x47e3ae
inc eax
cmp eax, esi
jb 0x47e3a0
cmp eax, esi
jne 0x47e3cd
cmp esi, 0x40
jae 0x47e3cd
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 0x47e2f0
mov edx, dword [esp + 0x360]
test edi, edi
jne 0x47e41b
test ebx, ebx
jne 0x47e41b
test esi, esi
jne 0x47e41b
test edx, edx
je 0x47e62a
jns 0x47e623
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 0x47e479
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 0x47e48b
jne 0x47e48b
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 0x47e590
call ebp
test eax, eax
je 0x47e4e1
cmp dword [0x5a3a98], 0
jne 0x47e40d
cmp eax, 0x2714
jne 0x47e40d
mov edx, dword [esp + 0x360]
test edx, edx
jg 0x47e50b
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 0x47e440
lea eax, [esp + 0x38]
push eax
call fcn.00481d70
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.00481e20
mov edx, dword [esp + 0x380]
add esp, 0x20
mov ecx, edx
sub ecx, eax
mov dword [esp + 0x18], ecx
test ecx, ecx
jle 0x47e62a
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 0x47e440
test eax, eax
js 0x47e40d
je 0x47e62a
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 0x47e609
lea ecx, [esp + 0x48]
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47e5d3
or word [esi], bp
lea eax, [esp + 0x14c]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47e5eb
or word [esi], 0x10
lea eax, [esp + 0x250]
push eax
push dword [esi - 6]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47e602
or word [esi], bx
cmp word [esi], 0
je 0x47e609
inc edi
add esi, 8
sub dword [esp + 0x35c], 1
jne 0x47e5b4
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