Function at 0x418f30
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6072c8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x6ab0d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 6
push 1
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x418fc6
cmp byte [0x6b2b20], 0
je 0x418fbe
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x4c]
call fcn.004029b0
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x418f94
mov eax, dword [eax]
push eax
push str.http_proxy__listen_sock__create_socket_failed__s_
push 3
push 0x6b2b20
call fcn.00403570
mov eax, dword [ebp - 0x38]
add esp, 0x10
cmp eax, 8
jb 0x418fbe
inc eax
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp - 0x4c]
call fcn.00408960
or eax, 0xffffffff
jmp 0x41919b
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x41902c
cmp byte [0x6b2b20], 0
je 0x419170
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x4c]
call fcn.004029b0
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x419012
mov eax, dword [eax]
push eax
push str.http_proxy__listen_sock__set_sock_opt_reuse_addr_failed__s_
push 3
push 0x6b2b20
call fcn.00403570
lea ecx, [ebp - 0x4c]
jmp 0x419168
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x34], xmm0
mov eax, 0x17
movq qword [ebp - 0x24], xmm0
movups xmm0, xmmword [0x60e650]
push 0x29e7
mov word [ebp - 0x34], ax
movups xmmword [ebp - 0x2c], xmm0
call dword [sym.imp.WS2_32.dll_htons]
push 4
mov word [ebp - 0x32], ax
lea eax, [ebp - 0x18]
push eax
push 0x1b
push 0x29
push esi
mov dword [ebp - 0x18], 0
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x4190c5
cmp byte [0x6b2b20], 0
je 0x419170
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x4c]
call fcn.004029b0
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x4190ab
mov eax, dword [eax]
push eax
push str.http_proxy__listen_sock__setsockopt_IPV6_V6ONLY_failed__s_
push 3
push 0x6b2b20
call fcn.00403570
lea ecx, [ebp - 0x4c]
jmp 0x419168
push 0x1c
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x41911a
cmp byte [0x6b2b20], 0
je 0x419170
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x4c]
call fcn.004029b0
mov dword [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x419103
mov eax, dword [eax]
push eax
push str.http_proxy__listen_sock__bind_failed__s_
push 3
push 0x6b2b20
call fcn.00403570
lea ecx, [ebp - 0x4c]
jmp 0x419168
push bind
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x41917c
cmp byte [0x6b2b20], 0
je 0x419170
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x64]
call fcn.004029b0
mov dword [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x419153
mov eax, dword [eax]
push eax
push str.http_proxy__listen_sock__listen_failed__s_
push 3
push 0x6b2b20
call fcn.00403570
lea ecx, [ebp - 0x64]
add esp, 0x10
call fcn.004044f0
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x41919b
cmp byte [0x6b2b20], 0
je 0x419199
push str.http_proxy__listen_sock__create_socket_succeed
push 1
push 0x6b2b20
call fcn.00403570
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005697c8
mov esp, ebp
pop ebp
ret