Function at 0x4016a0
Capabilities:
Create directory
Delete file
Timestomp file

Disassembly:
sub esp, 0xba8
push ebx
push ebp
mov ebp, dword [0x410d74]
xor ebx, ebx
push esi
push edi
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x4016c2
push eax
call fcn.00404408
add esp, 4
mov esi, dword [esp + 0xbbc]
lea eax, [esp + 0xa78]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x401748
lea ecx, [esp + 0x18]
lea edx, [esp + 0xa7c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push 1
sub eax, edx
push ebx
push ebx
push eax
call fcn.00404460
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
sub ecx, edi
xor edi, edi
add eax, ecx
adc edx, edi
cmp edx, 0x25b
jb 0x4018ba
ja 0x401748
cmp eax, 0x7f3d4000
jbe 0x4018ba
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea edx, [esp + 0x10]
lea eax, [esp + 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
push 0x40e0bc
push esi
call fcn.004043f5
add esp, 8
cmp eax, ebx
mov dword [ebp + 0x1c], eax
jne 0x401871
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x565]
mov byte [esp + 0x564], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x461]
mov byte [esp + 0x460], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x975]
mov byte [esp + 0x974], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x669]
mov byte [esp + 0x668], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x51]
mov byte [esp + 0x50], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x668]
lea edx, [esp + 0x974]
stosb byte es:[edi], al
push ecx
lea eax, [esp + 0x464]
push edx
lea ecx, [esp + 0x56c]
push eax
push ecx
push esi
call fcn.0040428e
push ebx
lea edx, [esp + 0x478]
push ebx
lea eax, [esp + 0x580]
push edx
lea ecx, [esp + 0x70]
push eax
push ecx
call fcn.004041fd
add esp, 0x28
lea edx, [esp + 0x50]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x40e0bc
push esi
call fcn.004043f5
add esp, 8
mov dword [ebp + 0x1c], eax
push ebx
push 0x80
push 3
push ebx
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x1c]
pop edi
cmp eax, ebx
pop esi
pop ebp
pop ebx
setne al
add esp, 0xba8
ret
push 0x40e0b8
push esi
call fcn.004043f5
add esp, 8
cmp eax, ebx
mov dword [ebp + 0x1c], eax
jne 0x4019bd
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x35d]
mov byte [esp + 0x35c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x259]
mov byte [esp + 0x258], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x871]
mov byte [esp + 0x870], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x76d]
mov byte [esp + 0x76c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x155]
mov byte [esp + 0x154], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x76c]
lea ecx, [esp + 0x870]
push eax
lea edx, [esp + 0x25c]
push ecx
lea eax, [esp + 0x364]
push edx
push eax
push esi
call fcn.0040428e
push ebx
lea ecx, [esp + 0x270]
push ebx
lea edx, [esp + 0x378]
push ecx
lea eax, [esp + 0x174]
push edx
push eax
call fcn.004041fd
add esp, 0x28
lea ecx, [esp + 0x154]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x40e0b8
push esi
call fcn.004043f5
add esp, 8
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 0x1c]
pop edi
cmp eax, ebx
pop esi
pop ebp
pop ebx
setne al
add esp, 0xba8
ret