Function at 0x1400010d0
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x20], r9d
push rbp
push rsi
push rdi
push r12
push r15
mov eax, 0x2050
call fcn.140002130
sub rsp, rax
xor ebx, ebx
mov r15, r8
mov rdi, rdx
mov dword [rsp + 0x40], ebx
mov rsi, rcx
mov dword [rsp + 0x20], ebx
xor r8d, r8d
lea rcx, str.Client_1.0
xor edx, edx
xor r9d, r9d
mov ebp, ebx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r12, rax
test rax, rax
jne 0x140001139
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.WinHttpOpen_failed_with_error__u_n
call fcn.140001010
jmp 0x14000134c
mov r8d, 0x1388
mov qword [rsp + 0x2080], r14
xor r9d, r9d
lea rdx, str.localhost
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r14, rax
test rax, rax
jne 0x14000117b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.WinHttpConnect_failed_with_error__u_n
call fcn.140001010
jmp 0x14000133b
mov dword [rsp + 0x30], ebx
lea rdx, str.POST
mov qword [rsp + 0x28], rbx
xor r9d, r9d
mov r8, rsi
mov qword [rsp + 0x20], rbx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rsi, rax
test rax, rax
jne 0x1400011c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.WinHttpOpenRequest_failed_with_error__u_n
call fcn.140001010
jmp 0x140001332
mov rax, 0xffffffffffffffff
mov rcx, rax
nop word [rax + rax]
inc rcx
cmp word [rdi + rcx*2], bx
jne 0x1400011d0
add ecx, ecx
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], bx
jne 0x1400011e0
mov qword [rsp + 0x30], rbx
lea rdx, str.Content_Type:_application_json_r_n
mov dword [rsp + 0x28], ecx
add eax, eax
mov rcx, rsi
mov dword [rsp + 0x20], eax
mov r9, rdi
mov r8d, 0xffffffff
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x14000122e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.WinHttpSendRequest_failed_with_error__u_n
call fcn.140001010
jmp 0x140001329
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x140001256
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.WinHttpReceiveResponse_failed_with_error__u_n
call fcn.140001010
jmp 0x140001329
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x2000
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x140001324
nop
cmp dword [rsp + 0x40], ebx
jbe 0x140001324
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x2000
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x2098]
mov dword [rsp + 0x2098], ebx
mov r8d, 0x1ffe
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x140001310
mov ecx, dword [rsp + 0x2098]
add ecx, ebp
cmp ecx, 0x2000
jae 0x140001302
lea r8, [rsp + 0x50]
mov edx, 0x1000
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add ebp, dword [rsp + 0x2098]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x140001280
jmp 0x140001324
lea rcx, str.Response_buffer_overflow._n
call fcn.140001010
jmp 0x140001324
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.WinHttpReadData_failed_with_error__u_n
call fcn.140001010
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov r14, qword [rsp + 0x2080]
mov eax, ebx
mov rbx, qword [rsp + 0x2088]
add rsp, 0x2050
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret