Function at 0x403bc6
Capabilities:
Create directory
Get file attributes
Move file
Timestomp file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x3ac
cmp dword [0x46c99c], 0
je 0x403ea6
mov edi, dword [ecx + 4]
sub edi, dword [ecx + 8]
cmp dword [0x42e490], edi
jg 0x403ea6
test edi, edi
je 0x403ea6
lea esi, [ebp - 0x370]
push eax
push eax
push 0
push esi
call fcn.00403afe
push 1
push esi
call fcn.0040357d
mov edx, eax
pop eax
pop ecx
test edx, edx
jle 0x403e8b
push eax
push 2
push 0
push edx
mov dword [ebp - 0x3ac], edx
call fcn.0040364f
mov edx, dword [ebp - 0x3ac]
push edi
push dword [ebx + 8]
push edx
call fcn.00403629
mov edx, dword [ebp - 0x3ac]
lea ecx, [ebp - 0x3a0]
mov dword [esp], 0
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov edx, dword [ebp - 0x3ac]
sub esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x3a0]
add esp, 0xc
test byte [0x46c97a], 0x80
je 0x403ea0
lea edx, [ebp - 0x398]
push eax
push eax
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 0x390]
lea edx, [ebp - 0x398]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push edx
mov dword [ebp - 0x3ac], eax
call eax
movzx edx, word [ebp - 0x38a]
pop eax
mov eax, dword [ebp + 8]
pop ecx
cmp word [eax + 6], dx
je 0x403ea0
push eax
mov ecx, ebx
push eax
movzx eax, word [ebp - 0x38e]
imul eax, eax, 0x64
add eax, edx
push eax
push esi
call fcn.00403afe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0xc
inc eax
je 0x403e25
push eax
push eax
lea eax, [ebp - 0x158]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
pop edx
pop ecx
cmp eax, 0xffffffff
je 0x403e25
sub esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x380]
sub esp, 0xc
push eax
lea eax, [ebp - 0x154]
push eax
mov eax, dword [ebp - 0x3ac]
call eax
push 0x2f
push esi
call fcn.00403476
add esp, 0x20
test eax, eax
je 0x403db0
mov byte [eax], 0
mov ecx, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 0x3ac], eax
movzx eax, word [ebp - 0x380]
mov dword [ebp - 0x3b0], ecx
push eax
lea eax, [ebp - 0x270]
push esi
push str._.255s__u
push eax
call ecx
pop eax
lea eax, [ebp - 0x270]
pop edx
push 0x42e458
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [ebp - 0x3ac]
push ecx
mov ecx, dword [ebp - 0x3b0]
lea eax, [edx + 1]
push eax
movzx eax, word [ebp - 0x380]
push eax
lea eax, [ebp - 0x270]
push esi
push str._.255s__u__.20s
push eax
call ecx
mov edx, dword [ebp - 0x3ac]
add esp, 0x20
mov byte [edx], 0x2f
jmp 0x403e09
mov ecx, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea edx, [ebp - 0x270]
movzx eax, word [ebp - 0x380]
mov dword [ebp - 0x3ac], ecx
push eax
push 0x43e3f7
push edx
call ecx
pop eax
pop edx
lea edx, [ebp - 0x270]
push 0x42e458
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edx, [ebp - 0x270]
pop ecx
pop eax
push esi
movzx eax, word [ebp - 0x380]
mov ecx, dword [ebp - 0x3ac]
push eax
push str._u__.20s
push edx
call ecx
add esp, 0x10
push eax
push eax
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x370]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
pop edx
pop ecx
test eax, eax
je 0x403ea0
lea esi, [ebp - 0x158]
push ecx
push ecx
mov ecx, ebx
push 0
push esi
call fcn.00403afe
lea eax, [ebp - 0x370]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push eax
push esi
call fcn.004035b1
mov esi, eax
add esp, 0xc
test eax, eax
jle 0x403ea0
push eax
push edi
lea edi, [ebp - 0x398]
push dword [ebx + 8]
push esi
call fcn.00403629
push edx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
add esp, 0xc
push edi
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
sub esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0xc
jmp 0x403ea0
sub esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0xc
inc eax
jne 0x403ea0
sub esp, 0xc
jmp 0x403e46
mov eax, dword [ebx + 4]
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 4]
lea edi, [ebx + 0x1c]
mov eax, ecx
sub eax, edi
cmp eax, 0x7fff
jle 0x403edc
sub ecx, 0x1000
sub dword [ebx + 8], 0x1000
lea esi, [ebx + 0x101c]
mov dword [ebx + 4], ecx
sub ecx, edi
test edi, edi
je 0x403edc
test esi, esi
je 0x403edc
jecxz 0x403edc
cld
rep movsb byte es:[edi], byte [esi]
cmp dword [0x42e49c], 0
jne 0x403eec
mov ecx, ebx
call fcn.00403726
mov eax, dword [ebx + 0x14]
mov dword [ebx + 0x10], 0
inc dword [0x46c958]
not eax
and dword [0x46c95c], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4