Function at 0x140001310
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x180], rax
xor r9d, r9d
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor r12d, r12d
lea r13d, [r12 + 0xa]
test eax, eax
js 0x14000175d
mov qword [rsp + 0x50], r12
lea rax, [rsp + 0x70]
mov qword [rsp + 0x60], r12
mov rdx, 0xffffffffffffffff
mov qword [rsp + 0x68], 7
inc rdx
cmp word [rax + rdx*2], r12w
jne 0x140001393
lea rcx, [rsp + 0x50]
cmp rdx, 7
ja 0x1400013c6
lea rbx, [rdx + rdx]
mov qword [rsp + 0x60], rdx
mov r8, rbx
lea rdx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memmove
mov word [rsp + rbx + 0x50], r12w
jmp 0x1400013d0
lea r9, [rsp + 0x70]
call fcn.140002000
mov rcx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x60]
mov rax, rcx
sub rax, rdi
cmp rax, 8
jb 0x140001421
cmp rcx, 8
lea rax, [rdi + 8]
lea rbx, [rsp + 0x50]
mov qword [rsp + 0x60], rax
cmovae rbx, qword [rsp + 0x50]
lea rdx, str._anadius
mov r8d, 0x10
lea rcx, [rbx + rdi*2]
call sub.VCRUNTIME140.dll_memmove
lea rax, [rsp + 0x50]
mov word [rbx + rdi*2 + 0x10], r12w
jmp 0x140001439
mov edx, 8
mov qword [rsp + 0x20], 8
lea rcx, [rsp + 0x50]
call fcn.140002170
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x40], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x1400014ae
mov rcx, qword [rsp + 0x50]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400014a9
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400014a9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400023bc
cmp qword [rsp + 0x48], 8
lea rcx, [rsp + 0x30]
cmovae rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140001514
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140001514
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
lea rdx, str.Erreur_lors_de_la_cr
call fcn.140001df0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140001fc0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
jmp 0x140001718
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.Dossier_anadius_cr
call fcn.140001df0
lea rdx, [0x140001fc0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov r14, qword [rsp + 0x40]
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, r14
cmp rax, 0x13
jb 0x140001d76
cmp qword [rsp + 0x48], 8
lea r15, [rsp + 0x30]
lea rsi, [r14 + 0x13]
mov qword [rsp + 0x50], r12
cmovae r15, qword [rsp + 0x30]
lea rdi, [rsp + 0x50]
mov ebx, 7
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
cmp rsi, rbx
jbe 0x14000160f
mov rbx, rsi
movabs rax, 0x7fffffffffffffff
or rbx, 7
cmp rbx, rcx
jbe 0x1400015ac
mov rbx, rcx
lea rcx, [rax + rax]
jmp 0x1400015cc
cmp rbx, r13
cmovb rbx, r13
lea rcx, [rbx + 1]
cmp rcx, rax
ja 0x140001d70
add rcx, rcx
cmp rcx, 0x1000
jb 0x1400015f8
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001d70
mov rcx, rax
call fcn.140002380
test rax, rax
je 0x14000170c
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14000160a
test rcx, rcx
je 0x140001607
call fcn.140002380
mov rdi, rax
jmp 0x14000160a
mov rdi, r12
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x68], rbx
mov rdx, r15
lea rbx, [r14 + r14]
mov qword [rsp + 0x60], rsi
mov r8, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
movups xmm0, xmmword [str.EA_DLC_Unlocker_v2]
lea rcx, [rsp + 0x50]
movups xmmword [rdi + rbx], xmm0
movups xmm1, xmmword [0x140004530]
movups xmmword [rdi + rbx + 0x10], xmm1
mov eax, dword [0x140004540]
mov dword [rdi + rbx + 0x20], eax
movzx eax, word [0x140004544]
mov word [rdi + rbx + 0x24], ax
mov word [rdi + rsi*2], r12w
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400016b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1400016b0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
lea rdx, str.Erreur_lors_de_la_cr
call fcn.140001df0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int____ptr64]
jmp 0x1400016c3
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.Sous_dossier_EA_DLC_Unlocker_v2_cr
call fcn.140001df0
lea rdx, [0x140001fc0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140001718
mov rcx, qword [rsp + 0x50]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001713
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001713
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400023bc
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14000175d
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001758
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001758
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400023bc
lea r9, str.taskkill__F__IM_EABackgroundService.exe
mov qword [rsp + 0x30], r12
mov edx, 0x27
mov qword [rsp + 0x40], r12
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x48], 7
call fcn.140002000
lea rcx, [rsp + 0x30]
call fcn.1400011c0
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1400017d5
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400017d0
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400017d0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400023bc
lea r9, str.taskkill__F__IM_EADesktop.exe
mov qword [rsp + 0x30], r12
mov edx, 0x1d
mov qword [rsp + 0x40], r12
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x48], 7
call fcn.140002000
lea rcx, [rsp + 0x30]
call fcn.1400011c0
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14000184d
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001848
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001848
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400023bc
lea r9, str.taskkill__F__IM_EACefSubProcess.exe
mov qword [rsp + 0x30], r12
mov edx, 0x23
mov qword [rsp + 0x40], r12
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x48], 7
call fcn.140002000
lea rcx, [rsp + 0x30]
call fcn.1400011c0
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1400018c5
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400018c0
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400018c0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400023bc
lea r9, str.version.dll
mov qword [rsp + 0x30], r12
mov edx, 0xb
mov qword [rsp + 0x40], r12
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x48], 7
call fcn.140002000
cmp qword [rsp + 0x48], 8
lea rcx, [rsp + 0x30]
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rdx, qword [rsp + 0x48]
cmp eax, 0xffffffff
setne bl
cmp rdx, 8
jb 0x140001950
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000194b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000194b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400023bc
mov qword [rsp + 0x30], r12
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], 7
test bl, bl
je 0x1400019cb
lea r9, str.cmd__c_copy_version.dll__C:Program_FilesElectronic_ArtsEA_DesktopEA_Desktop_
mov edx, 0x51
call fcn.140002000
lea rcx, [rsp + 0x30]
call fcn.1400011c0
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140001a2b
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001a26
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001a26
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea r9, str.cmd__c_copy___appdata__anadius_version.dll___C:Program_FilesElectronic_ArtsEA_DesktopEA_Desktop_
mov edx, 0x65
call fcn.140002000
lea rcx, [rsp + 0x30]
call fcn.1400011c0
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140001a2b
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001a26
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001a26
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400023bc
lea r9, str.version.dll
mov qword [rsp + 0x30], r12
mov edx, 0xb
mov qword [rsp + 0x40], r12
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x48], 7
call fcn.140002000
cmp qword [rsp + 0x48], 8
lea rcx, [rsp + 0x30]
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rdx, qword [rsp + 0x48]
cmp eax, 0xffffffff
setne bl
cmp rdx, 8
jb 0x140001ab6
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001ab1
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001ab1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400023bc
test bl, bl
je 0x140001b32
lea r9, str.cmd__c_copy_version.dll___appdata__anadius_
mov qword [rsp + 0x30], r12
mov edx, 0x2c
mov qword [rsp + 0x40], r12
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x48], 7
call fcn.140002000
lea rcx, [rsp + 0x30]
call fcn.1400011c0
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140001b32
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001b2d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001b2d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400023bc
lea r9, str.config.ini
mov qword [rsp + 0x30], r12
mov rdx, r13
mov qword [rsp + 0x40], r12
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x48], 7
call fcn.140002000
cmp qword [rsp + 0x48], 8
lea rcx, [rsp + 0x30]
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rdx, qword [rsp + 0x48]
cmp eax, 0xffffffff
setne bl
cmp rdx, 8
jb 0x140001bbb
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001bb6
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001bb6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400023bc
test bl, bl
je 0x140001c37
lea r9, str.cmd__c_copy_config.ini___appdata__anadiusEA_DLC_Unlocker_v2_
mov qword [rsp + 0x30], r12
mov edx, 0x3d
mov qword [rsp + 0x40], r12
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x48], 7
call fcn.140002000
lea rcx, [rsp + 0x30]
call fcn.1400011c0
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140001c37
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001c32
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001c32
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400023bc
lea r9, str.g_The_Sims_4.ini
mov qword [rsp + 0x30], r12
mov edx, 0x10
mov qword [rsp + 0x40], r12
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x48], 7
call fcn.140002000
cmp qword [rsp + 0x48], 8
lea rcx, [rsp + 0x30]
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rdx, qword [rsp + 0x48]
cmp eax, 0xffffffff
setne bl
cmp rdx, 8
jb 0x140001cc2
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001cbd
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001cbd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400023bc
test bl, bl
je 0x140001d3e
lea r9, str.cmd__c_copy__g_The_Sims_4.ini____appdata__anadiusEA_DLC_Unlocker_v2_
mov qword [rsp + 0x30], r12
mov edx, 0x45
mov qword [rsp + 0x40], r12
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x48], 7
call fcn.140002000
lea rcx, [rsp + 0x30]
call fcn.1400011c0
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140001d3e
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001d39
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001d39
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400023bc
xor eax, eax
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140002360
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140001100
int3
call fcn.1400011a0
int3