Function at 0x1400046b0
Capabilities:
Get common file path
Read .ini file

Disassembly:
push rbx
push rdi
push r12
sub rsp, 0x380
mov rax, qword [0x14001e658]
xor rax, rsp
mov qword [rsp + 0x370], rax
lea rdx, str._DefDir_
xor edi, edi
mov r12, r8
mov rbx, rcx
mov dword [rsp + 0x50], edi
call fcn.14000964c
test rax, rax
jne 0x1400049ca
lea rdx, str._Windows_
mov rcx, rbx
call fcn.14000964c
test rax, rax
jne 0x1400049ca
lea rdx, str._System_
mov rcx, rbx
call fcn.14000964c
test rax, rax
jne 0x1400049ca
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x170]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x28], rdi
mov byte [rsp + 0x170], dil
mov qword [rsp + 0x20], 0x100
call fcn.14000a0e0
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x140004b4c
test rbx, rbx
je 0x1400048e8
lea r9, [rsp + 0x170]
lea rdx, [rsp + 0x50]
mov r8b, 0x3a
mov rcx, rbx
mov dword [rsp + 0x20], 0x100
call fcn.1400040c0
test eax, eax
je 0x1400048e8
lea r9, [rsp + 0x54]
lea rdx, [rsp + 0x50]
mov r8b, 0x3a
mov rcx, rbx
mov dword [rsp + 0x20], 4
call fcn.1400040c0
test eax, eax
je 0x14000497c
lea rcx, [rsp + 0x54]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x14000497c
mov eax, dword [rsp + 0x54]
cmp al, 0x23
je 0x140004925
cmp al, 0x30
je 0x140004901
cmp al, 0x40
je 0x1400048ef
test al, al
je 0x1400048e8
lea r8, [rsp + 0x54]
cmp al, 0x30
jl 0x1400048e8
cmp al, 0x39
jg 0x1400048e8
movsx ecx, al
inc r8
lea edx, [rdi + rdi*4]
lea edi, [rcx + rdx*2 - 0x30]
movzx ecx, byte [r8]
mov al, cl
test cl, cl
jne 0x140004801
test edi, edi
je 0x1400048e8
lea rdx, str.SubDir__d
lea rcx, [rsp + 0x58]
mov r8d, edi
call qword [sym.imp.USER32.dll_wsprintfA]
cmp qword [0x14001e258], 0x10
lea r11, [0x14001e240]
cmovae r11, qword [0x14001e240]
lea r9, [rsp + 0x270]
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x28], r11
lea rcx, str.Initiation
xor r8d, r8d
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x1400048e8
cmp qword [0x14001e230], 0x10
lea rdx, [0x14001e218]
lea rcx, [rsp + 0x70]
cmovae rdx, qword [0x14001e218]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rcx, eax
cmp byte [rsp + rcx + 0x6f], 0x5c
je 0x1400048d3
lea rdx, [0x140017564]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x140004935
xor eax, eax
jmp 0x140004b51
lea rcx, [rsp + 0x70]
mov edx, 0x100
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x140004935
cmp qword [0x14001e230], 0x10
lea rdx, [0x14001e218]
lea rcx, [rsp + 0x70]
cmovae rdx, qword [0x14001e218]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x140004935
lea rcx, [rsp + 0x70]
mov edx, 0x100
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rdx, eax
cmp byte [rdx + rbx - 1], 0x5c
je 0x140004966
lea rdx, [0x140017564]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x170]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x140004b4c
test r12, r12
je 0x140004b4c
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rcx, eax
cmp byte [rcx + rbx - 1], 0x5c
je 0x1400049b4
lea rdx, [0x140017564]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x170]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x140004b4c
lea rcx, [rsp + 0x71]
xor edx, edx
mov r8d, 0xff
mov qword [rsp + 0x3a8], rbp
mov byte [rsp + 0x70], dil
mov qword [rsp + 0x3b8], rsi
call fcn.140009e40
mov rcx, rbx
mov ebp, edi
mov rsi, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rcx, eax
test eax, eax
jle 0x140004a1c
cmp byte [rsi + rbx], 0x3c
je 0x140004a20
inc rsi
inc ebp
cmp rsi, rcx
jl 0x140004a06
mov ebp, dword [rsp + 0x50]
jmp 0x140004a20
mov ebp, dword [rsp + 0x50]
mov rsi, qword [rsp + 0x3b8]
mov rax, rdi
test rcx, rcx
jle 0x140004a46
cmp byte [rax + rbx], 0x3e
je 0x140004a4a
inc rax
inc edi
cmp rax, rcx
jl 0x140004a30
mov edi, dword [rsp + 0x50]
jmp 0x140004a4a
mov edi, dword [rsp + 0x50]
test ebp, ebp
jne 0x140004a65
lea rdx, [0x140017561]
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x140004a79
lea rcx, [rsp + 0x170]
mov r8d, ebp
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
lea rdx, str._DefDir_
mov rcx, rbx
call fcn.14000964c
mov rbp, qword [rsp + 0x3a8]
test rax, rax
je 0x140004b12
test r12, r12
je 0x140004ac8
lea rcx, [rsp + 0x70]
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rcx, eax
cmp byte [rsp + rcx + 0x6f], 0x5c
jne 0x140004b12
mov byte [rsp + rcx + 0x6f], 0
jmp 0x140004b12
lea rdx, str._Windows_
mov rcx, rbx
call fcn.14000964c
test rax, rax
je 0x140004aee
lea rcx, [rsp + 0x70]
mov edx, 0x100
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x140004b12
lea rdx, str._System_
mov rcx, rbx
call fcn.14000964c
test rax, rax
je 0x140004b12
lea rcx, [rsp + 0x70]
mov edx, 0x100
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
movsxd r11, edi
lea rcx, [rsp + 0x170]
lea rdx, [r11 + rbx + 1]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x170]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 1
mov rcx, qword [rsp + 0x370]
xor rcx, rsp
call fcn.14000a3b0
add rsp, 0x380
pop r12
pop rdi
pop rbx
ret