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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x58]
sub rsp, 0x158
mov rax, qword [0x14000e010]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov r12, r9
mov qword [rsp + 0x70], r9
mov r14d, r8d
mov r13, rdx
mov qword [rbp - 0x80], rdx
mov rbx, rcx
mov qword [rbp - 0x50], rcx
mov qword [rbp - 0x20], rdx
mov qword [rbp - 0x18], r9
mov r15, qword [rbp + 0xc0]
mov qword [rsp + 0x68], r15
mov qword [rbp - 0x10], r15
mov dword [rsp + 0x40], 0
mov rsi, r15
cmp qword [r15 + 0x18], 0x10
jb 0x140001d3d
mov rsi, qword [r15]
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rsi + rdi], 0
jne 0x140001d44
lea rcx, [rbp + 0x20]
call fcn.140001660
nop
mov rdx, r12
lea rcx, [rbp]
call fcn.140001660
nop
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], 0xf
mov byte [rbx], al
mov dword [rsp + 0x40], 1
mov dword [rbp - 0x28], eax
mov dword [rbp - 8], eax
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.test
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rbp - 0x78], rax
test rax, rax
je 0x1400020ec
lea rdx, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae rdx, qword [rbp + 0x20]
xor r9d, r9d
movzx r8d, r14w
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r14, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x1400020e1
lea r8, [rbp]
cmp qword [rbp + 0x18], 8
cmovae r8, qword [rbp]
xor eax, eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea rdx, str.POST
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r13, rax
test rax, rax
je 0x1400020d4
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov r9, rsi
mov r8d, 0xffffffff
lea rdx, str.Content_Type:_application_x_www_form_urlencoded_r_n
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x1400020cb
xor edx, edx
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x1400020cb
xor r15d, r15d
nop dword [rax]
mov dword [rbp - 0x28], r15d
lea rdx, [rbp - 0x28]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov ecx, dword [rbp - 0x28]
inc ecx
call fcn.1400075fc
mov r12, rax
test rax, rax
je 0x1400020b8
mov r8d, dword [rbp - 0x28]
inc r8d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea r9, [rbp - 8]
mov r8d, dword [rbp - 0x28]
mov rdx, r12
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x14000209f
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], 0
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [r12 + r8], 0
jne 0x140001ed0
mov rdx, r12
lea rcx, [rsp + 0x48]
call fcn.140005a60
nop
mov rdi, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140001ef5
mov rdi, qword [rbx]
mov r14, qword [rbx + 0x10]
mov r8, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
sub rax, r8
cmp r14, rax
ja 0x140001f85
lea rax, [r8 + r14]
mov qword [rsp + 0x58], rax
lea rsi, [rsp + 0x48]
cmp rcx, 0x10
cmovae rsi, qword [rsp + 0x48]
lea rax, [r14 + rdi]
cmp rax, rsi
jbe 0x140001f45
lea rax, [rsi + r8]
cmp rdi, rax
ja 0x140001f45
cmp rsi, rdi
jbe 0x140001f48
mov r15, rsi
sub r15, rdi
jmp 0x140001f48
mov r15, r14
inc r8
lea rcx, [rsi + r14]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memmove
mov r8, r15
mov rdx, rdi
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov r8, r14
sub r8, r15
lea rdx, [r15 + r14]
add rdx, rdi
lea rcx, [rsi + r15]
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x48]
xor r15d, r15d
jmp 0x140001f9c
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rdi
mov rdx, r14
lea rcx, [rsp + 0x48]
call fcn.140006b40
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x48], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x38], xmm1
movups xmmword [rbp - 0x60], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
or dword [rsp + 0x40], 2
lea rax, [rbp - 0x70]
cmp rbx, rax
je 0x140002026
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140002012
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140002005
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400020aa
mov rcx, r8
call fcn.140006e64
movups xmm0, xmmword [rbp - 0x48]
movups xmm1, xmmword [rbp - 0x38]
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm1
jmp 0x14000205e
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x14000205e
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002058
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400020aa
call fcn.140006e64
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140002097
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002092
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400020b1
call fcn.140006e64
mov rcx, r12
call fcn.140006e64
cmp dword [rbp - 0x28], 0
jbe 0x1400020bc
jmp 0x140001e60
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov dword [rbp - 0x28], r15d
mov r14, qword [rsp + 0x78]
mov r12, qword [rsp + 0x70]
mov r15, qword [rsp + 0x68]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov r13, qword [rbp - 0x80]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rdx, qword [rbp + 0x18]
cmp rdx, 8
jb 0x14000212f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000212a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000212a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006e64
xor edi, edi
mov qword [rbp + 0x10], rdi
mov qword [rbp + 0x18], 7
mov word [rbp], di
mov rdx, qword [rbp + 0x38]
cmp rdx, 8
jb 0x140002184
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000217f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000217f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006e64
mov qword [rbp + 0x30], rdi
mov qword [rbp + 0x38], 7
mov word [rbp + 0x20], di
mov rdx, qword [r13 + 0x18]
cmp rdx, 0x10
jb 0x1400021cf
mov rcx, qword [r13]
inc rdx
cmp rdx, 0x1000
jb 0x1400021ca
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002298
mov rcx, r8
call fcn.140006e64
mov qword [r13 + 0x10], rdi
mov qword [r13 + 0x18], 0xf
mov byte [r13], 0
mov rdx, qword [r12 + 0x18]
cmp rdx, 0x10
jb 0x14000221c
mov rcx, qword [r12]
inc rdx
cmp rdx, 0x1000
jb 0x140002217
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000229f
mov rcx, r8
call fcn.140006e64
mov qword [r12 + 0x10], rdi
mov qword [r12 + 0x18], 0xf
mov byte [r12], 0
mov rdx, qword [r15 + 0x18]
cmp rdx, 0x10
jb 0x140002265
inc rdx
mov rcx, qword [r15]
cmp rdx, 0x1000
jb 0x140002260
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400022a6
mov rcx, r8
call fcn.140006e64
mov qword [r15 + 0x10], rdi
mov qword [r15 + 0x18], 0xf
mov byte [r15], 0
mov rax, rbx
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.140006e40
add rsp, 0x158
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3