Function at 0x18002f8a0
Capabilities:
Check if file exists
Delete file
Download url
Get common file path
Receive data

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xb30]
sub rsp, 0xc30
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x180142d48]
xor rax, rsp
mov qword [rbp + 0xb20], rax
mov rdi, rdx
mov rsi, rcx
xor r15d, r15d
mov dword [rsp + 0x30], r15d
test rdx, rdx
je 0x18002fc70
cmp word [rdx], r15w
je 0x18002fc70
mov ebx, r15d
test r8, r8
je 0x18002f940
cmp word [r8], bx
je 0x18002f940
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor ecx, ecx
call sub.urlmon.dll_URLDownloadToFileW
mov r14d, eax
test eax, eax
jns 0x18002f989
mov r8d, r14d
mov rdx, rdi
mov rcx, rsi
call fcn.180030410
mov r8, rdi
mov edx, r14d
lea rcx, str.Statistic_ret:_d__url:_s
call fcn.1800121f0
mov eax, ebx
jmp 0x18002fc72
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp + 0x300]
call fcn.18009b170
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r15d
mov r9d, 0x104
lea r8, [rbp + 0x300]
mov rdx, rdi
xor ecx, ecx
call sub.urlmon.dll_URLDownloadToCacheFileW
mov r14d, eax
test eax, eax
js 0x18002f919
lea rcx, [rbp + 0x300]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, 1
cmp dword [rsi + 0x30], r15d
je 0x18002f927
mov dword [rsi + 0x30], r15d
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xf0]
call fcn.18009b170
xor r9d, r9d
lea r8d, [rbx + 0x19]
lea rdx, [rbp + 0xf0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x18002f927
lea rdx, str.ludashi_stat_tray.stat.info
lea rcx, [rbp + 0xf0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rbp + 0xf0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18002f927
mov qword [rbp + 0xe0], r15
mov qword [rbp + 0xe8], 0xf
mov byte [rbp + 0xd0], r15b
lea rax, [0x1800f93d8]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x30], ebx
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp], rax
mov dword [rbp - 4], 0x98
mov qword [rsp + 0x58], r15
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rbp]
call fcn.180032bf0
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x4c], edx
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.18002e650
nop
lea r9d, [rbx + 0x3f]
mov r8d, ebx
lea rdx, [rbp + 0xf0]
lea rcx, [rsp + 0x60]
call fcn.180032d20
mov ebx, 6
lea r12d, [rbx - 4]
test rax, rax
jne 0x18002facc
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov eax, ebx
cmp qword [rbp + rcx - 0x68], 0
cmovne eax, r12d
or eax, dword [rsp + rcx + 0x60]
and eax, 0x17
mov dword [rsp + rcx + 0x60], eax
mov edx, dword [rsp + rcx + 0x64]
and edx, eax
jne 0x18002fc99
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
test byte [rsp + rcx + 0x60], 6
jne 0x18002fbd3
lea rax, [rsp + 0x50]
add rcx, rax
mov dl, 0xa
call fcn.18001d5f0
movzx r8d, al
lea rdx, [rbp + 0xd0]
lea rcx, [rsp + 0x50]
call fcn.18002e350
lea rcx, [rbp + 0xd0]
cmp qword [rbp + 0xe8], 0x10
cmovae rcx, qword [rbp + 0xd0]
lea rdx, str.http:__s.ludashi.com_url
call fcn.18009b940
test rax, rax
je 0x18002fbbf
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp + 0x710]
call fcn.18009b170
lea rdx, [rbp + 0xd0]
cmp qword [rbp + 0xe8], 0x10
cmovae rdx, qword [rbp + 0xd0]
lea rcx, [rsp + 0x38]
call fcn.180011df0
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r15d
mov r9d, 0x104
lea r8, [rbp + 0x710]
mov rdx, qword [rax]
xor ecx, ecx
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
setns sil
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x18002fbad
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test sil, sil
je 0x18002fbbf
lea rcx, [rbp + 0x710]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
test byte [rsp + rcx + 0x60], 6
je 0x18002fae0
lea rcx, [rsp + 0x60]
call fcn.18001c820
test rax, rax
jne 0x18002fc0c
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
cmp qword [rbp + rcx - 0x68], 0
cmovne ebx, r12d
or ebx, dword [rsp + rcx + 0x60]
and ebx, 0x17
mov dword [rsp + rcx + 0x60], ebx
mov eax, dword [rsp + rcx + 0x64]
and eax, ebx
jne 0x18002fcf0
lea rcx, [rbp + 0xf0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
lea rcx, [rsp + 0x50]
call fcn.18002eab0
nop
mov ebx, 1
mov rdx, qword [rbp + 0xe8]
cmp rdx, 0x10
jb 0x18002f927
inc rdx
mov rcx, qword [rbp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002fc66
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002fc93
call fcn.180050640
jmp 0x18002f927
xor eax, eax
mov rcx, qword [rbp + 0xb20]
xor rcx, rsp
call fcn.180050ad0
add rsp, 0xc30
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.18009e27c
nop
test dl, 4
je 0x18002fca7
lea rbx, [0x1800f4c80]
jmp 0x18002fcbc
test r12b, dl
lea rbx, [0x1800f4c98]
lea rax, [0x1800f4cb0]
cmove rbx, rax
mov edx, 1
lea rcx, [rbp + 0x60]
call fcn.18000ece0
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0x80]
call fcn.18000ea40
lea rdx, [0x18013e0d8]
lea rcx, [rbp + 0x80]
call fcn.18009ac04
nop
test al, 4
je 0x18002fcfd
lea rbx, [0x1800f4c80]
jmp 0x18002fd11
test al, 2
lea rbx, [0x1800f4c98]
lea rax, [0x1800f4cb0]
cmove rbx, rax
mov edx, 1
lea rcx, [rbp + 0x70]
call fcn.18000ece0
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0xa8]
call fcn.18000ea40
lea rdx, [0x18013e0d8]
lea rcx, [rbp + 0xa8]
call fcn.18009ac04
int3