Function at 0x140004aa0
Capabilities:
Delete file
Move file
Read .ini file
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x968
mov rax, qword [0x140173240]
xor rax, rsp
mov qword [rsp + 0x950], rax
mov rdx, qword [rsp + 0x988]
mov rcx, qword [rsp + 0x980]
call fcn.140003e20
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 1
jne 0x1400050e0
mov byte [rsp + 0x30], 0
mov byte [rsp + 0x31], 0
mov qword [rsp + 0xf8], 0
lea r8, [0x140122320]
mov rdx, qword [rsp + 0x988]
lea rcx, [rsp + 0xf8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
nop
cmp qword [rsp + 0xf8], 0
jne 0x140004b2f
xor eax, eax
jmp 0x1400050e5
mov dword [rsp + 0x34], 0
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
je 0x140004b66
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
jmp 0x1400050e5
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov dword [rsp + 0x34], eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
je 0x140004ba4
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
jmp 0x1400050e5
movsxd rax, dword [rsp + 0x34]
mov rcx, rax
call qword [sym.imp.mfc140u.dll_operator_1]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x40], rax
movsxd rax, dword [rsp + 0x34]
mov qword [rsp + 0xa8], rax
mov rdi, qword [rsp + 0x40]
xor eax, eax
mov rcx, qword [rsp + 0xa8]
rep stosb byte [rdi], al
mov byte [rsp + 0x30], 1
mov eax, dword [rsp + 0x34]
add eax, 0x14
cdqe
mov qword [rsp + 0xb0], rax
mov eax, 2
mov rcx, qword [rsp + 0xb0]
mul rcx
mov rcx, 0xffffffffffffffff
cmovb rax, rcx
mov rcx, rax
call qword [sym.imp.mfc140u.dll_operator_1]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x34]
add eax, 0x14
cdqe
shl rax, 1
mov qword [rsp + 0xc0], rax
mov rdi, qword [rsp + 0x38]
xor eax, eax
mov rcx, qword [rsp + 0xc0]
rep stosb byte [rdi], al
lea rax, [rsp + 0x5c0]
mov rdi, rax
xor eax, eax
mov ecx, 0x64
rep stosb byte [rdi], al
lea rax, [rsp + 0x630]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
lea rcx, [rsp + 0x110]
call fcn.1400089c0
nop
mov rdx, qword [rsp + 0x988]
lea rcx, [rsp + 0x110]
call fcn.140008b50
lea rdx, [rsp + 0x630]
lea rcx, [rsp + 0x110]
call fcn.140008b60
mov dword [rsp + 0x50], 0
lea r8, [rsp + 0x630]
mov edx, 0x64
lea rcx, [rsp + 0x5c0]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
jne 0x140004d12
mov eax, dword [rsp + 0x34]
add eax, 0x14
cdqe
lea r8, str._CONFIG__n
mov rdx, rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov dword [rsp + 0x50], 9
mov byte [rsp + 0x31], 1
movzx eax, byte [rsp + 0x30]
test eax, eax
jne 0x140004ded
movzx eax, byte [rsp + 0x31]
test eax, eax
jne 0x140004ded
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.mfc140u.dll_operator]
cmp qword [rsp + 0x80], 0
jne 0x140004d60
mov qword [rsp + 0xc8], 0
jmp 0x140004d76
mov qword [rsp + 0x40], 0x8123
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.mfc140u.dll_operator]
cmp qword [rsp + 0x88], 0
jne 0x140004daa
mov qword [rsp + 0xd0], 0
jmp 0x140004dc0
mov qword [rsp + 0x38], 0x8123
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0xd0], rax
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
nop
mov dword [rsp + 0x5c], 1
lea rcx, [rsp + 0x110]
call fcn.1400082e0
mov eax, dword [rsp + 0x5c]
jmp 0x1400050e5
mov dword [rsp + 0x48], 0
xor eax, eax
cmp eax, 1
je 0x140004e4f
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov eax, ecx
cdqe
movsxd rcx, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
add rdx, rcx
mov rcx, rdx
mov r9, qword [rsp + 0xf8]
mov r8, rax
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
jg 0x140004e3d
jmp 0x140004e4f
mov eax, dword [rsp + 0x4c]
mov ecx, dword [rsp + 0x48]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x48], eax
jmp 0x140004df5
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
nop
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x140004f5e
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax*2]
mov ecx, dword [rsp + 0x34]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x34]
mov r8, qword [rsp + 0x40]
xor edx, edx
mov ecx, 0x3a8
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jne 0x140004f5e
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.mfc140u.dll_operator]
cmp qword [rsp + 0x90], 0
jne 0x140004ee0
mov qword [rsp + 0xd8], 0
jmp 0x140004ef6
mov qword [rsp + 0x40], 0x8123
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x98], rax
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.mfc140u.dll_operator]
cmp qword [rsp + 0x98], 0
jne 0x140004f2a
mov qword [rsp + 0xe0], 0
jmp 0x140004f40
mov qword [rsp + 0x38], 0x8123
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0xe0], rax
mov dword [rsp + 0x64], 0
lea rcx, [rsp + 0x110]
call fcn.1400082e0
mov eax, dword [rsp + 0x64]
jmp 0x1400050e5
lea rax, [rsp + 0x740]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov r9, qword [rsp + 0x988]
lea r8, str._stmp
mov edx, 0x104
lea rcx, [rsp + 0x740]
call fcn.140006ad0
lea rax, [rsp + 0x5a0]
lea rcx, str.wt_ccsUNICODE
mov rdi, rax
mov rsi, rcx
mov ecx, 0x1e
rep movsb byte [rdi], byte [rsi]
mov qword [rsp + 0x100], 0
lea r8, [rsp + 0x5a0]
lea rdx, [rsp + 0x740]
lea rcx, [rsp + 0x100]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
nop
cmp qword [rsp + 0x100], 0
jne 0x140005086
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.mfc140u.dll_operator]
cmp qword [rsp + 0x70], 0
jne 0x140005014
mov qword [rsp + 0xe8], 0
jmp 0x14000502a
mov qword [rsp + 0x40], 0x8123
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.mfc140u.dll_operator]
cmp qword [rsp + 0x78], 0
jne 0x140005055
mov qword [rsp + 0xf0], 0
jmp 0x14000506b
mov qword [rsp + 0x38], 0x8123
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0xf0], rax
mov dword [rsp + 0x68], 0
lea rcx, [rsp + 0x110]
call fcn.1400082e0
mov eax, dword [rsp + 0x68]
jmp 0x1400050e5
mov r8, qword [rsp + 0x38]
lea rdx, [0x140122370]
mov rcx, qword [rsp + 0x100]
call fcn.140006830
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [rsp + 0x988]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [rsp + 0x988]
lea rcx, [rsp + 0x740]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wrename]
nop
lea rcx, [rsp + 0x110]
call fcn.1400082e0
nop
mov eax, 1
mov rcx, qword [rsp + 0x950]
xor rcx, rsp
call fcn.140100c60
add rsp, 0x968
pop rdi
pop rsi
ret