Function at 0x405c09
Capabilities:
Create directory
Move file
Write file on windows

Disassembly:
push 0x1b0
mov eax, 0x6ae190
call fcn.0054fe66
mov eax, dword [ebp + 0x18]
xor ebx, ebx
mov esi, 0x79e800
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x1bc], eax
cmp byte [0x791384], bl
je 0x405c81
cmp dword [0x79e814], 0x10
mov eax, esi
push ebx
cmovae eax, dword [0x79e800]
push eax
mov byte [0x791384], bl
call fcn.006765cd
pop ecx
pop ecx
test eax, eax
jne 0x405c81
cmp dword [0x79e82c], 0x10
mov ecx, 0x79e818
mov eax, esi
cmovae ecx, dword [0x79e818]
cmp dword [0x79e814], 0x10
push ecx
cmovae eax, dword [0x79e800]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0x32
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.0066d800
add esp, 0xc
mov dword [ebp - 0x178], ebx
mov byte [ebp - 0x188], bl
push 0xf
pop eax
mov dword [ebp - 0x174], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x190], ebx
mov dword [ebp - 0x18c], eax
mov byte [ebp - 0x1a0], bl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x170]
push 0x761e3c
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x15c], eax
mov byte [ebp - 0x170], bl
call fcn.004022a0
push 0xff
lea eax, [ebp - 0x148]
mov byte [ebp - 4], 2
push ebx
push eax
call fcn.0066d800
add esp, 0xc
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x14a]
push eax
movzx eax, word [ebp - 0x14c]
push eax
movzx eax, word [ebp - 0x14e]
push eax
movzx eax, word [ebp - 0x150]
push eax
movzx eax, word [ebp - 0x152]
push eax
movzx eax, word [ebp - 0x156]
push eax
movzx eax, word [ebp - 0x158]
push eax
lea eax, [ebp - 0x44]
push str._04d__02d__02d__02d:_02d:_02d._03d
push eax
call fcn.00405b92
add esp, 0x24
lea ecx, [ebp - 0x188]
push edi
call fcn.004022a0
cmp dword [ebp - 0x174], 0x10
lea edx, [ebp - 0x188]
mov eax, dword [ebp - 0x178]
cmovae edx, dword [ebp - 0x188]
test eax, eax
je 0x405d94
dec eax
or ecx, 0xffffffff
cmp eax, ecx
cmovb ecx, eax
add ecx, edx
jmp 0x405d8b
cmp ecx, edx
je 0x405d94
dec ecx
cmp byte [ecx], 0x5c
jne 0x405d86
sub ecx, edx
jmp 0x405d97
or ecx, 0xffffffff
push ecx
push ecx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x188]
push eax
lea ecx, [ebp - 0x1b8]
call fcn.00404aeb
lea eax, [ebp - 0x1b8]
push eax
lea ecx, [ebp - 0x1a0]
call fcn.00403fac
lea ecx, [ebp - 0x1b8]
call fcn.0040227a
mov ecx, dword [ebp + 0x10]
cmp byte [ecx], 0
jne 0x405e00
push 0xff
lea eax, [ebp - 0x148]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x405e12
lea eax, [ebp - 0x148]
push 0x5c
push eax
call fcn.0066d0a0
pop ecx
pop ecx
mov byte [eax + 1], bl
jmp 0x405e12
lea edx, [ebp - 0x148]
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x405e08
lea eax, [ebp - 0x148]
push eax
call fcn.0067663a
cmp dword [0x79e814], 0x10
mov dword [esp], 0x762288
cmovae esi, dword [0x79e800]
push esi
call fcn.006765b6
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x405e49
push 0xfffffffffffffffe
pop ebx
jmp 0x405f5a
push dword [ebp + 0x20]
lea ecx, [ebp - 0x170]
call fcn.00402173
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x405e7b
lea esi, [ebp + 0x24]
cmp byte [eax], 0
je 0x405e7b
push eax
lea ecx, [ebp - 0x170]
call fcn.00402173
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x405e61
mov eax, dword [ebp - 0x160]
add eax, 0xc8
push eax
call fcn.0040aa12
cmp dword [ebp - 0x15c], 0x10
lea edx, [ebp - 0x170]
lea ecx, [ebp - 0x1a0]
mov esi, eax
cmovae edx, dword [ebp - 0x170]
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x18c], 0x10
push edx
push dword [ebp + 0x1c]
cmovae ecx, dword [ebp - 0x1a0]
push dword [ebp - 0x1bc]
push ecx
push eax
push str._TIME:_s___FILE:_s__s___d___OUT:_s_n
push esi
call fcn.00405b92
push 2
push ebx
push edi
call fcn.00676402
mov ecx, esi
add esp, 0x2c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405ee1
push edi
sub ecx, edx
push 1
push ecx
push esi
call fcn.00675b42
push edi
call fcn.00674554
add esp, 0x14
cmp dword [ebp + 8], 2
jne 0x405f53
cmp byte [0x79e6e8], 0
je 0x405f53
cmp dword [0x7913e4], 0x10
mov eax, 0x7913d0
push 0x762288
cmovae eax, dword [0x7913d0]
push eax
call fcn.006765b6
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x405f53
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405f37
push edi
sub ecx, edx
push 1
push ecx
push esi
call fcn.00675b42
push edi
call fcn.00674554
add esp, 0x14
push esi
call fcn.0040aa0d
pop ecx
lea ecx, [ebp - 0x170]
call fcn.0040227a
lea ecx, [ebp - 0x1a0]
call fcn.0040227a
lea ecx, [ebp - 0x188]
call fcn.0040227a
mov eax, ebx
call fcn.0054fe10
ret