Function at 0x140002fd0
Capabilities:
Create directory
Get common file path
Get startup folder
Write file on windows
Write file to startup folder

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
xor r9d, r9d
mov r14, rdx
mov rsi, rcx
lea rdx, [rbp + 0x1a0]
lea r8d, [r9 + 0x23]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, 1
lea rcx, [rsp + 0x68]
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
lea rcx, [rsp + 0x68]
xor r9d, r9d
xor r8d, r8d
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea rcx, [rsp + 0x68]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorGroup]
lea rcx, [rsp + 0x68]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorSacl]
lea rax, [rsp + 0x68]
lea r8, [rbp + 0x1a0]
lea rdx, str._sElectronic_Arts
lea rcx, [rbp - 0x70]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x50], 0x18
mov dword [rsp + 0x60], edi
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
xor r15d, r15d
test eax, eax
jne 0x1400030b4
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, r15d
cmp eax, 0xb7
jne 0x1400030b6
mov ebx, edi
lea r8, [rbp + 0x1a0]
lea rdx, str._sElectronic_ArtsEA_Services
lea rcx, [rbp - 0x70]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x1400030f1
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
mov eax, r15d
jne 0x1400030f3
mov eax, edi
lea r8, [rbp + 0x1a0]
lea rdx, str._sElectronic_ArtsEA_ServicesLicense
lea rcx, [rbp - 0x70]
and ebx, eax
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x140003130
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x140003130
mov edi, r15d
test ebx, edi
je 0x14000324e
lea rdx, [rsp + 0x48]
mov rcx, r14
mov qword [rsp + 0x48], r15
call fcn.140003d00
lea r9, str.1031469.dlf
lea r8, [rbp + 0x1a0]
lea rdx, str._sElectronic_ArtsEA_ServicesLicense_s
lea rcx, [rbp - 0x70]
mov rdi, rax
call qword [sym.imp.USER32.dll_wsprintfW]
mov qword [rsp + 0x30], r15
lea r9, [rsp + 0x50]
lea rcx, [rbp - 0x70]
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140003225
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov rdx, rdi
mov rcx, rax
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.DLL_WriteFile]
mov edx, 0x3fd
mov rcx, rsi
test eax, eax
je 0x1400031fb
lea r8, str.License_file_sucessfully_generated._Press_Play_
mov dword [0x140019790], 0xcc00
call qword [sym.imp.USER32.dll_SetDlgItemTextA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rcx, rdi
call fcn.1400043e0
jmp 0x14000326d
lea r8, str.Failed_to_write_license_file__Try_Run_As_Admin.
mov dword [0x140019790], 0xff
call qword [sym.imp.USER32.dll_SetDlgItemTextA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rcx, rdi
call fcn.1400043e0
jmp 0x14000326d
lea r8, str.Failed_to_create_license_file__Try_Run_As_Admin.
mov edx, 0x3fd
mov rcx, rsi
mov dword [0x140019790], 0xff
call qword [sym.imp.USER32.dll_SetDlgItemTextA]
mov rcx, rdi
call fcn.1400043e0
jmp 0x14000326d
lea r8, str.Failed_to_create_license_directory__Try_Run_As_Admin.
mov edx, 0x3fd
mov rcx, rsi
mov dword [0x140019790], 0xff
call qword [sym.imp.USER32.dll_SetDlgItemTextA]
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.140003e20
mov rbx, qword [rsp + 0x500]
add rsp, 0x4c0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret