Function at 0x40e170
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419b4d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x424040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [ebp + 8]
sub esp, 0x18
mov edx, esp
xorps xmm0, xmm0
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0xb
mov dword [edx + 0x14], 0xf
movq xmm0, qword [str.Connections]
movq qword [edx], xmm0
movzx eax, word [0x41d154]
mov word [edx + 8], ax
movzx eax, byte [0x41d156]
mov byte [edx + 0xa], al
mov byte [edx + 0xb], 0
call fcn.0040edc0
xorps xmm0, xmm0
mov dword [ebp - 0x18], 4
movups xmmword [ebp - 0x28], xmm0
mov edi, eax
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x28], 0x74736f68
mov byte [ebp - 0x24], 0
sub esp, 0x28
mov dword [ebp - 4], 0
mov eax, esp
mov dword [ebp - 0x30], esp
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_c6af5af21f2fcabaa1d475b6c7604a12___void__char_const__.0
mov dword [eax + 4], esi
mov dword [eax + 0x24], eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x34], esp
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0xe
mov dword [ecx + 0x14], 0xf
movq xmm0, qword [str.localhost:8194]
movq qword [ecx], xmm0
mov eax, dword [0x41d1cc]
mov dword [ecx + 8], eax
movzx eax, word [0x41d1d0]
mov word [ecx + 0xc], ax
mov byte [ecx + 0xe], 0
sub esp, 0x18
mov byte [ebp - 4], 2
mov esi, esp
mov dword [ebp - 0x38], esp
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x4f
xorps xmm0, xmm0
push eax
movups xmmword [esi], xmm0
push esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.004018a0
mov ecx, dword [ebp - 0x2c]
mov edx, eax
mov dword [esi], edx
mov dword [esi + 0x10], 0x42
mov dword [esi + 0x14], ecx
movups xmm0, xmmword [str.Endpoint_host:port_and_optional_SOCKS5_host:port_to_use_to_connect]
movups xmmword [edx], xmm0
movups xmm0, xmmword [0x41d190]
movups xmmword [edx + 0x10], xmm0
movups xmm0, xmmword [0x41d1a0]
movups xmmword [edx + 0x20], xmm0
movups xmm0, xmmword [0x41d1b0]
movups xmmword [edx + 0x30], xmm0
movzx eax, word [0x41d1c0]
mov word [edx + 0x40], ax
mov byte [edx + 0x42], 0
sub esp, 0x10
mov byte [ebp - 4], 3
mov esi, esp
mov dword [ebp - 0x3c], esp
xorps xmm0, xmm0
movups xmmword [esi], xmm0
lea eax, [ebp - 0x2c]
mov dword [esi + 0x10], 0
push eax
push esi
mov dword [esi + 0x14], 0
mov dword [ebp - 0x2c], 0x2f
call fcn.004018a0
mov ecx, dword [ebp - 0x2c]
mov edx, eax
mov dword [esi], edx
add esp, 8
mov dword [esi + 0x10], 0x21
mov dword [esi + 0x14], ecx
movups xmm0, xmmword [str.host:port__socks5Host:socks5Port_]
movups xmmword [edx], xmm0
movups xmm0, xmmword [0x41d168]
movups xmmword [edx + 0x10], xmm0
movzx eax, byte [0x41d178]
mov byte [edx + 0x20], al
mov byte [edx + 0x21], 0
mov ecx, dword [edi + 0x18]
lea edx, [ebp - 0x28]
push 0x48
push edx
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 4
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 4]
call eax
mov edx, dword [edi + 0x20]
lea ecx, [edi + 0x1c]
mov esi, eax
cmp edx, dword [ecx + 8]
je 0x40e36f
mov eax, dword [ebp - 0x2c]
mov dword [edx], eax
add dword [ecx + 4], 4
jmp 0x40e379
lea eax, [ebp - 0x2c]
push eax
push edx
call fcn.00402ba0
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00415f60
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00415ee0
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00415e60
mov ecx, eax
mov byte [ebp - 4], 0
call fcn.00415dc0
mov dword [eax + 0xb0], 3
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x40e3e5
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e3db
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40e3db
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00417f35
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00418274
mov esp, ebp
pop ebp
ret 4