Function at 0x140015638
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.14004cfc0
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x20c0], rbx
mov rax, qword [0x14006c0f0]
xor rax, rsp
mov qword [rbp + 0x1f70], rax
mov rsi, rdx
mov rdi, rcx
movdqa xmm0, xmmword [0x14005a0b0]
movdqu xmmword [rsp + 0x58], xmm0
xor r14d, r14d
mov word [rsp + 0x48], r14w
lea rdx, str._OneSettingsCustomClient__OpenWebRequest
lea rcx, [rsp + 0x48]
call fcn.140008078
lea r8, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae r8, qword [rsp + 0x48]
lea rdx, str._s_:_Init
xor ecx, ecx
call fcn.140009a7c
nop
mov ebx, r14d
mov rcx, rdi
call fcn.140017108
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 0x1400156f0
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 0x140015752
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.140009a7c
test ebx, ebx
js 0x1400158a1
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 0x1400157a7
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.140009a7c
test ebx, ebx
js 0x1400158a1
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 0x140015809
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.140009a7c
test ebx, ebx
js 0x1400158a1
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.140015908
mov ebx, eax
lea rdx, str._OneSettingsCustomClient__OpenWebRequest_:_Create_query_string
mov ecx, eax
call fcn.140009a7c
test ebx, ebx
js 0x1400158a1
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea r8, [rsp + 0x70]
lea rdx, [0x140055a50]
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 0x1400158a1
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.140009a7c
lea rdx, str._OneSettingsCustomClient__OpenWebRequest_:_Return_HRResult
mov ecx, ebx
call fcn.140009a7c
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.140009a7c
lea rcx, [rsp + 0x48]
call fcn.140007e78
mov eax, ebx
mov rcx, qword [rbp + 0x1f70]
xor rcx, rsp
call fcn.14004b4d0
mov rbx, qword [rsp + 0x20c0]
add rsp, 0x2080
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret