Function at 0x180007660
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 [0x18003f1b0]
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.180009da4
mov rsi, rax
test r14, r14
je 0x180007701
mov rbx, qword [rax + 0x18]
mov rcx, r14
call fcn.18000b78c
mov qword [rsi + 0x18], rax
test rbx, rbx
je 0x180007701
mov rcx, rbx
call fcn.180009de8
lea rcx, str.lum_sdk_1.451.47
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 0x180007982
test r15, r15
jne 0x18000774e
lea rdx, [0x180008430]
xor r9d, r9d
mov r8d, 0x610800
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp rax, 0xffffffffffffffff
je 0x180007982
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.180009c44
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
test rdi, rdi
je 0x180007982
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 0x180007982
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 0x180007982
test r14, r14
je 0x180007828
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 0x180007982
mov r9, qword [rsi + 0x18]
test r9, r9
je 0x18000783f
mov rcx, r12
inc rcx
cmp byte [r9 + rcx], bpl
jne 0x180007834
jmp 0x180007842
mov rcx, r13
test r9, r9
je 0x18000785b
mov rax, r12
nop word [rax + rax]
inc rax
cmp byte [r9 + rax], bpl
jne 0x180007850
jmp 0x18000785e
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 0x180007982
test r15, r15
jne 0x18000788e
xor eax, eax
jmp 0x18000799a
mov rcx, qword [rsi + 0x10]
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x180007982
mov rdx, r13
lea rcx, [0x180031f80]
nop dword [rax]
movzx eax, word [rdx + rcx]
lea rdx, [rdx + 2]
mov word [rsp + rdx + 0x66], ax
test ax, ax
jne 0x1800078b0
lea rcx, [rsp + 0x68]
call fcn.180006de0
lea rdx, [rsp + 0x68]
mov rcx, r15
call fcn.180008200
mov rbp, rax
test rax, rax
je 0x180007982
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 0x180007982
nop word [rax + rax]
mov rbx, qword [rsp + 0x40]
xor ecx, ecx
lea rdx, [rbx + 1]
call fcn.18000c208
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 0x180007982
mov r8, qword [rsp + 0x48]
mov r9, rbp
mov edx, 1
mov rcx, rdi
call fcn.180009468
mov rcx, qword [rsp + 0x48]
cmp rax, rcx
jne 0x180007982
test rcx, rcx
je 0x18000797f
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 0x180007910
jmp 0x180007982
mov r12d, r13d
mov rcx, rsi
call fcn.1800083a0
test rbp, rbp
je 0x180007997
mov rcx, rbp
call fcn.18000cb34
mov eax, r12d
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18000a0d0
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret