Function at 0x4766e0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x644e88
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x6ddc7c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov ebx, dword [ebp + 0xc]
lea eax, [esi + 0x18]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x44], 1
mov dword [ebp - 4], 0
cmp byte [esi + 0xd0], 0
jne 0x476bf5
mov eax, dword [esi + 0xa8]
lea edi, [esi + 0xa8]
lea ecx, [esi + 0xc0]
mov dword [ebp - 0x30], ecx
mov dword [eax], 0
mov eax, dword [esi + 0xb4]
mov dword [edi + 8], 0xffffffff
mov dword [eax], 0
mov dword [esi + 0xbc], 0xffffffff
mov eax, dword [ecx]
mov dword [eax], 0
mov dword [ecx + 8], 0xffffffff
xor ecx, ecx
mov eax, dword [edi]
mov esi, dword [esi + 0x30]
mov edx, dword [eax]
test edx, edx
je 0x47679e
add eax, 4
cmp dword [eax], esi
je 0x4767b5
inc ecx
add eax, 4
cmp ecx, edx
jb 0x476792
lea eax, [edx + 1]
mov ecx, edi
push eax
call fcn.004751b0
mov ecx, dword [edi]
mov eax, dword [ecx]
mov dword [ecx + eax*4 + 4], esi
mov eax, dword [edi]
inc dword [eax]
mov ebx, dword [ebp - 0x2c]
xor edi, edi
mov esi, dword [ebx + 0xcc]
test esi, esi
je 0x4767e9
mov eax, dword [esi]
mov edx, dword [eax + 4]
cmp eax, vtable.asio::detail::timer_queue_struct_asio::detail::chrono_time_traits_struct_std::chrono::steady_clock__struct_asio::wait_traits_struct_std::chrono::steady_clock___.0
jne 0x476c1c
cmp dword [esi + 8], edi
sete al
test al, al
je 0x47689c
mov esi, dword [esi + 4]
test esi, esi
jne 0x4767c4
xor cl, cl
lea edx, [ebx + 0xa8]
mov dword [ebp - 0x40], 3
lea eax, [ebx + 0x3c]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], eax
mov ebx, edi
mov dword [ebp - 0x20], ebx
test cl, cl
jne 0x476813
cmp dword [eax + 4], 0
mov byte [ebp - 0x25], cl
je 0x476817
mov byte [ebp - 0x25], 1
mov eax, dword [eax]
mov esi, dword [eax]
cmp esi, eax
je 0x4768c6
mov eax, dword [edx]
lea edi, [esi]
mov ecx, dword [edx + 4]
mov esi, dword [esi]
mov dword [ebp - 0x3c], eax
mov ebx, dword [eax]
inc ebx
cmp ebx, ecx
jbe 0x4768a3
mov eax, ecx
shr eax, 1
add eax, ecx
cmp eax, ebx
cmovae ebx, eax
mov dword [ebp - 0x50], ebx
lea eax, [ebx*4 + 4]
push eax
call fcn.005ff7ce
mov edx, dword [ebp - 0x34]
add esp, 4
mov dword [ebp - 0x3c], eax
mov ecx, dword [edx]
mov ecx, dword [ecx]
mov dword [eax], ecx
xor ecx, ecx
mov eax, dword [edx]
cmp dword [eax], ecx
jbe 0x476886
mov eax, dword [ebp - 0x3c]
add eax, 4
mov dword [ebp - 0x4c], eax
mov ebx, eax
mov eax, dword [edx]
mov eax, dword [eax + ecx*4 + 4]
mov dword [ebx + ecx*4], eax
inc ecx
mov eax, dword [edx]
cmp ecx, dword [eax]
jb 0x476873
mov ebx, dword [ebp - 0x50]
push eax
call fcn.005ffcaf
mov edx, dword [ebp - 0x34]
add esp, 4
mov eax, dword [ebp - 0x3c]
mov dword [edx], eax
mov dword [edx + 4], ebx
jmp 0x4768a6
mov cl, 1
jmp 0x4767eb
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
mov eax, dword [edi + 8]
mov edi, dword [ebp - 0x3c]
mov dword [edi + ecx*4 + 4], eax
mov eax, dword [edx]
inc dword [eax]
mov eax, dword [ebp - 0x38]
cmp esi, dword [eax]
jne 0x476823
mov ebx, dword [ebp - 0x20]
jmp 0x4768c9
mov eax, dword [ebp - 0x38]
mov edi, dword [edx + 8]
cmp edi, ebx
mov cl, byte [ebp - 0x25]
cmovbe edi, ebx
add eax, 0x1c
add edx, 0xc
mov dword [ebp - 0x38], eax
sub dword [ebp - 0x40], 1
mov dword [ebp - 0x34], edx
jne 0x476801
mov esi, dword [ebp - 0x2c]
push ecx
lea ebx, [esi + 0x8c]
push ebx
lea ecx, [esi + 0xb4]
call fcn.00475020
mov esi, dword [esi + 0xbc]
cmp esi, edi
push ecx
mov ecx, dword [ebp - 0x30]
cmovbe esi, edi
push ebx
call fcn.00475020
mov eax, dword [ebp - 0x2c]
mov ecx, 0x11e1a300
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov edi, dword [eax + 0xc8]
cmp edi, esi
cmovbe edi, esi
mov esi, dword [eax + 0xcc]
test esi, esi
je 0x476954
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0xc]
mov esi, dword [esi + 4]
mov ecx, eax
test esi, esi
jne 0x476943
push dword [ebp - 0x48]
mov eax, 0x431bde83
imul ecx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x1c], eax
imul eax, eax, 0xf4240
sub ecx, eax
mov dword [ebp - 0x18], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x6eb974
push 0x450a50
push 0x6eb9ac
mov byte [ebp - 0x44], 0
mov dword [ebp - 0x24], 0
call fcn.005fbcbd
add esp, 0xc
test eax, eax
je 0x476c25
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], 0x6eb974
mov edx, dword [esi + 0xb4]
mov esi, dword [esi + 0xa8]
mov ecx, dword [eax]
test esi, esi
jne 0x476ad6
test edx, edx
jne 0x476ad6
test ecx, ecx
jne 0x476ad6
mov eax, 0x10624dd3
imul dword [ebp - 0x18]
imul eax, dword [ebp - 0x1c], 0x3e8
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, eax
mov eax, 1
cmove ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 0x48]
call edi
mov byte [ebp - 0x44], 1
test esi, esi
jle 0x476bd0
mov edi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push ebx
lea esi, [edi + 0x8c]
push esi
call fcn.004750e0
push ebx
push esi
lea ecx, [edi + 0xb4]
call fcn.004750e0
mov eax, dword [ebp - 0x30]
mov edx, 2
add edi, 0x70
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edi
nop dword [eax + eax]
mov eax, dword [eax]
xor ecx, ecx
mov dword [ebp - 0x40], ecx
cmp dword [eax], ecx
jbe 0x476bb5
nop
mov eax, dword [eax + ecx*4 + 4]
mov ecx, edi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00481550
mov esi, dword [eax]
cmp esi, dword [edi + 4]
je 0x476b9e
mov edi, dword [esi + 0xc]
test edi, edi
je 0x476b8e
nop dword [eax]
mov eax, dword [edi + 0x30]
push edi
call eax
add esp, 4
test eax, eax
je 0x476b9b
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x476abc
mov eax, dword [ecx + 0x14]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x476ab5
mov dword [esi + 0x10], eax
mov dword [ecx + 0x14], 0
mov dword [edi + 0x14], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x476b7e
mov dword [eax + 0x14], edi
jmp 0x476b80
cmp dword [ebp - 0x1c], 0
jne 0x476af6
mov eax, dword [ebp - 0x18]
test eax, eax
jle 0x476af6
cmp eax, 0x3e8
mov dword [ebp - 0x14], 0x3e8
cmovl eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push ecx
push edx
push esi
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
lea ecx, [ebp - 0x24]
test esi, esi
sets dl
call fcn.00475220
test esi, esi
jle 0x476a03
mov ecx, dword [ebp - 0x2c]
lea edi, [ecx + 0x30]
push dword [ecx + 0xa8]
push dword [edi]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x476a03
mov ecx, edi
call fcn.00476150
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test al, al
jne 0x476b6e
push dword [ebp - 0x48]
call edi
mov ecx, dword [ebp - 0x2c]
push ecx
mov byte [ebp - 0x44], 1
lea eax, [ecx + 0xd8]
mov byte [ecx + 0xd0], 1
mov ecx, dword [ecx + 0x14]
push eax
call fcn.00473c00
dec esi
cmp byte [ebp - 0x44], 0
jne 0x476a12
jmp 0x476a09
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov edi, dword [esi + 0xc]
test edi, edi
jne 0x476a90
mov edi, dword [ebp - 0x34]
mov ecx, edi
push esi
call fcn.004814b0
jmp 0x476b9e
mov edi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x40]
inc ecx
mov dword [ebp - 0x40], ecx
mov eax, dword [eax]
cmp ecx, dword [eax]
jb 0x476a60
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
dec edx
sub edi, 0x1c
mov dword [ebp - 0x38], edx
sub eax, 0xc
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], eax
test edx, edx
jns 0x476a50
mov esi, dword [ebp - 0x2c]
mov esi, dword [esi + 0xcc]
test esi, esi
je 0x476bef
nop dword [eax]
mov eax, dword [esi]
mov ecx, esi
push ebx
call dword [eax + 0x10]
mov esi, dword [esi + 4]
test esi, esi
jne 0x476be0
cmp byte [ebp - 0x44], 0
je 0x476bfe
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ff7bd
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
call edx
jmp 0x4767da
call fcn.0061f60e
int3