Function at 0x14012fbdc
Capabilities:
Initialize winhttp library

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x228]
sub rsp, 0x2f0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1402744d0]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor edx, edx
mov r8d, 0xc0
call fcn.140178d90
mov rcx, rdi
call fcn.14012f068
nop
lea rax, vtable.Aws::Http::WinHttpSyncHttpClient.0
mov qword [rdi], rax
lea r12, [rdi + 0xc8]
mov rcx, r12
call fcn.14000a5d0
nop
lea r13, [rdi + 0xe8]
mov rcx, r13
call fcn.14000a5d0
nop
call fcn.14010cdc0
mov r14, rax
test rax, rax
je 0x14012fd27
mov rax, qword [rax]
mov rcx, r14
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp eax, 4
jl 0x14012fd27
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rbp - 0x70]
call fcn.140027a90
nop
lea rdx, str.Creating_http_client_with_user_agent
lea rcx, [rbp - 0x70]
call fcn.14002c360
mov rcx, rax
mov rdx, rsi
call fcn.14000e4e0
mov rcx, rax
lea rdx, str._with_max_connections
call fcn.14002c360
mov rcx, rax
mov edx, dword [rsi + 0x4c]
call fcn.1401045a4
mov rcx, rax
lea rdx, str._request_timeout
call fcn.14002c360
mov rcx, rax
mov edx, dword [rsi + 0x50]
call fcn.1401046dc
mov rcx, rax
lea rdx, str._and_connect_timeout
call fcn.14002c360
mov rcx, rax
mov edx, dword [rsi + 0x54]
call fcn.1401046dc
mov rbx, qword [r14]
mov rcx, rdi
call fcn.1401309d4
mov r8, rax
lea r9, [rbp - 0x70]
mov edx, 4
mov rcx, r14
call qword [rbx + 0x18]
nop
lea rcx, [rbp - 0x70]
call fcn.14001a870
mov r14d, 1
lea rcx, [rsp + 0x70]
call fcn.14000ace0
nop
mov al, byte [rsi + 0x174]
mov byte [rdi + 0xa8], al
lea r15, [rsi + 0x90]
mov rcx, r15
call fcn.14000a3d0
test al, al
sete al
mov byte [rdi + 0xc0], al
lea rcx, [rsp + 0x50]
call fcn.14000a5d0
nop
cmp byte [rdi + 0xc0], 0
je 0x140130041
mov ecx, dword [rsi + 0x88]
call fcn.14011c8f8
mov qword [rsp + 0x38], rax
call fcn.14010cdc0
mov r14, rax
test rax, rax
je 0x14012fe55
mov rax, qword [rax]
mov rcx, r14
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp eax, 4
jl 0x14012fe55
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rbp - 0x70]
call fcn.140027a90
nop
lea rdx, str.Http_Client_is_using_a_proxy._Setting_up_proxy_with_settings_scheme
lea rcx, [rbp - 0x70]
call fcn.14002c360
mov rcx, rax
mov rdx, qword [rsp + 0x38]
call fcn.14002c360
mov rcx, rax
lea rdx, str.__host
call fcn.14002c360
mov rcx, rax
mov rdx, r15
call fcn.14000e4e0
mov rcx, rax
lea rdx, str.__port
call fcn.14002c360
mov rcx, rax
mov edx, dword [rsi + 0xb0]
call fcn.1401045a4
mov rcx, rax
lea rdx, str.__username
call fcn.14002c360
mov rcx, rax
lea rdx, [rsi + 0xb8]
call fcn.14000e4e0
mov rbx, qword [r14]
mov rcx, rdi
call fcn.1401309d4
mov r8, rax
lea r9, [rbp - 0x70]
mov edx, 4
mov rcx, r14
call qword [rbx + 0x18]
nop
lea rcx, [rbp - 0x70]
call fcn.14001a870
mov dword [rsp + 0x30], 3
mov edx, 3
lea r8d, [rdx - 2]
lea rcx, [rbp + 0x80]
call fcn.1400279a0
nop
mov ecx, dword [rsi + 0x20]
call fcn.14011c8f8
mov rdx, rax
lea rcx, [rbp + 0x180]
call fcn.14012010c
nop
mov rdx, rax
lea rcx, [rbp + 0x90]
call fcn.14000e4e0
mov rcx, rax
lea rdx, [0x1401df740]
call fcn.14002c360
mov rcx, rax
mov rdx, qword [rsp + 0x38]
call fcn.14002c360
mov rcx, rax
lea rdx, [0x1401d4e58]
call fcn.14002c360
mov rcx, rax
mov rdx, r15
call fcn.14000e4e0
mov rcx, rax
lea rdx, [0x1401df910]
call fcn.14002c360
mov rcx, rax
mov edx, dword [rsi + 0xb0]
call fcn.1401045a4
nop
lea rcx, [rbp + 0x180]
call fcn.14000aa50
lea rdx, [rbp + 0x180]
lea rcx, [rbp + 0x80]
call fcn.140027980
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14000aab0
lea rcx, [rbp + 0x180]
call fcn.14000aa50
lea rcx, [rsp + 0x70]
call fcn.14000a920
mov rbx, rax
mov rdx, rax
lea rcx, [rbp + 0x180]
call fcn.14012018c
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14000a550
lea rcx, [rbp + 0x180]
call fcn.140004dc0
call fcn.14010cdc0
mov r14, rax
test rax, rax
je 0x14012ffcb
mov rax, qword [rax]
mov rcx, r14
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp eax, 5
jl 0x14012ffcb
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rbp - 0x70]
call fcn.140027a90
nop
lea rdx, str.Adding_proxy_host_string_to_winhttp
lea rcx, [rbp - 0x70]
call fcn.14002c360
mov rcx, rax
mov rdx, rbx
call fcn.14002c360
mov rbx, qword [r14]
mov rcx, rdi
call fcn.1401309d4
mov r8, rax
lea r9, [rbp - 0x70]
mov edx, 5
mov rcx, r14
call qword [rbx + 0x18]
nop
lea rcx, [rbp - 0x70]
call fcn.14001a870
lea rcx, [rsi + 0xb8]
call fcn.14000a920
mov rdx, rax
lea rcx, [rbp + 0x180]
call fcn.14012018c
mov rdx, rax
mov rcx, r12
call fcn.14000a550
lea rcx, [rbp + 0x180]
call fcn.140004dc0
lea rcx, [rsi + 0xd8]
call fcn.14000a920
mov rdx, rax
lea rcx, [rbp + 0x1c0]
call fcn.14012018c
mov rdx, rax
mov rcx, r13
call fcn.14000a550
lea rcx, [rbp + 0x1c0]
call fcn.140004dc0
nop
lea rcx, [rbp + 0x80]
call fcn.14001e3a0
mov r14d, dword [rsp + 0x30]
mov rcx, rsi
call fcn.14000a920
mov rdx, rax
lea rcx, [rbp + 0x1a0]
call fcn.14012018c
nop
lea rcx, [rsp + 0x50]
call fcn.14000a480
mov rbx, rax
lea rcx, [rbp + 0x1a0]
call fcn.14000a480
mov rcx, rax
and dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rbx
mov edx, r14d
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rdx, rax
mov rcx, rdi
call fcn.1401329d8
lea r12, [rsi + 0x54]
mov rcx, rdi
call fcn.14012f648
mov rcx, rax
mov eax, dword [rsi + 0x50]
mov dword [rsp + 0x20], eax
or r9d, 0xffffffff
mov r8d, dword [r12]
mov edx, r8d
call qword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x140130136
call fcn.14010cdc0
mov r14, rax
test rax, rax
je 0x140130136
mov rax, qword [rax]
mov rcx, r14
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp eax, 3
jl 0x140130136
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rbp - 0x70]
call fcn.140027a90
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Error_setting_timeouts
lea rcx, [rbp - 0x70]
call fcn.14002c360
mov rcx, rax
mov edx, ebx
call fcn.140028460
mov rbx, qword [r14]
mov rcx, rdi
call fcn.1401309d4
mov r8, rax
lea r9, [rbp - 0x70]
mov edx, 3
mov rcx, r14
call qword [rbx + 0x18]
nop
lea rcx, [rbp - 0x70]
call fcn.14001a870
mov al, byte [rsi + 0x108]
mov byte [rdi + 0xc1], al
test al, al
je 0x1401301ed
mov dword [rsp + 0x30], 0xa80
mov rcx, rdi
call fcn.14012f648
mov rcx, rax
mov r9d, 4
lea r8, [rsp + 0x30]
lea edx, [r9 + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x1401301ed
call fcn.14010cdc0
mov r14, rax
test rax, rax
je 0x1401301ed
mov rax, qword [rax]
mov rcx, r14
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp eax, 1
jl 0x1401301ed
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rbp - 0x70]
call fcn.140027a90
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Failed_setting_secure_crypto_protocols_with_error_code:
lea rcx, [rbp - 0x70]
call fcn.14002c360
mov rcx, rax
mov edx, ebx
call fcn.140028460
mov rbx, qword [r14]
mov rcx, rdi
call fcn.1401309d4
mov r8, rax
lea r9, [rbp - 0x70]
mov edx, 1
mov rcx, r14
call qword [rbx + 0x18]
nop
lea rcx, [rbp - 0x70]
call fcn.14001a870
call fcn.14010cdc0
mov r14, rax
test rax, rax
je 0x140130268
mov rax, qword [rax]
mov rcx, r14
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp eax, 5
jl 0x140130268
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rbp - 0x70]
call fcn.140027a90
nop
mov rcx, rdi
call fcn.14012f648
mov rbx, rax
lea rdx, str.API_handle
lea rcx, [rbp - 0x70]
call fcn.14002c360
mov rcx, rax
mov rdx, rbx
call fcn.14012b864
mov rbx, qword [r14]
mov rcx, rdi
call fcn.1401309d4
mov r8, rax
lea r9, [rbp - 0x70]
mov edx, 5
mov rcx, r14
call qword [rbx + 0x18]
nop
lea rcx, [rbp - 0x70]
call fcn.14001a870
mov rcx, rdi
call fcn.14012f648
mov qword [rsp + 0x38], rax
mov rcx, rdi
call fcn.1401309d4
mov rcx, rax
mov qword [rsp + 0x20], r12
lea r9, [rsi + 0x50]
lea r8, [rsi + 0x4c]
lea rdx, [rsp + 0x38]
call fcn.14012fa18
mov rdx, rax
mov rcx, rdi
call fcn.140132960
nop
lea rcx, [rbp + 0x1a0]
call fcn.140004dc0
nop
lea rcx, [rsp + 0x50]
call fcn.140004dc0
nop
lea rcx, [rsp + 0x70]
call fcn.14000aa50
nop
mov rax, rdi
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.140158980
mov rbx, qword [rsp + 0x340]
add rsp, 0x2f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret