Function at 0x140001842
Capabilities:
Prepare http request
Receive http response

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xc8
xor r9d, r9d
mov r8d, 0x1455
mov rbp, rdx
mov rdx, qword [str.92.53.127.107]
call sub.WINHTTP.dll_WinHttpConnect
mov rsi, rax
test rax, rax
jne 0x140001899
mov rcx, qword [0x14010b370]
lea rdx, str.WinHttpConnect_failed
call fcn.1400fb050
mov rdx, qword [0x14010b3a0]
mov rcx, rax
call fcn.140001584
jmp 0x1400018f9
xor r10d, r10d
xor r9d, r9d
mov r8, qword [str._api_data]
mov rcx, rax
mov dword [rsp + 0x30], r9d
lea rdx, str.POST
xor r9d, r9d
mov qword [rsp + 0x28], r10
mov qword [rsp + 0x20], r10
call sub.WINHTTP.dll_WinHttpOpenRequest
mov rbx, rax
test rax, rax
jne 0x140001900
mov rcx, qword [0x14010b370]
lea rdx, str.WinHttpOpenRequest_failed
call fcn.1400fb050
mov rdx, qword [0x14010b3a0]
mov rcx, rax
call fcn.140001584
mov rcx, rsi
call sub.WINHTTP.dll_WinHttpCloseHandle
xor ebx, ebx
jmp 0x140001baf
lea r12, str.Content_Type:_application_json
lea rax, [rsp + 0x60]
mov rcx, r12
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x60], rax
call sub.msvcrt.dll_wcslen
mov rcx, qword [rsp + 0x48]
mov rdx, r12
lea r8, [r12 + rax*2]
lea r12, [rsp + 0x80]
call fcn.140001588
mov r13, qword [rbp + 8]
mov r14, qword [rbp]
lea rax, [rsp + 0x90]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0xa0], r13
cmp r13, 7
jbe 0x14000198d
lea rdx, [rsp + 0xa0]
xor r8d, r8d
mov rcx, r12
call fcn.1400ea1f0
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x90], rax
mov rdx, qword [rsp + 0x80]
xor eax, eax
cmp r13, rax
je 0x1400019ab
movsx cx, byte [r14 + rax]
mov word [rdx + rax*2], cx
inc rax
jmp 0x140001997
mov rdx, qword [rsp + 0xa0]
mov rcx, r12
call fcn.1400e3cc0
mov rax, qword [rbp + 8]
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x30], r8
mov rdx, qword [rsp + 0x60]
or r8d, 0xffffffff
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov r9, qword [rbp]
call sub.WINHTTP.dll_WinHttpSendRequest
test eax, eax
jne 0x140001a21
lea rdx, str.WinHttpSendRequest_failed
mov rcx, qword [0x14010b370]
call fcn.1400fb050
mov rdx, qword [0x14010b3a0]
mov rcx, rax
call fcn.140001584
mov rcx, rbx
call sub.WINHTTP.dll_WinHttpCloseHandle
mov rcx, rsi
call sub.WINHTTP.dll_WinHttpCloseHandle
xor ebx, ebx
jmp 0x140001b6c
xor edx, edx
mov rcx, rbx
call sub.WINHTTP.dll_WinHttpReceiveResponse
lea rdx, str.WinHttpReceiveResponse_failed
test eax, eax
je 0x1400019ef
xor edx, edx
lea rax, [rsp + 0xb0]
xor ecx, ecx
xor r15d, r15d
mov dword [rsp + 0x5c], edx
lea r14, [rsp + 0x58]
lea r13, [rsp + 0xa0]
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], rcx
mov byte [rsp + 0xb0], 0
xor eax, eax
mov rdx, r14
mov rcx, rbx
mov dword [rsp + 0x58], eax
call sub.WINHTTP.dll_WinHttpQueryDataAvailable
test eax, eax
jne 0x140001aa7
mov rcx, qword [0x14010b370]
lea rdx, str.WinHttpQueryDataAvailable_failed
call fcn.1400fb050
mov rdx, qword [0x14010b3a0]
mov rcx, rax
call fcn.140001584
jmp 0x140001b25
mov eax, dword [rsp + 0x58]
lea ecx, [rax + 1]
call fcn.1400ff380
mov r8d, dword [rsp + 0x58]
mov rbp, rax
mov rdi, rax
mov eax, r15d
lea r9, [rsp + 0x5c]
mov rdx, rbp
lea ecx, [r8 + 1]
rep stosb byte [rdi], al
mov rcx, rbx
call sub.WINHTTP.dll_WinHttpReadData
test eax, eax
jne 0x140001b07
mov rcx, qword [0x14010b370]
lea rdx, str.WinHttpReadData_failed
call fcn.1400fb050
mov rdx, qword [0x14010b3a0]
mov rcx, rax
call fcn.140001584
mov rcx, rbp
call fcn.1400ff350
jmp 0x140001b25
mov rdx, rbp
mov rcx, r13
call fcn.1400dc430
mov rcx, rbp
call fcn.1400ff350
cmp dword [rsp + 0x5c], 0
jne 0x140001a6e
mov rcx, qword [0x14010b390]
lea rdx, str.Response:
call fcn.1400fb050
mov rcx, rax
mov rdx, r13
call fcn.1400fb670
mov rdx, qword [0x14010b3a0]
mov rcx, rax
call fcn.140001584
mov rcx, rbx
call sub.WINHTTP.dll_WinHttpCloseHandle
mov rcx, rsi
call sub.WINHTTP.dll_WinHttpCloseHandle
mov rcx, r13
mov bl, 1
call fcn.1400db480
mov rcx, r12
call fcn.1400e34f0
mov rcx, qword [rsp + 0x48]
call fcn.1400e34f0
jmp 0x140001baf
mov eax, ebx
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret