Function at 0x18000786c
Capabilities:
Initialize winhttp library

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
and dword [rsp + 0x20], 0
lea r12, [rcx + 0x64]
mov r14, rdx
mov rdi, rcx
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
lea rcx, [rbp + 0x1f]
xor ebx, ebx
and dword [rbp - 1], ebx
mov r15, rax
xor eax, eax
and dword [rbp - 0x19], eax
mov qword [rbp + 3], rax
mov qword [rbp + 0xb], rax
mov qword [rbp + 0x13], rax
mov dword [rbp + 0x1b], eax
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], rax
xor esi, esi
call qword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
mov rcx, qword [rbp + 0x2f]
test rcx, rcx
je 0x1800078fc
call fcn.18001d570
test rax, rax
je 0x1800078fc
mov rbx, qword [rbp + 0x2f]
mov rsi, qword [rbp + 0x37]
jmp 0x18000796c
mov rcx, qword [rbp + 0x27]
test rcx, rcx
je 0x18000796c
call fcn.18001d570
test rax, rax
je 0x18000796c
lea r9, [rbp - 0x19]
lea r8, [rbp - 1]
mov rdx, r14
mov rcx, r15
mov dword [rbp - 1], 2
mov dword [rbp + 0x1b], 1
mov dword [rbp + 3], 1
call qword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
jne 0x180007943
xor eax, eax
jmp 0x180007ac5
cmp dword [rbp - 0x19], 3
jne 0x180007964
mov rcx, qword [rdi + 0x270]
mov r9d, 0x18
lea r8, [rbp - 0x19]
lea edx, [r9 + 0xe]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov rbx, qword [rbp - 0x11]
mov rsi, qword [rbp - 9]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test rbx, rbx
je 0x180007a6f
mov rcx, rbx
call fcn.18001d570
test rax, rax
je 0x180007a6f
mov rcx, rbx
call fcn.18001d570
cmp rax, 0x28
jbe 0x1800079ae
lea rcx, str.0x04__auto_proxy__s_too_long
mov rdx, rbx
call fcn.180002394
jmp 0x18000793c
lea r9, str.HTTPS
lea r8, str._s_s:___s
mov edx, 0x104
mov rcx, rdi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r9
call fcn.18001d8d8
lea rcx, str.0x03___s
mov rdx, rdi
call fcn.180002394
test rsi, rsi
je 0x180007a15
mov rcx, rsi
call fcn.18001d570
test rax, rax
je 0x180007a15
mov rcx, rsi
lea rbx, [rdi + 0x2ce]
call fcn.18001d570
mov r8, rsi
mov rcx, rbx
lea rdx, [rax + 1]
call fcn.18001dfa4
mov rsi, rbx
lea rcx, str.0x01___s_by__s
mov r8, rsi
mov rdx, rdi
call fcn.180002394
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x180007a36
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x180007a45
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [rsp + 0x20], 0
mov r9, rsi
mov r8, rdi
mov edx, 3
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rdi + 0x270], rax
test rax, rax
jne 0x180007aba
jmp 0x18000793c
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rdi + 0x270], rax
test rax, rax
jne 0x180007aac
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.0x01___d
mov edx, eax
call fcn.180002394
jmp 0x18000793c
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 0x64]
call fcn.18001cca0
mov rdx, r14
mov rcx, rdi
call fcn.1800071ec
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret