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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x198
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.Matrix_Easy_Setup_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x140004396
xor r9d, r9d
mov r8w, 0x50
lea rdx, str.matrixhubs.shop
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x14000438a
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x1a0]
lea rdx, [0x140043800]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14000437e
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x14000434f
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x14000432a
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 0x20
mov rdx, qword [rsp + 0x1a8]
lea rcx, [rsp + 0x80]
call fcn.140005b70
nop
mov rax, qword [rsp + 0x80]
movsxd rax, dword [rax + 4]
lea rax, [rsp + rax + 0x80]
mov rcx, rax
call fcn.140003870
movzx eax, al
test eax, eax
je 0x1400041c9
lea rdx, str.Cannot_open_file_for_writing:
lea rcx, [0x14004b800]
call fcn.14000b270
mov rdx, qword [rsp + 0x1a8]
mov rcx, rax
call fcn.14000b5d0
lea rdx, [0x14000b620]
mov rcx, rax
call fcn.140004800
nop
mov dword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
nop
cmp dword [rsp + 0x40], 0
jbe 0x140004301
mov eax, dword [rsp + 0x40]
mov ecx, eax
call fcn.140011500
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14000423e
lea rdx, str.Out_of_memory
lea rcx, [0x14004b800]
call fcn.14000b270
lea rdx, [0x14000b620]
mov rcx, rax
call fcn.140004800
mov dword [rsp + 0x40], 0
jmp 0x140004301
mov eax, dword [rsp + 0x40]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x58]
call fcn.140035c40
nop
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1400042c9
mov eax, dword [rsp + 0x48]
mov r8d, eax
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x80]
call fcn.140005c00
lea rdx, str.Downloaded:
lea rcx, [0x14004b660]
call fcn.14000b270
mov edx, dword [rsp + 0x48]
mov rcx, rax
call fcn.140004630
lea rdx, str._bytes
mov rcx, rax
call fcn.14000b270
lea rdx, [0x14000b620]
mov rcx, rax
call fcn.140004800
nop
jmp 0x1400042ec
lea rdx, str.Error_reading_data
lea rcx, [0x14004b800]
call fcn.14000b270
lea rdx, [0x14000b620]
mov rcx, rax
call fcn.140004800
nop
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x78]
call fcn.1400114bc
nop
cmp dword [rsp + 0x40], 0
ja 0x1400041c9
lea rcx, [rsp + 0x80]
call fcn.140005a90
nop
lea rcx, [rsp + 0x80]
call fcn.1400043a0
nop
jmp 0x14000434d
lea rdx, str.Error_receiving_response.
lea rcx, [0x14004b800]
call fcn.14000b270
lea rdx, [0x14000b620]
mov rcx, rax
call fcn.140004800
nop
jmp 0x140004372
lea rdx, str.Error_sending_request.
lea rcx, [0x14004b800]
call fcn.14000b270
lea rdx, [0x14000b620]
mov rcx, rax
call fcn.140004800
nop
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
add rsp, 0x198
ret