Function at 0x140002f80
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x2e0], rbx
mov rax, qword [0x14005c4f0]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x58], rcx
xor r13d, r13d
mov dword [rsp + 0x30], r13d
mov byte [rbp + 0x80], r13b
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp + 0x81]
call fcn.140031070
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
mov r9d, 0x104
lea r8, [rbp + 0x80]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToCacheFileA]
mov ebx, eax
test eax, eax
jns 0x14000308d
lea rcx, str.Failed_to_download_file._Error:
call fcn.140009e70
mov rcx, rax
mov edx, ebx
call fcn.140003960
mov rsi, rax
mov dl, 0xa
mov rcx, rax
call fcn.140003b40
mov ebx, r13d
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
test byte [rcx + rsi + 0x10], 6
jne 0x140003059
mov rcx, qword [rcx + rsi + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove ebx, ecx
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
add rcx, rsi
test ebx, ebx
je 0x14000307d
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], r13
jne 0x140003075
or edx, 4
xor r8d, r8d
call fcn.140001c90
mov qword [rdi], r13
mov qword [rdi + 8], r13
mov qword [rdi + 0x10], r13
jmp 0x140003352
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x70]
call fcn.140004850
nop
mov rcx, qword [rsp + 0x70]
movsxd rax, dword [rcx + 4]
test byte [rbp + rax - 0x80], 6
je 0x14000312c
lea rcx, str.Failed_to_open_cache_file.
call fcn.140009e70
mov rbx, rax
mov dl, 0xa
mov rcx, rax
call fcn.140003b40
mov esi, r13d
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rbx + 0x10], 6
jne 0x1400030ef
mov rcx, qword [rcx + rbx + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove esi, ecx
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
test esi, esi
je 0x140003114
mov edx, dword [rcx + 0x10]
or edx, esi
cmp qword [rcx + 0x48], 0
jne 0x14000310c
or edx, 4
xor r8d, r8d
call fcn.140001c90
mov qword [rdi], r13
mov qword [rdi + 8], r13
mov qword [rdi + 0x10], r13
mov dword [rsp + 0x30], 1
jmp 0x140003335
movsxd rax, dword [rcx + 4]
test byte [rbp + rax - 0x80], 6
jne 0x140003169
mov rcx, qword [rbp + rax - 0x48]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 1
mov r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0x38]
call qword [rax + 0x50]
mov rcx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
jmp 0x140003173
mov rdx, qword [0x140049568]
mov rax, r13
movsxd rbx, eax
add rbx, rdx
movsxd rax, dword [rcx + 4]
test byte [rbp + rax - 0x80], 6
jne 0x1400031df
movsxd rax, dword [rcx + 4]
mov rcx, qword [rbp + rax - 0x48]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x38]
call qword [rax + 0x50]
movsxd r11, dword [rsp + 0x40]
add r11, qword [rsp + 0x38]
cmp r11, qword [0x140049568]
jne 0x1400031df
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rcx, [rsp + rcx + 0x70]
mov edx, dword [rcx + 0x10]
or edx, 2
cmp qword [rcx + 0x48], 0
jne 0x1400031d7
or edx, 4
xor r8d, r8d
call fcn.140001c90
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r13
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140006630
nop
mov r8, rbx
mov rbx, qword [rsp + 0x38]
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.140003e70
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
test byte [rdx + rax + 0x10], 6
je 0x1400032b1
lea rcx, str.Failed_to_read_cache_file.
call fcn.140009e70
mov rsi, rax
mov dl, 0xa
mov rcx, rax
call fcn.140003b40
mov r12d, r13d
mov rcx, qword [rsi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rsi + 0x10], 6
jne 0x140003264
mov rcx, qword [rcx + rsi + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove r12d, ecx
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
add rcx, rsi
test r12d, r12d
je 0x14000328b
mov edx, dword [rcx + 0x10]
or edx, r12d
cmp qword [rcx + 0x48], 0
jne 0x140003283
or edx, 4
xor r8d, r8d
call fcn.140001c90
mov qword [rdi], r13
mov qword [rdi + 8], r13
mov qword [rdi + 0x10], r13
mov dword [rsp + 0x30], 1
test rbx, rbx
je 0x1400032ac
mov rcx, rbx
call fcn.14002ef24
nop
jmp 0x140003335
lea rcx, [rbp - 0x80]
call fcn.140006810
test rax, rax
jne 0x1400032e5
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rcx, [rsp + rcx + 0x70]
mov edx, dword [rcx + 0x10]
or edx, 2
cmp qword [rcx + 0x48], 0
jne 0x1400032dd
or edx, 4
xor r8d, r8d
call fcn.140001c90
lea rcx, [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov qword [rdi], r13
mov qword [rdi + 8], r13
mov qword [rdi + 0x10], r13
lea rax, [rsp + 0x38]
cmp rdi, rax
je 0x14000331f
mov qword [rdi], rbx
mov rax, qword [rsp + 0x40]
mov qword [rdi + 8], rax
mov rax, qword [rsp + 0x48]
mov qword [rdi + 0x10], rax
mov rbx, r13
mov dword [rsp + 0x30], 1
test rbx, rbx
je 0x140003335
mov rcx, rbx
call fcn.14002ef24
nop
lea rcx, [rbp + 0x20]
call fcn.140004990
lea r11, vtable.std::ios_base.0
mov qword [rbp + 0x20], r11
lea rcx, [rbp + 0x20]
call fcn.14000b570
mov rax, rdi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14002d740
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x2a0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret