Function at 0x180007250
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Set http header
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x18003d1b0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r15, qword [rsp + 0x108]
mov r14, qword [rsp + 0x100]
mov r13d, edx
xor edx, edx
mov qword [rsp + 0x40], rcx
lea rcx, str.application_octet_stream
mov eax, edx
mov ebp, edx
mov dword [rsp + 0x50], edx
or r12, 0xffffffffffffffff
test r15, r15
mov edi, 0x10000000
cmovne rax, rcx
cmovne edi, edx
lea edx, [rbp + 1]
lea ecx, [rbp + 0x20]
mov qword [rsp + 0x60], r9
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x48], rax
call fcn.180009994
mov rsi, rax
test r14, r14
je 0x1800072f1
mov rbx, qword [rax + 0x18]
mov rcx, r14
call fcn.18000b37c
mov qword [rsi + 0x18], rax
test rbx, rbx
je 0x1800072f1
mov rcx, rbx
call fcn.1800099d8
lea rcx, str.lum_sdk_1.415.467
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], edi
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsi], rax
test rax, rax
je 0x180007572
test r15, r15
jne 0x18000733e
lea rdx, [0x180008020]
xor r9d, r9d
mov r8d, 0x610800
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp rax, 0xffffffffffffffff
je 0x180007572
mov r9d, 4
mov dword [rsp + 0x50], 0x800
mov rcx, qword [rsi]
lea edx, [r9 + 0x50]
lea r8, [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
movsxd rdi, eax
call fcn.180009834
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
test rdi, rdi
je 0x180007572
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsi]
mov ebx, 0x1bb
mov r8d, 0x50
cmp r13d, ebx
cmove r8w, bx
xor r9d, r9d
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rcx, rax
mov qword [rsi + 8], rax
test rax, rax
je 0x180007572
mov r8, qword [rsp + 0x58]
xor eax, eax
mov edx, 0x800000
cmp r13d, ebx
cmove eax, edx
mov rdx, qword [rsp + 0x60]
xor r13d, r13d
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rsi + 0x10], rax
test rax, rax
je 0x180007572
test r14, r14
je 0x180007418
lea rdx, str.Content_Type:_application_x_www_form_urlencoded
mov r9d, 0x20000000
or r8d, 0xffffffff
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x180007572
mov r9, qword [rsi + 0x18]
test r9, r9
je 0x18000742f
mov rcx, r12
inc rcx
cmp byte [r9 + rcx], bpl
jne 0x180007424
jmp 0x180007432
mov rcx, r13
test r9, r9
je 0x18000744b
mov rax, r12
nop word [rax + rax]
inc rax
cmp byte [r9 + rax], bpl
jne 0x180007440
jmp 0x18000744e
mov rax, r13
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsi + 0x10]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], eax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x180007572
test r15, r15
jne 0x18000747e
xor eax, eax
jmp 0x18000758a
mov rcx, qword [rsi + 0x10]
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x180007572
mov rdx, r13
lea rcx, [0x180030ef0]
nop dword [rax]
movzx eax, word [rdx + rcx]
lea rdx, [rdx + 2]
mov word [rsp + rdx + 0x66], ax
test ax, ax
jne 0x1800074a0
lea rcx, [rsp + 0x68]
call fcn.1800069d0
lea rdx, [rsp + 0x68]
mov rcx, r15
call fcn.180007df0
mov rbp, rax
test rax, rax
je 0x180007572
mov rcx, qword [rsi + 0x10]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r13
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x180007572
nop word [rax + rax]
mov rbx, qword [rsp + 0x40]
xor ecx, ecx
lea rdx, [rbx + 1]
call fcn.18000bdf8
mov rcx, qword [rsi + 0x10]
lea r9, [rsp + 0x48]
mov rdx, rax
mov r8d, ebx
mov rdi, rax
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x180007572
mov r8, qword [rsp + 0x48]
mov r9, rbp
mov edx, 1
mov rcx, rdi
call fcn.180009058
mov rcx, qword [rsp + 0x48]
cmp rax, rcx
jne 0x180007572
test rcx, rcx
je 0x18000756f
mov rcx, qword [rsi + 0x10]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r13
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x180007500
jmp 0x180007572
mov r12d, r13d
mov rcx, rsi
call fcn.180007f90
test rbp, rbp
je 0x180007587
mov rcx, rbp
call fcn.18000c724
mov eax, r12d
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180009cc0
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret