Function at 0x43191c
Capabilities:
Create directory
Delete directory
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x23c
mov eax, dword [ebp + 8]
mov edx, dword [eax]
cmp dword [edx], 0
je 0x431944
lea ecx, [ecx + 0x24]
cmp ecx, eax
je 0x431944
mov dword [esp], eax
call fcn.004c690a
push eax
mov eax, dword [ebx + 0x24]
cmp dword [eax], 0
je 0x431b8e
lea esi, [ebp - 0x220]
mov dword [esp + 8], 0
mov dword [esp + 0xc], esi
mov dword [esp + 4], 0x524abf
mov dword [esp], 0x524ac3
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
sub esp, 0x10
test eax, eax
jne 0x431990
mov eax, dword [ebx + 0x24]
mov dword [esp], esi
add eax, 4
mov dword [esp + 4], eax
call sub.msvcrt.dll_strcpy
mov dword [esp + 4], str.saving_settings_to
mov dword [esp], 0x569500
call fcn.004c8bb5
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.004c8bb5
mov dword [esp + 4], str...._for
mov dword [esp], eax
call fcn.004c8bb5
mov edx, dword [ebx + 0x24]
mov ecx, dword [edx]
add edx, 4
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.004c8bd2
mov dword [esp], eax
call fcn.004c8fa3
mov dword [esp], esi
mov dword [esp + 4], 0x524ae2
call sub.msvcrt.dll_fopen
mov esi, eax
test eax, eax
je 0x431b8e
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x228], eax
mov ecx, dword [ebp - 0x228]
lea eax, [ebx + 8]
cmp ecx, eax
je 0x431a9a
mov edi, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
lea eax, [ebp - 0x224]
mov edx, dword [edi]
mov edx, dword [edx + 0x14]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [ebp - 0x22c], edx
call sym.winbox.exe_packData_unsigned_int_
mov dword [esp], 0x524ae5
lea ecx, [ebp - 0x11c]
call fcn.004c664a
lea eax, [ebp - 0x224]
mov ecx, edi
push edx
mov edx, dword [ebp - 0x22c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x11c]
mov dword [esp], eax
call edx
push ecx
push ecx
lea ecx, [ebp - 0x11c]
call fcn.004c641a
lea ecx, [ebp - 0x224]
call fcn.004c641a
mov edx, dword [edi]
mov ecx, edi
mov dword [esp], esi
call dword [edx + 0x20]
lea ecx, [ebp - 0x228]
push edi
call fcn.004c799e
jmp 0x431a03
mov dword [esp], esi
call sub.msvcrt.dll_fclose
cmp byte [ebp - 0x220], 0x2e
jne 0x431b72
mov eax, dword [ebx + 0x24]
lea esi, [ebp - 0x11c]
add eax, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push eax
lea eax, [ebp - 0x224]
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], 0x104
mov eax, dword [ebx + 0x24]
add eax, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov eax, dword [ebp - 0x224]
sub esp, 0x10
mov byte [eax], 0
call sym.winbox.exe_getMainWindow__
mov ecx, eax
call method.IWindow.getHandle__
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
sub esp, 0xc
mov dword [esp + 8], 3
mov eax, dword [ebx + 0x24]
add eax, 4
mov dword [esp + 4], eax
lea eax, [ebp - 0x220]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
sub esp, 0xc
test eax, eax
jne 0x431b72
mov dword [esp + 4], str.MoveFileEx_failed_error
mov dword [esp], 0x569500
call fcn.004c8bb5
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004c8c02
mov dword [esp], eax
call fcn.004c8fa3
mov dword [esp + 4], str.settings_saved
mov dword [esp], 0x569500
call fcn.004c8bb5
mov dword [esp], eax
call fcn.004c8fa3
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4