Function at 0x43181c
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 0x431844
lea ecx, [ecx + 0x24]
cmp ecx, eax
je 0x431844
mov dword [esp], eax
call fcn.004c665a
push eax
mov eax, dword [ebx + 0x24]
cmp dword [eax], 0
je 0x431a8e
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 0x431890
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], 0x5694e0
call fcn.004c8905
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.004c8905
mov dword [esp + 4], str...._for
mov dword [esp], eax
call fcn.004c8905
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.004c8922
mov dword [esp], eax
call fcn.004c8cf3
mov dword [esp], esi
mov dword [esp + 4], 0x524ae2
call sub.msvcrt.dll_fopen
mov esi, eax
test eax, eax
je 0x431a8e
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x228], eax
mov ecx, dword [ebp - 0x228]
lea eax, [ebx + 8]
cmp ecx, eax
je 0x43199a
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.004c639a
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.004c616a
lea ecx, [ebp - 0x224]
call fcn.004c616a
mov edx, dword [edi]
mov ecx, edi
mov dword [esp], esi
call dword [edx + 0x20]
lea ecx, [ebp - 0x228]
push edi
call fcn.004c76ee
jmp 0x431903
mov dword [esp], esi
call sub.msvcrt.dll_fclose
cmp byte [ebp - 0x220], 0x2e
jne 0x431a72
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 0x431a72
mov dword [esp + 4], str.MoveFileEx_failed_error
mov dword [esp], 0x5694e0
call fcn.004c8905
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004c8952
mov dword [esp], eax
call fcn.004c8cf3
mov dword [esp + 4], str.settings_saved
mov dword [esp], 0x5694e0
call fcn.004c8905
mov dword [esp], eax
call fcn.004c8cf3
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4