Function at 0x140133040
Capabilities:
Delete file
Move file
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x308
mov rax, qword [0x1404e6228]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov rax, qword [rsp + 0x310]
add rax, 0x30
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400de030
nop
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x60], rax
lea rdx, [0x14032fcb0]
mov rcx, qword [rsp + 0x50]
call fcn.1400a4430
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x310]
add rax, 0x160
mov rdx, rax
mov rcx, qword [rsp + 0x60]
call fcn.140087760
mov qword [rsp + 0x70], rax
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x240]
call fcn.1400f3ab0
nop
mov rax, qword [rsp + 0x310]
add rax, 0x160
lea r8, str.digipass_nativebridge.cfg.new
mov rdx, rax
lea rcx, [rsp + 0x220]
call fcn.1400f5b60
nop
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 1
lea rdx, [rsp + 0x220]
lea rcx, [rsp + 0x110]
call fcn.14012ffc0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.1400c76c0
mov byte [rsp + 0x30], al
lea rcx, [rsp + 0x110]
call fcn.1401303a0
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x1401334e2
lea rcx, [rsp + 0x260]
call fcn.140087860
nop
lea rcx, [rsp + 0x240]
call fcn.1400bcdf0
lea rdx, [rsp + 0x260]
mov rcx, rax
call fcn.14019ddf0
mov byte [rsp + 0x31], al
movzx eax, byte [rsp + 0x31]
test eax, eax
jne 0x140133213
lea rcx, str.Error_reading_config_file_for_saving
call sub.api_ms_win_crt_runtime_l1_1_0.dll_perror
nop
lea rcx, [rsp + 0x260]
call fcn.140088270
nop
lea rcx, [rsp + 0x220]
call fcn.140088270
nop
lea rcx, [rsp + 0x240]
call fcn.140088270
nop
lea rcx, [rsp + 0x40]
call fcn.1400ded00
jmp 0x140133508
lea rcx, [rsp + 0x240]
call fcn.1400bcdf0
mov rcx, rax
call sub.api_ms_win_crt_filesystem_l1_1_0.dll_remove
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x140133279
lea rcx, str.Error_removing_config_file
call sub.api_ms_win_crt_runtime_l1_1_0.dll_perror
nop
lea rcx, [rsp + 0x260]
call fcn.140088270
nop
lea rcx, [rsp + 0x220]
call fcn.140088270
nop
lea rcx, [rsp + 0x240]
call fcn.140088270
nop
lea rcx, [rsp + 0x40]
call fcn.1400ded00
jmp 0x140133508
lea rcx, [rsp + 0x240]
call fcn.1400bcdf0
mov qword [rsp + 0x88], rax
lea rcx, [rsp + 0x220]
call fcn.1400bcdf0
mov rcx, qword [rsp + 0x88]
mov rdx, rcx
mov rcx, rax
call sub.api_ms_win_crt_filesystem_l1_1_0.dll_rename
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x1401334c6
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x90], rax
lea rdx, [rsp + 0x240]
mov rcx, qword [rsp + 0x90]
call fcn.140087760
mov qword [rsp + 0x98], rax
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0x2a0]
call fcn.1400f3d80
mov qword [rsp + 0xa0], rax
mov rcx, qword [rsp + 0xa0]
call fcn.1400bcdf0
lea rdx, [0x14032fc08]
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x2a0]
call fcn.140088270
cmp qword [rsp + 0x38], 0
jne 0x140133349
lea rcx, str.Error_In_Restoring_the_configuration_file
call sub.api_ms_win_crt_runtime_l1_1_0.dll_perror
mov rcx, qword [rsp + 0x38]
call sub.api_ms_win_crt_stdio_l1_1_0.dll__fileno
lea rdx, [rsp + 0x2c0]
mov ecx, eax
call fcn.1401320b0
cmp eax, 0xffffffff
jne 0x14013337d
mov rcx, qword [rsp + 0x38]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
lea rcx, str.fstat_error:
call sub.api_ms_win_crt_runtime_l1_1_0.dll_perror
cmp qword [rsp + 0x38], 0
je 0x1401333d3
lea rcx, [rsp + 0x260]
call fcn.1400c89c0
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x260]
call fcn.1400bcdf0
mov r9, qword [rsp + 0x38]
mov rcx, qword [rsp + 0xa8]
mov r8, rcx
mov edx, 1
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rcx, qword [rsp + 0x38]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
jmp 0x14013346e
lea rdx, str.Error_opening_config_file_:
lea rcx, [rsp + 0x280]
call fcn.1400a4430
nop
lea rdx, [0x14032fd50]
lea rcx, [rsp + 0x280]
call fcn.1400b3af0
lea rcx, [rsp + 0x280]
call fcn.1400bcdf0
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_perror
lea rcx, [rsp + 0x220]
call fcn.1400bcdf0
mov rcx, rax
call sub.api_ms_win_crt_filesystem_l1_1_0.dll_remove
nop
lea rcx, [rsp + 0x280]
call fcn.140088270
nop
lea rcx, [rsp + 0x260]
call fcn.140088270
nop
lea rcx, [rsp + 0x220]
call fcn.140088270
nop
lea rcx, [rsp + 0x240]
call fcn.140088270
nop
lea rcx, [rsp + 0x40]
call fcn.1400ded00
jmp 0x140133508
lea rcx, [rsp + 0x220]
call fcn.1400bcdf0
mov rcx, rax
call sub.api_ms_win_crt_filesystem_l1_1_0.dll_remove
lea rcx, str.Error_renaming_config_file
call sub.api_ms_win_crt_runtime_l1_1_0.dll_perror
nop
lea rcx, [rsp + 0x260]
call fcn.140088270
nop
lea rcx, [rsp + 0x220]
call fcn.140088270
nop
lea rcx, [rsp + 0x240]
call fcn.140088270
nop
lea rcx, [rsp + 0x40]
call fcn.1400ded00
jmp 0x140133508
mov rcx, qword [rsp + 0x310]
call fcn.140133530
nop
lea rcx, [rsp + 0x260]
call fcn.140088270
nop
lea rcx, [rsp + 0x220]
call fcn.140088270
nop
lea rcx, [rsp + 0x240]
call fcn.140088270
nop
lea rcx, [rsp + 0x40]
call fcn.1400ded00
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.1401a6870
add rsp, 0x308
ret