Function at 0x18005eda0
Capabilities:
Move file
Read http header
Receive http response

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x288], rbx
mov rax, qword [0x180141088]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov r13, r8
mov rsi, rdx
mov r15, rcx
mov qword [rsp + 0x50], r8
mov qword [rbp + 0x118], 0xf
xor r12d, r12d
mov qword [rbp + 0x110], r12
mov byte [rbp + 0x100], r12b
xor r8d, r8d
lea rdx, [0x1800fd01d]
lea rcx, [rbp + 0x100]
call fcn.180009ff0
nop
xor edx, edx
mov rcx, qword [r15 + 0x18]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x18005ee8f
lea rax, vtable.std::exception.0
mov qword [rbp + 0xb8], rax
xor eax, eax
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0xc8], rax
lea rax, str.DownloadResponse::WinHttpReceiveResponse_failed
mov qword [rsp + 0x78], rax
mov byte [rbp - 0x80], 1
lea rdx, [rbp + 0xc0]
lea rcx, [rsp + 0x78]
call fcn.1800b0358
lea rax, vtable.std::runtime_error.0
mov qword [rbp + 0xb8], rax
lea rdx, [0x18013e2c0]
lea rcx, [rbp + 0xb8]
call fcn.1800b26b0
int3
mov dword [rbp - 0x68], r12d
mov dword [rbp + 0xdc], 4
mov qword [rsp + 0x28], r12
lea rax, [rbp + 0xdc]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x68]
xor r8d, r8d
mov edx, 0x20000013
mov rcx, qword [r15 + 0x18]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x18005ef29
lea rax, vtable.std::exception.0
mov qword [rbp + 0xb8], rax
xor eax, eax
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0xc8], rax
lea rax, str.DownloadResponse::GetResponseWinHttpQueryHeaders_failed
mov qword [rsp + 0x78], rax
mov byte [rbp - 0x80], 1
lea rdx, [rbp + 0xc0]
lea rcx, [rsp + 0x78]
call fcn.1800b0358
lea rax, vtable.std::runtime_error.0
mov qword [rbp + 0xb8], rax
lea rdx, [0x18013e2c0]
lea rcx, [rbp + 0xb8]
call fcn.1800b26b0
int3
mov ecx, dword [rbp - 0x68]
mov eax, ecx
sub eax, 0xc8
je 0x18005f106
sub eax, 0xc9
je 0x18005f0a5
sub eax, 3
je 0x18005f044
cmp eax, 3
je 0x18005efe3
mov edx, ecx
lea rcx, [rbp + 0xb8]
call fcn.180057410
mov rbx, rax
mov qword [rbp + 0xf8], 0xf
mov qword [rbp + 0xf0], r12
mov byte [rbp + 0xe0], 0
mov r8d, 0x13
lea rdx, str.unkown_http_error__
lea rcx, [rbp + 0xe0]
call fcn.180009ff0
nop
mov r8, rbx
lea rdx, [rbp + 0xe0]
lea rcx, [rsp + 0x78]
call fcn.18002fb50
nop
lea r8, [0x1801021b8]
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.18000c8f0
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.180001440
lea rdx, [0x18013e2c0]
lea rcx, [rsp + 0x30]
call fcn.1800b26b0
nop
lea rax, vtable.std::exception.0
mov qword [rbp + 0xb8], rax
xor eax, eax
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0xc8], rax
lea rax, str.access_denied__407_
mov qword [rsp + 0x78], rax
mov byte [rbp - 0x80], 1
lea rdx, [rbp + 0xc0]
lea rcx, [rsp + 0x78]
call fcn.1800b0358
lea rax, vtable.std::runtime_error.0
mov qword [rbp + 0xb8], rax
lea rdx, [0x18013e2c0]
lea rcx, [rbp + 0xb8]
call fcn.1800b26b0
int3
lea rax, vtable.std::exception.0
mov qword [rbp + 0xb8], rax
xor eax, eax
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0xc8], rax
lea rax, str.resource_not_found__404_
mov qword [rsp + 0x78], rax
mov byte [rbp - 0x80], 1
lea rdx, [rbp + 0xc0]
lea rcx, [rsp + 0x78]
call fcn.1800b0358
lea rax, vtable.std::runtime_error.0
mov qword [rbp + 0xb8], rax
lea rdx, [0x18013e2c0]
lea rcx, [rbp + 0xb8]
call fcn.1800b26b0
int3
lea rax, vtable.std::exception.0
mov qword [rbp + 0xb8], rax
xor eax, eax
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0xc8], rax
lea rax, str.access_denied__401_
mov qword [rsp + 0x78], rax
mov byte [rbp - 0x80], 1
lea rdx, [rbp + 0xc0]
lea rcx, [rsp + 0x78]
call fcn.1800b0358
lea rax, vtable.std::runtime_error.0
mov qword [rbp + 0xb8], rax
lea rdx, [0x18013e2c0]
lea rcx, [rbp + 0xb8]
call fcn.1800b26b0
int3
xor r8d, r8d
lea rdx, [0x1800fd01d]
lea rcx, [rbp + 0x100]
call fcn.180009ff0
mov rdi, r12
lea r8, str..tmp
mov rdx, rsi
lea rcx, [rbp + 0xe0]
call fcn.18001b810
nop
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x60]
call fcn.1800b27a0
lea rdx, [rbp + 0xe0]
lea rcx, [rbp - 0x60]
call fcn.18005f4c0
nop
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
test byte [rbp + rcx - 0x50], 6
je 0x18005f1c8
lea rax, vtable.std::exception.0
mov qword [rbp + 0xb8], rax
xor eax, eax
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0xc8], rax
lea rax, str.DownloadResponse:_Unable_to_open_temporary_file.
mov qword [rsp + 0x78], rax
mov byte [rbp - 0x80], 1
lea rdx, [rbp + 0xc0]
lea rcx, [rsp + 0x78]
call fcn.1800b0358
lea rax, vtable.std::runtime_error.0
mov qword [rbp + 0xb8], rax
lea rdx, [0x18013e2c0]
lea rcx, [rbp + 0xb8]
call fcn.1800b26b0
int3
mov ebx, 0xa
mov dword [rbp + 0xb0], r12d
lea rdx, [rbp + 0xb0]
mov rcx, qword [r15 + 0x18]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x18005f43d
nop dword [rax]
mov eax, dword [rbp + 0xb0]
test eax, eax
je 0x18005f32c
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xb8], xmm0
mov qword [rbp + 0xc8], r12
lea edx, [rax + 1]
lea rcx, [rbp + 0xb8]
call fcn.18002d000
mov dword [rbp + 0xd8], r12d
lea r9, [rbp + 0xd8]
mov r8d, dword [rbp + 0xb0]
mov r14, qword [rbp + 0xb8]
mov rdx, r14
mov rcx, qword [r15 + 0x18]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x18005f2d7
mov eax, dword [rbp + 0xd8]
test eax, eax
je 0x18005f2c9
mov r8d, eax
mov rdx, r14
lea rcx, [rbp - 0x60]
call fcn.18002e1b0
mov eax, dword [rbp + 0xd8]
add rdi, rax
mov rcx, qword [r13 + 0x38]
test rcx, rcx
je 0x18005f298
test ebx, ebx
jne 0x18005f296
mov ebx, 0xa
mov qword [rsp + 0x78], rdi
mov rax, qword [rcx]
lea rdx, [rsp + 0x78]
call qword [rax + 0x10]
jmp 0x18005f298
dec ebx
lea rcx, [rbp + 0xb8]
call fcn.180024260
mov dword [rbp + 0xb0], r12d
lea rdx, [rbp + 0xb0]
mov rcx, qword [r15 + 0x18]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x18005f1f0
jmp 0x18005f43d
lea rcx, [rbp + 0xb8]
call fcn.180024260
jmp 0x18005f32c
lea rax, vtable.std::exception.0
mov qword [rsp + 0x30], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
lea rax, str.DownloadResponse::WinHttpReadData_failed
mov qword [rsp + 0x78], rax
mov byte [rbp - 0x80], 1
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x78]
call fcn.1800b0358
lea rax, vtable.std::runtime_error.0
mov qword [rsp + 0x30], rax
lea rdx, [0x18013e2c0]
lea rcx, [rsp + 0x30]
call fcn.1800b26b0
nop
lea rcx, [rbp - 0x58]
call fcn.18001a800
test rax, rax
jne 0x18005f364
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea r9, [rbp - 0x60]
add rcx, r9
mov eax, dword [rcx + 0x10]
or eax, 2
mov edx, eax
or edx, 4
cmp qword [rcx + 0x48], 0
cmovne edx, eax
xor r8d, r8d
call fcn.180001e80
cmp qword [rsi + 0x18], 0x10
jb 0x18005f370
mov rcx, qword [rsi]
jmp 0x18005f373
mov rcx, rsi
call fcn.1800c13d0
cmp qword [rsi + 0x18], 0x10
jb 0x18005f382
mov rsi, qword [rsi]
lea rcx, [rbp + 0xe0]
cmp qword [rbp + 0xf8], 0x10
cmovae rcx, qword [rbp + 0xe0]
mov rdx, rsi
call fcn.1800c6864
test eax, eax
je 0x18005f3fa
lea rax, vtable.std::exception.0
mov qword [rsp + 0x30], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
lea rax, str.DownloadResponse:_Unable_to_rename_temporaryFile.
mov qword [rsp + 0x78], rax
mov byte [rbp - 0x80], 1
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x78]
call fcn.1800b0358
lea rax, vtable.std::runtime_error.0
mov qword [rsp + 0x30], rax
lea rdx, [0x18013e2c0]
lea rcx, [rsp + 0x30]
call fcn.1800b26b0
nop
lea rcx, [rbp + 0x48]
call fcn.1800322d0
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x48], rax
lea rcx, [rbp + 0x48]
call fcn.1800acb4c
nop
lea rcx, [rbp + 0xe0]
call fcn.1800077c0
nop
lea rcx, [rbp + 0x100]
call fcn.1800077c0
nop
mov rcx, r13
call fcn.180054f60
jmp 0x18005f492
lea rax, vtable.std::exception.0
mov qword [rsp + 0x30], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
lea rax, str.DownloadResponse::WinHttpQueryDataAvailable_failed
mov qword [rsp + 0x78], rax
mov byte [rbp - 0x80], 1
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x78]
call fcn.1800b0358
lea rax, vtable.std::runtime_error.0
mov qword [rsp + 0x30], rax
lea rdx, [0x18013e2c0]
lea rcx, [rsp + 0x30]
call fcn.1800b26b0
nop
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.1800ae8d0
mov rbx, qword [rsp + 0x288]
add rsp, 0x230
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret