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

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov word [rax + 8], cx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3f]
sub rsp, 0xc0
mov qword [rbp - 9], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rbx, r9
mov r13b, dl
xor r14d, r14d
xor r15d, r15d
xor edi, edi
lea rcx, [0x1800d4a58]
mov rax, qword [0x1800d4a58]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x69], rax
lea rcx, [0x1800d4a58]
mov rax, qword [0x1800d4a58]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x71], rax
lea esi, [rdi + 0x20]
mov r8d, esi
xor edx, edx
lea rcx, [rbp - 0x49]
call fcn.180046390
mov r8d, esi
xor edx, edx
lea rcx, [rbp - 0x29]
call fcn.180046390
xor eax, eax
mov qword [rbp - 0x61], rax
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x51], rax
mov r8, rbx
lea rdx, [0x1800acef4]
lea rcx, [rbp - 0x69]
call fcn.1800176bc
mov r8, qword [rbp + 0x67]
lea rdx, [0x1800acef4]
lea rcx, [rbp - 0x71]
call fcn.1800176bc
mov rbx, qword [rbp + 0x57]
mov rcx, rbx
call fcn.18003eed8
mov r12, rax
mov rax, qword [rbp + 0x7f]
mov rsi, qword [rax]
test rsi, rsi
jne 0x18001a911
lea rcx, [rbp - 0x49]
call qword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
jne 0x18001a8b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov r8, qword [rbp - 0x39]
and dword [rsp + 0x20], 0
lea rcx, str.SecureAge
test r8, r8
je 0x18001a8d2
mov r9, qword [rbp - 0x31]
mov edx, 3
jmp 0x18001a8da
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rsi, rax
test rax, rax
jne 0x18001a90d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov r8d, eax
lea rdx, str.Unable_to_open_internet_connection._Error_code__lu.
mov ecx, eax
call fcn.180022938
mov rbx, qword [rbp + 0x87]
jmp 0x18001aa6d
mov rax, qword [rbp + 0x7f]
xor r14d, r14d
cmp qword [rax], r14
jne 0x18001a9db
cmp qword [rbp - 0x41], r14
je 0x18001a9db
lea rcx, [0x1800d4a58]
mov rax, qword [0x1800d4a58]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x79], rax
mov rdx, qword [rbp - 0x41]
mov rax, rdx
neg rax
sbb ecx, ecx
neg ecx
add ecx, 0x10001
mov dword [rbp - 0x29], ecx
mov eax, dword [rbp - 0x49]
mov dword [rbp - 0x25], eax
mov qword [rbp - 0x21], rdx
mov dword [rbp - 0xd], 1
mov r8, rbx
lea rcx, [rbp - 0x79]
test r13b, r13b
lea rdx, str.https:___S
jne 0x18001a982
lea rdx, str.http:___S
call fcn.1800176bc
lea r9, [rbp - 0x61]
lea r8, [rbp - 0x29]
mov rbx, qword [rbp - 0x79]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x18001a9c1
cmp qword [rbp - 0x59], r14
je 0x18001a9c1
mov r9d, 0x18
lea r8, [rbp - 0x61]
lea edx, [r9 + 0xe]
mov rcx, rsi
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 0x18001a9db
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rbp + 0x87]
mov r14, qword [rbx]
test r14, r14
jne 0x18001aa15
xor r9d, r9d
movzx r8d, word [rbp + 0x47]
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r14, rax
test rax, rax
jne 0x18001aa15
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Unable_to_connect_to__s._Error_code__lu.
jmp 0x18001aa5e
neg r13b
sbb eax, eax
and eax, 0x800000
mov dword [rsp + 0x30], eax
mov rax, qword [rbp + 0x77]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x6f]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rbp - 0x71]
mov rdx, qword [rbp - 0x69]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r15, rax
test rax, rax
jne 0x18001aa6d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Open_request_to_server__s_failed._Error_code__lu.
mov edi, eax
mov r9d, eax
mov r8, r12
mov ecx, eax
call fcn.180022938
test edi, edi
je 0x18001aaa3
test r15, r15
je 0x18001aa7f
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r14, r14
je 0x18001aa8d
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test rsi, rsi
je 0x18001aa9b
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor esi, esi
xor r14d, r14d
xor r15d, r15d
mov rax, qword [rbp + 0x7f]
mov qword [rax], rsi
mov qword [rbx], r14
mov rax, qword [rbp + 0x8f]
mov qword [rax], r15
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x18001aac6
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x18001aad5
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x18001aae4
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x18001aaf3
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x18001ab02
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test r12, r12
je 0x18001ab10
mov rcx, r12
call fcn.180053728
nop
mov rdx, qword [rbp - 0x71]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x18001ab32
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x69]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x18001ab50
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, edi
mov rbx, qword [rsp + 0x108]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret