Function at 0x18002fe50
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 [0x180143158]
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 0x180030220
cmp word [rdx], r15w
je 0x180030220
mov ebx, r15d
test r8, r8
je 0x18002fef0
cmp word [r8], bx
je 0x18002fef0
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor ecx, ecx
call sub.urlmon.dll_URLDownloadToFileW
mov r14d, eax
test eax, eax
jns 0x18002ff39
mov r8d, r14d
mov rdx, rdi
mov rcx, rsi
call fcn.1800309c0
mov r8, rdi
mov edx, r14d
lea rcx, str.Statistic_ret:_d__url:_s
call fcn.1800127a0
mov eax, ebx
jmp 0x180030222
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp + 0x300]
call fcn.18009b770
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 0x18002fec9
lea rcx, [rbp + 0x300]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, 1
cmp dword [rsi + 0x30], r15d
je 0x18002fed7
mov dword [rsi + 0x30], r15d
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xf0]
call fcn.18009b770
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 0x18002fed7
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 0x18002fed7
mov qword [rbp + 0xe0], r15
mov qword [rbp + 0xe8], 0xf
mov byte [rbp + 0xd0], r15b
lea rax, [0x1800f9438]
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.1800331a0
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.18002ec00
nop
lea r9d, [rbx + 0x3f]
mov r8d, ebx
lea rdx, [rbp + 0xf0]
lea rcx, [rsp + 0x60]
call fcn.1800332d0
mov ebx, 6
lea r12d, [rbx - 4]
test rax, rax
jne 0x18003007c
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 0x180030249
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
test byte [rsp + rcx + 0x60], 6
jne 0x180030183
lea rax, [rsp + 0x50]
add rcx, rax
mov dl, 0xa
call fcn.18001dba0
movzx r8d, al
lea rdx, [rbp + 0xd0]
lea rcx, [rsp + 0x50]
call fcn.18002e900
lea rcx, [rbp + 0xd0]
cmp qword [rbp + 0xe8], 0x10
cmovae rcx, qword [rbp + 0xd0]
lea rdx, str.http:__s.ludashi.com_url
call fcn.18009bf40
test rax, rax
je 0x18003016f
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp + 0x710]
call fcn.18009b770
lea rdx, [rbp + 0xd0]
cmp qword [rbp + 0xe8], 0x10
cmovae rdx, qword [rbp + 0xd0]
lea rcx, [rsp + 0x38]
call fcn.1800123a0
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 0x18003015d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test sil, sil
je 0x18003016f
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 0x180030090
lea rcx, [rsp + 0x60]
call fcn.18001cdd0
test rax, rax
jne 0x1800301bc
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 0x1800302a0
lea rcx, [rbp + 0xf0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
lea rcx, [rsp + 0x50]
call fcn.18002f060
nop
mov ebx, 1
mov rdx, qword [rbp + 0xe8]
cmp rdx, 0x10
jb 0x18002fed7
inc rdx
mov rcx, qword [rbp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180030216
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180030243
call fcn.180050b00
jmp 0x18002fed7
xor eax, eax
mov rcx, qword [rbp + 0xb20]
xor rcx, rsp
call fcn.180050f90
add rsp, 0xc30
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.18009e87c
nop
test dl, 4
je 0x180030257
lea rbx, [0x1800f4c80]
jmp 0x18003026c
test r12b, dl
lea rbx, [0x1800f4c98]
lea rax, [0x1800f4cb0]
cmove rbx, rax
mov edx, 1
lea rcx, [rbp + 0x60]
call fcn.18000f290
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0x80]
call fcn.18000eff0
lea rdx, [0x18013e3d8]
lea rcx, [rbp + 0x80]
call fcn.18009b204
nop
test al, 4
je 0x1800302ad
lea rbx, [0x1800f4c80]
jmp 0x1800302c1
test al, 2
lea rbx, [0x1800f4c98]
lea rax, [0x1800f4cb0]
cmove rbx, rax
mov edx, 1
lea rcx, [rbp + 0x70]
call fcn.18000f290
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0xa8]
call fcn.18000eff0
lea rdx, [0x18013e3d8]
lea rcx, [rbp + 0xa8]
call fcn.18009b204
int3