Function at 0x412ae0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60673d
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
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 esi, ecx
cmp dword [esi + 0x38], 0xffffffff
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0xbc], eax
jne 0x412c95
cmp dword [esi + 0x54], 0
jne 0x412b5c
call fcn.00412a00
test al, al
jne 0x412b5c
cmp byte [0x6b2b20], al
je 0x412b54
push str.TCPServer__m_pResultAddrInfo__NULL
push 3
push 0x6b2b20
call fcn.00403570
add esp, 0xc
or eax, 0xffffffff
jmp 0x412d13
mov eax, dword [esi + 0x54]
xor bl, bl
mov byte [ebp - 0x9d], bl
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x38], eax
cmp eax, 0xffffffff
jne 0x412beb
cmp byte [0x6b2b20], bl
je 0x412c78
call edi
mov edx, eax
lea ecx, [ebp - 0xb8]
call fcn.004029b0
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x412ba8
mov eax, dword [eax]
push eax
push str.TCPServer__create_socket_failed_for_listen__s_
push 3
push 0x6b2b20
call fcn.00403570
mov dword [ebp - 4], 0xffffffff
add esp, 0x10
mov eax, dword [ebp - 0xa4]
cmp eax, 8
jb 0x412c78
inc eax
lea ecx, [ebp - 0xb8]
push eax
push dword [ebp - 0xb8]
call fcn.00408960
jmp 0x412c78
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [ebp - 0x14]
push 4
push ecx
push 4
push 0xffff
push eax
mov dword [ebp - 0x14], 1
call ebx
cmp eax, 0xffffffff
jne 0x412d31
cmp byte [0x6b2b20], 0
je 0x412c72
call edi
mov edx, eax
lea ecx, [ebp - 0xb8]
call fcn.004029b0
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x412c38
mov eax, dword [eax]
push eax
push str.TCPServer__set_sock_opt_reuse_addr_failed_for_listen__s_
push 3
push 0x6b2b20
call fcn.00403570
mov dword [ebp - 4], 0xffffffff
add esp, 0x10
mov eax, dword [ebp - 0xa4]
cmp eax, 8
jb 0x412c72
inc eax
lea ecx, [ebp - 0xb8]
push eax
push dword [ebp - 0xb8]
call fcn.00408960
mov bl, byte [ebp - 0x9d]
mov eax, dword [esi + 0x54]
test eax, eax
je 0x412c8d
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov dword [esi + 0x54], 0
test bl, bl
je 0x412f2e
push ecx
push dword [esi + 0x38]
call fcn.0040e5b0
test eax, eax
je 0x412d11
mov ebx, dword [sym.imp.WS2_32.dll_accept]
nop dword [eax + eax]
cmp eax, 0xffffffff
je 0x412f11
push 0x80
lea eax, [ebp - 0x9c]
push 0
push eax
call fcn.005d2630
add esp, 0xc
mov dword [ebp - 0x1c], 0x80
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x9c]
push eax
push dword [esi + 0x38]
call ebx
mov ecx, dword [ebp - 0xbc]
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x412ea3
call edi
cmp eax, 0x2745
jne 0x412e3c
push ecx
push dword [esi + 0x38]
call fcn.0040e5b0
test eax, eax
jne 0x412cb0
xor eax, eax
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 8
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x1b
push 0x29
push dword [esi + 0x38]
call ebx
cmp eax, 0xffffffff
jne 0x412d82
cmp byte [0x6b2b20], 0
je 0x412c72
call edi
mov edx, eax
lea ecx, [ebp - 0xb8]
call fcn.004029b0
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x412d77
mov eax, dword [eax]
push eax
push str.TCPServer__setsockopt_IPV6_V6ONLY_failed__s_
jmp 0x412c3e
mov eax, dword [esi + 0x54]
push dword [eax + 0x10]
push dword [eax + 0x18]
push dword [esi + 0x38]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x412dcf
cmp byte [0x6b2b20], 0
je 0x412c72
call edi
mov edx, eax
lea ecx, [ebp - 0xb8]
call fcn.004029b0
mov dword [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x412dc4
mov eax, dword [eax]
push eax
push str.TCPServer__bind_failed__s__for_listen
jmp 0x412c3e
push bind
push dword [esi + 0x38]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x412e18
cmp byte [0x6b2b20], 0
je 0x412c72
call edi
mov edx, eax
lea ecx, [ebp - 0xb8]
call fcn.004029b0
mov dword [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x412e0d
mov eax, dword [eax]
push eax
push str.TCPServer__listen_failed__s_
jmp 0x412c3e
cmp byte [0x6b2b20], 0
je 0x412e35
push str.https_proxy__listen_sock__create_socket_succeed
push 1
push 0x6b2b20
call fcn.00403570
add esp, 0xc
mov bl, 1
jmp 0x412c78
cmp byte [0x6b2b20], 0
je 0x412f2e
call edi
mov edx, eax
lea ecx, [ebp - 0xb8]
call fcn.004029b0
mov dword [ebp - 4], 5
cmp dword [eax + 0x14], 8
jb 0x412e67
mov eax, dword [eax]
push eax
push str.TCPServer__accept_failed__s_
push 3
push 0x6b2b20
call fcn.00403570
mov eax, dword [ebp - 0xa4]
add esp, 0x10
cmp eax, 8
jb 0x412f2e
inc eax
lea ecx, [ebp - 0xb8]
push eax
push dword [ebp - 0xb8]
call fcn.00408960
jmp 0x412f2e
cmp byte [0x6b2b20], 0
je 0x412f07
lea edx, [ebp - 0x9c]
lea ecx, [ebp - 0xd4]
call fcn.0040ee90
mov dword [ebp - 4], 6
cmp dword [eax + 0x14], 8
jb 0x412ecc
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0xbc]
push dword [eax]
push str.TCPServer__client_sock_be_accepted__d____s
push 1
push 0x6b2b20
call fcn.00403570
mov eax, dword [ebp - 0xc0]
add esp, 0x14
cmp eax, 8
jb 0x412f07
inc eax
lea ecx, [ebp - 0xd4]
push eax
push dword [ebp - 0xd4]
call fcn.00408960
mov eax, 1
jmp 0x412d13
cmp byte [0x6b2b20], 0
je 0x412f2e
push str.TCPServer__select_failed
push 3
push 0x6b2b20
call fcn.00403570
add esp, 0xc
mov eax, dword [esi + 0x38]
cmp eax, 0xffffffff
je 0x412f3d
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x38], 0xffffffff
or eax, 0xffffffff
jmp 0x412d13