Function at 0x1401049f0
Capabilities:
Initialize winhttp library
Prepare http request

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x4b0]
sub rsp, 0x5b0
mov rax, qword [0x140344548]
xor rax, rsp
mov qword [rbp + 0x4a0], rax
mov r14, r8
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x50], rcx
xor ebx, ebx
mov dword [rbp - 0x70], ebx
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x40]
call fcn.14025e800
nop
lea rcx, [rbp + 0x40]
call fcn.14025f760
test al, al
je 0x140104a57
lea rdx, str.Using_WinHttpGetProxyForUrl___to_get_proxy_settings.
lea rcx, [rbp + 0x40]
call fcn.140255d20
nop
lea rcx, [rbp + 0x40]
call fcn.140255600
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x80], rbx
mov qword [rsp + 0x50], rbx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rax
lea rax, [rbp - 0x78]
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x80]
mov qword [rbp - 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rbp - 0x28], rax
lea rax, [rbp - 0x50]
mov qword [rbp - 0x20], rax
mov byte [rbp - 0x18], 1
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
lea rcx, str.WinHTTP_AutoProxy_Sample_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rbp - 0x78], rax
test rax, rax
jne 0x140104b02
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x40]
call fcn.14025e800
nop
lea rcx, [rbp + 0x40]
call fcn.14025f760
test al, al
je 0x140104af0
lea rdx, str.WinHttpOpen___failed.
lea rcx, [rbp + 0x40]
call fcn.140255d20
nop
lea rcx, [rbp + 0x40]
call fcn.140255600
mov byte [rdi + 0x20], 0
jmp 0x14010519f
movups xmm0, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x10]
call fcn.140265530
nop
cmp qword [rax + 0x18], 8
jb 0x140104b24
mov rax, qword [rax]
mov r8d, 0x50
xor r9d, r9d
mov rdx, rax
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rbp - 0x80], rax
mov rdx, qword [rbp + 0x28]
cmp rdx, 8
jb 0x140104b86
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140104b7c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140104b7c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140082030
nop
mov rax, qword [rbp - 0x80]
test rax, rax
jne 0x140104be0
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x40]
call fcn.14025e800
nop
lea rcx, [rbp + 0x40]
call fcn.14025f760
test al, al
je 0x140104bce
lea rdx, str.WinHttpConnect___failed_for_host:
lea rcx, [rbp + 0x40]
call fcn.140255d20
movups xmm0, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.140255fa0
nop
lea rcx, [rbp + 0x40]
call fcn.140255600
mov byte [rdi + 0x20], 0
jmp 0x14010519f
movups xmm0, xmmword [rsi + 0x20]
movaps xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x10]
call fcn.140265530
nop
cmp qword [rax + 0x18], 8
jb 0x140104c02
mov rax, qword [rax]
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8, rax
lea rdx, [0x1402861a0]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rsp + 0x50], rax
mov rdx, qword [rbp + 0x28]
cmp rdx, 8
jb 0x140104c75
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140104c6a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140104c6a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140082030
nop
mov rax, qword [rsp + 0x50]
test rax, rax
jne 0x140104ccf
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x40]
call fcn.14025e800
nop
lea rcx, [rbp + 0x40]
call fcn.14025f760
test al, al
je 0x140104cbd
lea rdx, str.WinHttpOpenRequest___failed_for_path:
lea rcx, [rbp + 0x40]
call fcn.140255d20
movups xmm0, xmmword [rsi + 0x20]
movaps xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.140255fa0
nop
lea rcx, [rbp + 0x40]
call fcn.140255600
mov byte [rdi + 0x20], 0
jmp 0x14010519f
movups xmm0, xmmword [r14]
movups xmmword [rbp - 0x10], xmm0
movups xmm1, xmmword [r14 + 0x10]
movups xmmword [rbp], xmm1
mov byte [rsp + 0x78], 0
movups xmm0, xmmword [rsi]
movaps xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x10]
call fcn.140265530
nop
cmp qword [rax + 0x18], 8
jb 0x140104d06
mov rax, qword [rax]
lea r9, [rbp - 0x50]
lea r8, [rbp - 0x10]
mov rdx, rax
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
mov esi, eax
mov rdx, qword [rbp + 0x28]
cmp rdx, 8
jb 0x140104d61
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140104d5b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140104d5b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140082030
nop
xor r8d, r8d
xor edx, edx
test esi, esi
je 0x140105139
lea rcx, [rbp + 0x40]
call fcn.14025e800
nop
lea rcx, [rbp + 0x40]
call fcn.14025f760
test al, al
je 0x140104d96
lea rdx, str.Using_PAC_file_to_detect_proxy_settings.
lea rcx, [rbp + 0x40]
call fcn.140255d20
nop
lea rcx, [rbp + 0x40]
call fcn.140255600
mov r9d, 0x18
lea r8, [rbp - 0x50]
lea edx, [r9 + 0xe]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x1401050ee
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x140104f1c
mov qword [rbp - 0x60], rcx
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140104de0
mov qword [rbp - 0x58], rax
movaps xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x10]
call fcn.140265390
mov rsi, rax
cmp byte [rsp + 0x78], 0
je 0x140104e1f
lea rcx, [rsp + 0x58]
call fcn.140087110
mov byte [rsp + 0x78], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
movups xmm0, xmmword [rsi]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rsp + 0x68], xmm1
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rsi], 0
mov al, 1
mov byte [rsp + 0x78], al
mov rdx, qword [rbp + 0x28]
cmp rdx, 0x10
jb 0x140104e9a
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140104e8f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140104e8f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140082030
nop
movzx eax, byte [rsp + 0x78]
mov byte [rdi + 0x20], 0
test al, al
je 0x140104eca
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [rdi + 0x10], xmm1
movdqa xmm0, xmmword [0x14027cff0]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], 0
mov byte [rdi + 0x20], 1
test al, al
je 0x14010519f
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x1401050d6
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140104f11
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140104f11
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140082030
nop
jmp 0x1401050d6
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x270]
call fcn.14025e800
nop
lea rcx, [rbp + 0x270]
call fcn.14025f760
test al, al
je 0x14010507a
mov eax, dword [rbp - 0x50]
mov dword [rsp + 0x40], eax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rbp + 0x30], xmm0
mov qword [rbp - 0x60], 2
lea rax, [rbp + 0x30]
mov qword [rbp - 0x58], rax
lea rax, str.Unable_to_set_proxy_settings._Null_proxy_string._Access_type:_
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0x40
mov qword [rbp + 0x50], rbx
lea rsi, vtable.fmt::v8::basic_memory_buffer_char__500__class_std::allocator_char__.0
mov qword [rbp + 0x40], rsi
lea rax, [rbp + 0x60]
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x58], 0x1f4
movaps xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rbp - 0x60], xmm0
movaps xmm1, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm1
mov r9, rbx
lea r8, [rbp - 0x60]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x40]
call fcn.1400c5ce0
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x20], xmm1
mov r8, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x48]
lea rcx, [rbp + 0x10]
call fcn.1400767f0
mov dword [rbp - 0x70], listen
mov qword [rbp + 0x40], rsi
lea rax, [rbp + 0x60]
mov rcx, qword [rbp + 0x48]
cmp rcx, rax
je 0x14010502a
mov rdx, qword [rbp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140105024
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140105024
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140082030
nop
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x270]
call fcn.140255ac0
nop
mov rdx, qword [rbp + 0x28]
cmp rdx, 0x10
jb 0x14010507a
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140105074
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140105074
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140082030
nop
lea rcx, [rbp + 0x270]
call fcn.140255600
mov byte [rdi + 0x20], 0
cmp byte [rsp + 0x78], 0
je 0x14010519f
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x1401050d6
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401050d0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1401050d0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140082030
nop
movdqa xmm0, xmmword [0x14027cff0]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], 0
jmp 0x14010519f
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x270]
call fcn.14025e800
nop
lea rcx, [rbp + 0x270]
call fcn.14025f760
test al, al
je 0x140105137
lea rdx, str.Failed_to_get_proxy_settings_using_WinHttpSetOption__._Error_Code:
lea rcx, [rbp + 0x270]
call fcn.140255d20
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140255c30
nop
jmp 0x14010517d
lea rcx, [rbp + 0x270]
call fcn.14025e800
nop
lea rcx, [rbp + 0x270]
call fcn.14025f760
test al, al
je 0x14010517d
lea rdx, str.WinHttpGetProxyForUrl___failed._Error_Code:
lea rcx, [rbp + 0x270]
call fcn.140255d20
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140255c30
nop
lea rcx, [rbp + 0x270]
call fcn.140255600
mov byte [rdi + 0x20], 0
cmp byte [rsp + 0x78], 0
je 0x14010519f
lea rcx, [rsp + 0x58]
call fcn.140087110
nop
lea rcx, [rbp - 0x38]
call fcn.140103cc0
mov rax, rdi
mov rcx, qword [rbp + 0x4a0]
xor rcx, rsp
call fcn.140266400
add rsp, 0x5b0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret