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

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1f80]
mov eax, 0x2080
call fcn.14004cc70
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x20c0], rbx
mov rax, qword [0x14006c100]
xor rax, rsp
mov qword [rbp + 0x1f70], rax
mov rsi, rdx
mov rdi, rcx
movdqa xmm0, xmmword [0x14005a0c0]
movdqu xmmword [rsp + 0x58], xmm0
xor r14d, r14d
mov word [rsp + 0x48], r14w
lea rdx, str._OneSettingsCustomClient__OpenWebRequest
lea rcx, [rsp + 0x48]
call fcn.140007e74
lea r8, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae r8, qword [rsp + 0x48]
lea rdx, str._s_:_Init
xor ecx, ecx
call fcn.14000972c
nop
mov ebx, r14d
mov rcx, rdi
call fcn.140016db8
xor edx, edx
mov r8d, 0x2000
lea rcx, [rsp + 0x70]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rcx, [rdi + 0x60]
cmp qword [rcx + 0x18], 8
jb 0x1400153a0
mov rcx, qword [rcx]
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
nop dword [rax + rax]
mov qword [rdi + 0x1a8], rax
mov r15d, 0x80070000
test rax, rax
jne 0x140015402
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._OneSettingsCustomClient__OpenWebRequest_:_Internet_WinHttpOpen
mov ecx, ebx
call fcn.14000972c
test ebx, ebx
js 0x140015551
mov edx, 0x2710
mov dword [rsp + 0x20], edx
mov r9d, edx
mov r8d, edx
mov rcx, qword [rdi + 0x1a8]
call qword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
nop dword [rax + rax]
test eax, eax
jne 0x140015457
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._OneSettingsCustomClient__OpenWebRequest_:_Internet_WinHttpSetTimeouts
mov ecx, ebx
call fcn.14000972c
test ebx, ebx
js 0x140015551
mov r8d, 0x1bb
xor r9d, r9d
mov rdx, rsi
mov rcx, qword [rdi + 0x1a8]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
nop dword [rax + rax]
mov qword [rdi + 0x1b0], rax
test rax, rax
jne 0x1400154b9
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._OneSettingsCustomClient__OpenWebRequest_:_Connection_WinHttpConnect
mov ecx, ebx
call fcn.14000972c
test ebx, ebx
js 0x140015551
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.1400155b8
mov ebx, eax
lea rdx, str._OneSettingsCustomClient__OpenWebRequest_:_Create_query_string
mov ecx, eax
call fcn.14000972c
test ebx, ebx
js 0x140015551
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea r8, [rsp + 0x70]
lea rdx, [0x140055bc0]
mov rcx, qword [rdi + 0x1b0]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
nop dword [rax + rax]
mov qword [rdi + 0x1b8], rax
test rax, rax
jne 0x140015551
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._OneSettingsCustomClient__OpenWebRequest_:_Request_WinHttpOpenRequest
mov ecx, ebx
call fcn.14000972c
lea rdx, str._OneSettingsCustomClient__OpenWebRequest_:_Return_HRResult
mov ecx, ebx
call fcn.14000972c
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.14000972c
lea rcx, [rsp + 0x48]
call fcn.140007d04
mov eax, ebx
mov rcx, qword [rbp + 0x1f70]
xor rcx, rsp
call fcn.14004b180
mov rbx, qword [rsp + 0x20c0]
add rsp, 0x2080
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret