Function at 0x418c30
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60726b
mov eax, dword fs:[0]
push eax
sub esp, 0x1e8
mov eax, dword [0x6ab0d4]
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 edi, ecx
call fcn.00418f30
mov ebx, eax
cmp ebx, 0xffffffff
je 0x418f0b
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0x30d40
nop
mov al, byte [edi + 0x18]
test al, al
jne 0x418f04
lea ecx, [edi + 0x40]
call fcn.00414280
comisd xmm0, xmmword [0x6960f8]
jb 0x418ce8
cmp dword [edi + 0x28], 0
je 0x418ce0
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x1ac], eax
mov ecx, dword [eax]
cmp ecx, eax
je 0x418cc9
mov eax, dword [ecx + 8]
mov al, byte [eax + 0xf0]
test al, al
jne 0x418cc9
mov ecx, dword [ecx]
cmp ecx, dword [ebp - 0x1ac]
jne 0x418cb2
cmp ecx, dword [edi + 0x24]
je 0x418ce0
push ecx
lea eax, [ebp - 0x1b4]
push eax
lea ecx, [edi + 0x20]
call fcn.00419840
jmp 0x418ca3
lea ecx, [edi + 0x40]
call fcn.00414250
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1a4], ebx
push eax
push 0
push 0
lea eax, [ebp - 0x1a8]
mov dword [ebp - 0x1a8], 1
push eax
push 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x418ea6
test eax, eax
je 0x418c80
push 0x80
lea eax, [ebp - 0xa4]
push 0
push eax
call fcn.005d2630
add esp, 0xc
mov dword [ebp - 0x1c], 0x80
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xa4]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebp - 0x1b0], eax
cmp eax, 0xffffffff
jne 0x418dcf
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2745
je 0x418c80
cmp byte [0x6b2b20], 0
je 0x418f04
call esi
mov edx, eax
lea ecx, [ebp - 0x1d4]
call fcn.004029b0
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x418d98
mov eax, dword [eax]
push eax
push str.http_proxy__listen_work__listen_sock_accept_failed__s_
push 3
push 0x6b2b20
call fcn.00403570
mov eax, dword [ebp - 0x1c0]
add esp, 0x10
cmp eax, 8
jb 0x418f04
inc eax
lea ecx, [ebp - 0x1d4]
push eax
push dword [ebp - 0x1d4]
jmp 0x418eff
mov edx, dword [edi + 8]
lea eax, [ebp - 0x1b0]
push eax
push dword [edi + 0xc]
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
movq qword [ebp - 0x18], xmm0
call fcn.004191c0
add esp, 8
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
test eax, eax
je 0x418e04
lock inc dword [eax + 4]
mov dword [ebp - 0x1b8], eax
mov dword [ebp - 0x1bc], ecx
mov byte [ebp - 4], 4
lea eax, [ebp - 0x1bc]
push dword [ebp - 0x1b4]
lea ecx, [edi + 0x20]
push eax
lea eax, [ebp - 0x1f4]
push eax
call fcn.00419fa0
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x1b8]
test esi, esi
je 0x418e5f
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x418e5f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x418e5f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
call fcn.0041c740
mov dword [ebp - 4], 6
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x418e9a
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x418e9a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x418e9a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
jmp 0x418c80
cmp byte [0x6b2b20], 0
je 0x418f04
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x1ec]
call fcn.004029b0
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x418ed1
mov eax, dword [eax]
push eax
push str.http_proxy__listen_work__listen_sock_select_failed__s_
push 3
push 0x6b2b20
call fcn.00403570
mov eax, dword [ebp - 0x1d8]
add esp, 0x10
cmp eax, 8
jb 0x418f04
inc eax
lea ecx, [ebp - 0x1ec]
push eax
push dword [ebp - 0x1ec]
call fcn.00408960
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [edi + 0x1c]
mov cl, 1
xchg byte [eax], cl
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.005697c8
mov esp, ebp
pop ebp
ret