Function at 0x1800191f0
Capabilities:
Initialize winhttp library

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov r13, r9
mov r14, r8
mov r15b, dl
movzx r12d, cx
xor ebx, ebx
xor esi, esi
lea edi, [rbx + 0x20]
mov r8d, edi
xor edx, edx
lea rcx, [rbp - 0x40]
call fcn.180046390
mov r8d, edi
xor edx, edx
lea rcx, [rbp - 0x20]
call fcn.180046390
lea rcx, [rbp - 0x40]
call qword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
jne 0x180019260
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov r8, qword [rbp - 0x30]
and dword [rsp + 0x20], ebx
lea rcx, str.SecureAge
test r8, r8
je 0x18001927f
mov r9, qword [rbp - 0x28]
mov edx, 3
jmp 0x180019287
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rdi, rax
test rax, rax
jne 0x1800192b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov r8d, eax
lea rdx, str.Unable_to_open_internet_connection._Error_code__lu.
mov ecx, eax
call fcn.180022938
jmp 0x1800193b2
cmp qword [rbp - 0x38], rbx
je 0x18001937b
lea rcx, [0x1800d4a58]
mov rax, qword [0x1800d4a58]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x50], rax
mov rdx, qword [rbp - 0x38]
mov rax, rdx
neg rax
sbb ecx, ecx
neg ecx
add ecx, 0x10001
mov dword [rbp - 0x20], ecx
mov eax, dword [rbp - 0x40]
mov dword [rbp - 0x1c], eax
mov qword [rbp - 0x18], rdx
mov dword [rbp - 4], 1
mov r8, r14
lea rcx, [rbp - 0x50]
test r15b, r15b
lea rdx, str.https:___s
jne 0x180019318
lea rdx, str.http:___s
call fcn.1800176bc
lea r9, [0x1800d8a20]
lea r8, [rbp - 0x20]
mov rbx, qword [rbp - 0x50]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x180019361
cmp qword [0x1800d8a28], 0
je 0x180019361
mov r9d, 0x18
lea r8, [0x1800d8a20]
lea edx, [r9 + 0xe]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x18001937b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor r9d, r9d
movzx r8d, r12w
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rbx, rax
test rax, rax
jne 0x1800193b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov r9d, eax
mov r8, r14
lea rdx, str.Unable_to_connect_to__s._Error_code__lu.
mov ecx, eax
call fcn.180022938
test esi, esi
je 0x1800193d6
test rbx, rbx
je 0x1800193c4
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test rdi, rdi
je 0x1800193d2
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor edi, edi
xor ebx, ebx
mov qword [r13], rdi
mov rax, qword [rbp + 0x50]
mov qword [rax], rbx
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x1800193f0
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x1800193ff
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x18001940e
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [0x1800d8a28]
test rcx, rcx
je 0x180019420
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [0x1800d8a30]
test rcx, rcx
je 0x180019432
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret