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

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xf80]
mov eax, 0x1080
call fcn.140043670
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x10c0], rbx
mov rax, qword [0x14005e0f0]
xor rax, rsp
mov qword [rbp + 0xf70], rax
mov rsi, rdx
mov rdi, rcx
movdqa xmm0, xmmword [0x14004da30]
movdqu xmmword [rsp + 0x58], xmm0
xor r14d, r14d
mov word [rsp + 0x48], r14w
lea rdx, str._OneSettings__OpenWebRequest
lea rcx, [rsp + 0x48]
call fcn.1400082d4
lea r8, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae r8, qword [rsp + 0x48]
lea rdx, str._s_:_Init
xor ecx, ecx
call fcn.140009b0c
nop
mov ebx, r14d
mov rcx, rdi
call fcn.140014e78
xor edx, edx
mov r8d, 0x1000
lea rcx, [rsp + 0x70]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
nop dword [rax + rax]
mov qword [rdi + 0x70], rax
mov r15d, 0x80070000
test rax, rax
jne 0x140013855
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, r15d
test eax, eax
cmovle ecx, eax
mov ebx, 0x80004005
test ecx, ecx
cmovs ebx, ecx
lea rdx, str._OneSettings__OpenWebRequest_:_Internet_WinHttpOpen
mov ecx, ebx
call fcn.140009b0c
test ebx, ebx
js 0x140013998
mov edx, 0x2710
mov dword [rsp + 0x20], edx
mov r9d, edx
mov r8d, edx
mov rcx, qword [rdi + 0x70]
call qword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
nop dword [rax + rax]
test eax, eax
jne 0x1400138a7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, r15d
test eax, eax
cmovle ecx, eax
mov ebx, 0x80004005
test ecx, ecx
cmovs ebx, ecx
lea rdx, str._OneSettings__OpenWebRequest_:_Internet_WinHttpSetTimeouts
mov ecx, ebx
call fcn.140009b0c
test ebx, ebx
js 0x140013998
mov r8d, 0x1bb
xor r9d, r9d
mov rdx, rsi
mov rcx, qword [rdi + 0x70]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
nop dword [rax + rax]
mov qword [rdi + 0x78], rax
test rax, rax
jne 0x140013903
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, r15d
test eax, eax
cmovle ecx, eax
mov ebx, 0x80004005
test ecx, ecx
cmovs ebx, ecx
lea rdx, str._OneSettings__OpenWebRequest_:_Connection_WinHttpConnect
mov ecx, ebx
call fcn.140009b0c
test ebx, ebx
js 0x140013998
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.140013a00
mov ebx, eax
lea rdx, str._OneSettings__OpenWebRequest_:_Create_query_string
mov ecx, eax
call fcn.140009b0c
test ebx, ebx
js 0x140013998
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea r8, [rsp + 0x70]
lea rdx, [0x14004b258]
mov rcx, qword [rdi + 0x78]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
nop dword [rax + rax]
mov qword [rdi + 0x80], rax
test rax, rax
jne 0x140013998
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, r15d
test eax, eax
cmovle ecx, eax
mov ebx, 0x80004005
test ecx, ecx
cmovs ebx, ecx
lea rdx, str._OneSettings__OpenWebRequest_:_Request_WinHttpOpenRequest
mov ecx, ebx
call fcn.140009b0c
lea rdx, str._OneSettings__OpenWebRequest_:_Return_HRResult
mov ecx, ebx
call fcn.140009b0c
nop
lea r8, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae r8, qword [rsp + 0x48]
lea rdx, str._s_:_Exit
xor ecx, ecx
call fcn.140009b0c
lea rcx, [rsp + 0x48]
call fcn.140008164
mov eax, ebx
mov rcx, qword [rbp + 0xf70]
xor rcx, rsp
call fcn.140041d90
mov rbx, qword [rsp + 0x10c0]
add rsp, 0x1080
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret