Function at 0x479120
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x647d28
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x6e1c7c]
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 0x479635
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 0x4791de
add eax, 4
cmp dword [eax], esi
je 0x4791f5
inc ecx
add eax, 4
cmp ecx, edx
jb 0x4791d2
lea eax, [edx + 1]
mov ecx, edi
push eax
call fcn.00477bf0
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 0x479229
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 0x47965c
cmp dword [esi + 8], edi
sete al
test al, al
je 0x4792dc
mov esi, dword [esi + 4]
test esi, esi
jne 0x479204
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 0x479253
cmp dword [eax + 4], 0
mov byte [ebp - 0x25], cl
je 0x479257
mov byte [ebp - 0x25], 1
mov eax, dword [eax]
mov esi, dword [eax]
cmp esi, eax
je 0x479306
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 0x4792e3
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.0060220e
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 0x4792c6
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 0x4792b3
mov ebx, dword [ebp - 0x50]
push eax
call fcn.006026ef
mov edx, dword [ebp - 0x34]
add esp, 4
mov eax, dword [ebp - 0x3c]
mov dword [edx], eax
mov dword [edx + 4], ebx
jmp 0x4792e6
mov cl, 1
jmp 0x47922b
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 0x479263
mov ebx, dword [ebp - 0x20]
jmp 0x479309
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 0x479241
mov esi, dword [ebp - 0x2c]
push ecx
lea ebx, [esi + 0x8c]
push ebx
lea ecx, [esi + 0xb4]
call fcn.00477a60
mov esi, dword [esi + 0xbc]
cmp esi, edi
push ecx
mov ecx, dword [ebp - 0x30]
cmovbe esi, edi
push ebx
call fcn.00477a60
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 0x479394
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 0x479383
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 0x6efa14
push 0x450a50
push 0x6efa4c
mov byte [ebp - 0x44], 0
mov dword [ebp - 0x24], 0
call fcn.005fe6fd
add esp, 0xc
test eax, eax
je 0x479665
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], 0x6efa14
mov edx, dword [esi + 0xb4]
mov esi, dword [esi + 0xa8]
mov ecx, dword [eax]
test esi, esi
jne 0x479516
test edx, edx
jne 0x479516
test ecx, ecx
jne 0x479516
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 0x479610
mov edi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push ebx
lea esi, [edi + 0x8c]
push esi
call fcn.00477b20
push ebx
push esi
lea ecx, [edi + 0xb4]
call fcn.00477b20
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 0x4795f5
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.00483f90
mov esi, dword [eax]
cmp esi, dword [edi + 4]
je 0x4795de
mov edi, dword [esi + 0xc]
test edi, edi
je 0x4795ce
nop dword [eax]
mov eax, dword [edi + 0x30]
push edi
call eax
add esp, 4
test eax, eax
je 0x4795db
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4794fc
mov eax, dword [ecx + 0x14]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x4794f5
mov dword [esi + 0x10], eax
mov dword [ecx + 0x14], 0
mov dword [edi + 0x14], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x4795be
mov dword [eax + 0x14], edi
jmp 0x4795c0
cmp dword [ebp - 0x1c], 0
jne 0x479536
mov eax, dword [ebp - 0x18]
test eax, eax
jle 0x479536
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.00477c60
test esi, esi
jle 0x479443
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 0x479443
mov ecx, edi
call fcn.00478b90
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test al, al
jne 0x4795ae
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.00476620
dec esi
cmp byte [ebp - 0x44], 0
jne 0x479452
jmp 0x479449
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov edi, dword [esi + 0xc]
test edi, edi
jne 0x4794d0
mov edi, dword [ebp - 0x34]
mov ecx, edi
push esi
call fcn.00483ef0
jmp 0x4795de
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 0x4794a0
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 0x479490
mov esi, dword [ebp - 0x2c]
mov esi, dword [esi + 0xcc]
test esi, esi
je 0x47962f
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 0x479620
cmp byte [ebp - 0x44], 0
je 0x47963e
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.006021fd
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
call edx
jmp 0x47921a
call fcn.0062204e
int3