Function at 0x4661d0
Capabilities:
Delete file
Move file
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ef61b
mov eax, dword fs:[0]
push eax
mov eax, 0x30c8
call fcn.004dccb0
mov eax, dword [0x52b360]
xor eax, esp
mov dword [esp + 0x30c4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52b360]
xor eax, esp
push eax
lea eax, [esp + 0x30dc]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x30ec]
lea eax, [esp + 0x3c]
push eax
mov edi, str.Config.json.ascii.tmp
mov dword [esp + 0x18], ebx
call fcn.0047fc80
add esp, 4
xor edi, edi
mov dword [esp + 0x30e4], edi
mov eax, dword [esp + 0x40]
mov ebp, 8
cmp dword [esp + 0x54], ebp
jae 0x466248
lea eax, [esp + 0x40]
push 0x5092f8
push eax
call fcn.004c97af
mov esi, eax
push 0x4fea44
push ebx
mov dword [esp + 0x28], esi
call fcn.004c97af
add esp, 0x10
mov ebx, eax
cmp esi, edi
je 0x466525
cmp ebx, edi
je 0x466522
push 0xfff
lea ecx, [esp + 0xdd]
push edi
push ecx
mov byte [esp + 0xe4], 0
call fcn.004d1df0
push 0x1ffe
lea eax, [esp + 0x10ea]
xor edx, edx
push edi
push eax
mov word [esp + 0x10f0], dx
call fcn.004d1df0
push 0x7f
lea ecx, [esp + 0x75]
push edi
push ecx
mov byte [esp + 0x7c], 0
call fcn.004d1df0
push 2
push edi
push ebx
call fcn.004cbfa2
push ebx
call fcn.004cbeaa
push edi
push edi
push ebx
mov ebp, eax
call fcn.004cbfa2
add esp, 0x40
push ebx
push 3
lea edx, [esp + 0xe0]
push 1
push edx
call fcn.004c9ab9
add esp, 0x10
cmp byte [esp + 0xd8], 0xef
jne 0x4664e3
cmp byte [esp + 0xd9], 0xbb
jne 0x4664e3
cmp byte [esp + 0xda], 0xbf
jne 0x4664e3
sub ebp, 3
cmp ebp, edi
jg 0x466364
push esi
call fcn.004ccea0
push esi
call fcn.004c9c66
push ebx
call fcn.004c9c66
add esp, 0xc
lea esi, [esp + 0x20]
call fcn.0047fd80
mov edi, 8
cmp dword [eax + 0x18], edi
jb 0x46648f
mov eax, dword [eax + 4]
jmp 0x466492
mov ebp, dword [esp + 0x1c]
mov esi, 0x800
sub esi, edi
cmp ebp, esi
jge 0x466371
mov esi, ebp
push ebx
push esi
lea eax, [esp + edi + 0xe0]
push 1
push eax
call fcn.004c9ab9
sub ebp, esi
add esi, edi
push esi
lea eax, [esp + 0xec]
mov dword [esp + 0x30], ebp
call fcn.0047fef0
mov ebp, eax
sub esi, ebp
add esp, 0x14
mov edi, esi
test ebp, ebp
jle 0x46644f
test edi, edi
je 0x4663c2
push edi
lea ecx, [esp + ebp + 0xdc]
push ecx
lea edx, [esp + 0x60]
push edx
call fcn.004d0a80
add esp, 0xc
push 0x1000
lea eax, [esp + 0x10dc]
push eax
push ebp
lea ecx, [esp + 0xe4]
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0x1000
lea edx, [esp + 0xe4]
push edx
push eax
lea eax, [esp + 0x10ec]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0xe0]
push 1
push edx
call fcn.004ca3f1
add esp, 0x10
test edi, edi
je 0x46643b
push edi
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0xe0]
push ecx
call fcn.004d0a80
add esp, 0xc
cmp dword [esp + 0x1c], 0
jg 0x466360
mov esi, dword [esp + 0x18]
jmp 0x466325
mov edx, dword [esp + 0x18]
push edx
call fcn.004c9c66
push ebx
call fcn.004c9c66
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 8
push eax
call esi
cmp dword [esp + 0x54], 8
mov eax, dword [esp + 0x40]
jae 0x46647e
lea eax, [esp + 0x40]
push eax
call esi
lea ecx, [esp + 0x3c]
call fcn.004016f0
jmp 0x466545
add eax, 4
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0x54], edi
jae 0x4664a0
lea ecx, [esp + 0x40]
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
lea ecx, [esp + 0x20]
setne bl
call fcn.004016f0
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ecx
call esi
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x54], edi
jae 0x4664d3
lea eax, [esp + 0x40]
push eax
call esi
lea ecx, [esp + 0x3c]
call fcn.004016f0
mov al, bl
jmp 0x466547
push esi
call fcn.004c9c66
push ebx
call fcn.004c9c66
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 8
push edx
call esi
mov eax, dword [esp + 0x40]
mov edi, 8
cmp dword [esp + 0x54], edi
jae 0x466512
lea eax, [esp + 0x40]
push eax
call esi
cmp dword [esp + 0x54], edi
jb 0x466545
mov eax, dword [esp + 0x40]
push eax
jmp 0x46653d
push esi
jmp 0x46652a
cmp ebx, edi
je 0x466532
push ebx
call fcn.004c9c66
add esp, 4
cmp dword [esp + 0x54], ebp
jb 0x466545
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004c8f17
add esp, 4
xor al, al
mov ecx, dword [esp + 0x30dc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30c4]
xor ecx, esp
call fcn.004c8f08
add esp, 0x30d4
ret