Function at 0x140001dd0
Capabilities:
Get common file path
Get file size
Read .ini file
Write file on windows

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x920
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x950], rbx
mov rax, qword [0x14026fdb0]
xor rax, rsp
mov qword [rsp + 0x910], rax
mov rsi, rdx
mov rdi, rcx
mov dword [rsp + 0x54], 4
mov qword [rsp + 0x58], 0xffffffffffffffff
xor r12d, r12d
mov word [rsp + 0x4f0], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x4f2]
call fcn.14019d7c0
mov word [rsp + 0x2e0], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x2e2]
call fcn.14019d7c0
mov word [rsp + 0x90], r12w
xor eax, eax
mov qword [rsp + 0x92], rax
mov qword [rsp + 0x9a], rax
mov qword [rsp + 0xa2], rax
mov qword [rsp + 0xaa], rax
mov qword [rsp + 0xb2], rax
mov qword [rsp + 0xba], rax
mov word [rsp + 0xc2], ax
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x700]
call fcn.14019d7c0
lea rdx, [rsp + 0xd0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rcx, [rsp + 0xd0]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea r11, str.Uninst.ini
mov qword [rsp + 0x28], r11
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x20], rax
lea r9, [0x14021c280]
or r8, 0xffffffffffffffff
mov edx, 0x104
lea rcx, [rsp + 0x700]
call fcn.140198b84
lea r9, [rsp + 0x700]
xor r8d, r8d
lea rdx, str.LOG_USEFILE_CURCOUNT
lea rcx, str.Debug_Info
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [0x140292e40], eax
test eax, eax
je 0x140001f3b
xor edx, edx
div dword [0x140292e3c]
mov dword [0x140292e40], edx
lea rcx, [rsp + 0x4f0]
call fcn.1400022d0
test eax, eax
jne 0x140001f65
mov dword [rsp + 0x6c], 0x80004005
lea rdx, [0x140265238]
lea rcx, [rsp + 0x6c]
call fcn.14019d534
mov eax, dword [0x140292e40]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x4f0]
lea r8, str._sDebugLog__04d.txt
mov edx, 0x104
lea rcx, [rsp + 0x2e0]
call fcn.140001110
test eax, eax
jns 0x140001fad
mov dword [rsp + 0x74], 0x80004005
lea rdx, [0x140265238]
lea rcx, [rsp + 0x74]
call fcn.14019d534
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 2]
lea rcx, [rsp + 0x2e0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x58], rax
cmp rax, 0xffffffffffffffff
jne 0x140002003
mov dword [rsp + 0x68], 0x80004005
lea rdx, [0x140265238]
lea rcx, [rsp + 0x68]
call fcn.14019d534
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
jne 0x14000203e
mov word [rsp + 0x50], 0xfeff
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x54]
lea r8d, [rax + 2]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [0x140292e38], eax
jae 0x1400021b2
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0xd0]
call fcn.14019d7c0
mov eax, dword [0x140292e40]
inc eax
xor edx, edx
div dword [0x140292e3c]
mov dword [0x140292e40], edx
mov r9d, edx
lea r8, [0x14021c0e4]
mov edx, pe_nt_image_headers64
lea rcx, [rsp + 0xd0]
call fcn.140198b60
lea r9, [rsp + 0x700]
lea r8, [rsp + 0xd0]
lea rdx, str.LOG_USEFILE_CURCOUNT
lea rcx, str.Debug_Info
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
je 0x1400020dd
mov dword [rsp + 0x70], 0x80004005
lea rdx, [0x140265238]
lea rcx, [rsp + 0x70]
call fcn.14019d534
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x58], 0xffffffffffffffff
mov eax, dword [0x140292e40]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x4f0]
lea r8, str._sDebugLog__04d.txt
mov edx, 0x104
lea rcx, [rsp + 0x2e0]
call fcn.140001110
test eax, eax
jns 0x140002137
mov dword [rsp + 0x64], 0x80004005
lea rdx, [0x140265238]
lea rcx, [rsp + 0x64]
call fcn.14019d534
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 2]
lea rcx, [rsp + 0x2e0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x58], rax
cmp rax, 0xffffffffffffffff
jne 0x14000218d
mov dword [rsp + 0x60], 0x80004005
lea rdx, [0x140265238]
lea rcx, [rsp + 0x60]
call fcn.14019d534
mov word [rsp + 0x50], 0xfeff
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x54]
mov r8d, 2
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx r11d, word [rsp + 0x8e]
movzx eax, word [rsp + 0x8c]
movzx ecx, word [rsp + 0x8a]
movzx edx, word [rsp + 0x88]
movzx r8d, word [rsp + 0x86]
movzx r10d, word [rsp + 0x82]
movzx r9d, word [rsp + 0x80]
mov dword [rsp + 0x48], r11d
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], r8d
mov dword [rsp + 0x20], r10d
lea r8, str._04d__02d__02d__02d:_02d:_02d:_04d
mov edx, 0x1a
lea rcx, [rsp + 0x90]
call fcn.140001110
mov dword [rsp + 0x54], r12d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x54]
mov r8d, 0x32
lea rdx, [rsp + 0x90]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r8d, [rsi + rsi]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x54]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x54]
mov r8d, 2
lea rdx, [0x14021c468]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
jmp 0x140002298
test rbx, rbx
je 0x1400022a6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x910]
xor rcx, rsp
call fcn.140198b40
mov rbx, qword [rsp + 0x950]
add rsp, 0x920
pop r12
pop rdi
pop rsi
ret