Function at 0x40ffc2
Capabilities:
Create directory
Delete directory
Delete file
Move file
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
push 0x2e18
call fcn.00401000
mov esi, eax
xor ecx, ecx
mov dword [ebp - 4], esi
cmp esi, ecx
je 0x410650
lea eax, [esi + 0x2c10]
add eax, 0x104
mov dword [ebp - 0xc], eax
movzx eax, byte [edi + 0x1d]
push ebx
mov dword [edi + 0x38], ecx
mov dword [edi + 0x3c], ecx
mov dword [edi + 0x34], ecx
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], ecx
cmp eax, 0x1c
ja case.default.0x410014
movzx eax, byte [eax + 0x4106a6]
jmp dword [eax*4 + 0x41065e]
push dword [0x443a14]
jmp 0x410647
mov esi, edi
call fcn.0040f680
push dword [0x443a2c]
jmp 0x410647
mov esi, edi
call fcn.0040f680
mov byte [edi + 0x1c], 0
jmp case.0x410014.0
push dword [0x443a24]
jmp 0x410647
push dword [0x443a18]
jmp 0x410647
push dword [0x443a20]
jmp 0x410647
mov eax, dword [edi + 0xc]
cmp byte [eax], cl
je 0x41013a
push 0x10
push eax
lea eax, [edi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov byte [edi + 0x1c], 2
push dword [0x443a44]
jmp 0x410647
mov eax, dword [edi + 0xc]
cmp byte [eax], cl
je 0x41013a
push eax
lea eax, [edi + 0x40]
push eax
call fcn.00424e67
test eax, eax
je 0x4100b5
mov byte [edi + 0x1c], 1
push dword [0x443a38]
jmp 0x410647
mov byte [edi + 0x1c], 0
push dword [0x443a68]
jmp 0x410647
mov eax, dword [edi + 0xc]
mov al, byte [eax]
cmp al, 0x42
jl 0x41013a
cmp al, 0x43
jle 0x410117
cmp al, 0x53
jne 0x41013a
jmp case.0x410014.0
lea ecx, [edi + 0xc]
call fcn.0040f638
mov al, byte [eax]
cmp al, 0x41
je 0x4100f8
cmp al, 0x45
je 0x410117
cmp al, 0x49
je case.0x410014.0
cmp al, 0x4c
jmp 0x410138
call fcn.0040f638
mov al, byte [eax]
test al, al
je case.0x410014.0
cmp al, 0x43
je 0x410117
cmp al, 0x4e
je case.0x410014.0
cmp al, 0x54
jne 0x41013a
push dword [0x443a64]
jmp 0x410647
mov eax, dword [edi + 0xc]
movsx eax, byte [eax]
sub eax, 0x46
je case.0x410014.0
sub eax, 0xa
je 0x410117
dec eax
dec eax
je 0x410117
push dword [0x443a58]
jmp 0x410647
cmp dword [edi + 8], 0xffffffff
jne 0x410167
push ecx
push dword [edi + 0x18]
push ecx
push ecx
call fcn.004096fb
push 1
push eax
mov dword [edi + 8], eax
call fcn.00409583
cmp dword [edi + 8], 0xffffffff
je 0x4101ae
push 0x4461b4
call fcn.0040978a
movzx ecx, byte [edi + 0x18]
push ecx
movzx ecx, byte [edi + 0x19]
push ecx
mov ecx, eax
shr ecx, 0x18
push ecx
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
push ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
push ecx
movzx eax, al
push eax
push dword [0x443a34]
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
push 9
jmp 0x410635
push dword [0x443a50]
jmp 0x410647
cmp dword [edi + 8], 0xffffffff
jne 0x4101ae
push 4
pop esi
push dword [edi + 0xc]
call fcn.0040f602
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [edi + 0xc], eax
call fcn.00401547
mov eax, dword [ebp - 8]
add dword [edi + 0xc], eax
dec esi
mov eax, dword [edi + 0xc]
jne 0x4101c2
inc esi
push eax
call fcn.0040f602
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [edi + 0xc], eax
call fcn.00401547
mov byte [edi + esi + 0x14], al
mov eax, dword [ebp - 8]
add dword [edi + 0xc], eax
dec esi
mov eax, dword [edi + 0xc]
jns 0x4101e4
jmp case.0x410014.0
mov eax, dword [edi + 0xc]
cmp byte [eax], cl
je case.0x41030b.23
push ecx
push eax
call fcn.004015eb
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], edx
mov byte [edi + 0x1c], 4
push dword [0x443a48]
jmp 0x410647
mov ebx, 0x4445ac
jmp 0x4102a3
mov ebx, 0x4445b0
jmp 0x4102a3
mov ebx, dword [edi + 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ebx
cld
mov esi, dword [ebp - 0x10]
lodsb al, byte [esi]
cmp al, 0x20
ja 0x41024e
dec esi
mov eax, esi
mov dword [ebp - 0x10], eax
sub eax, ebx
cmp eax, 0xe
jne 0x4102a3
xor esi, esi
movzx eax, byte [esi + ebx]
push eax
call fcn.004013b6
test eax, eax
je 0x410276
inc esi
cmp esi, 0xe
jl 0x410262
cmp esi, 0xe
jne 0x4102a3
push dword [ebp - 0x10]
call fcn.0040f61f
mov ecx, eax
cmp byte [ecx], 0
je 0x4102a3
mov dword [ebp - 0x18], ebx
cld
mov esi, dword [ebp - 0x18]
lodsb al, byte [esi]
cmp al, 0x20
ja 0x410291
dec esi
mov eax, esi
mov byte [eax], 0
mov ebx, ecx
jmp 0x4102a3
mov ebx, dword [edi + 0xc]
cmp byte [ebx], 0x2d
jne 0x4102ad
mov ebx, 0x4445ac
push 0x5c
push 0x2f
push ebx
call fcn.0040199b
mov eax, dword [ebp - 4]
add eax, 0x2b0c
lea esi, [eax + 0x104]
push esi
lea ecx, [edi + 0x168]
push ecx
mov ecx, edi
call fcn.0040fe9d
test eax, eax
jne 0x4102e3
push dword [0x443a78]
jmp 0x410647
lea ebx, [edi + 0x168]
call fcn.0040ff8c
mov ebx, esi
mov dword [ebp - 0x10], eax
call fcn.0040ff8c
mov dword [ebp - 8], eax
movzx eax, byte [edi + 0x1d]
add eax, 0xfffffff3
cmp eax, 0xf
ja case.0x41030b.23
jmp dword [eax*4 + 0x4106c6]
mov esi, dword [ebp - 4]
lea eax, [esi + 0x2b0c]
push eax
push dword [ebp - 0xc]
call fcn.0040ff6a
push eax
push str.257___s__is_current_directory._n
jmp 0x4103da
cmp dword [ebp - 0x10], 2
jne 0x41055f
mov eax, dword [ebp - 4]
add eax, 0x2b0c
push eax
lea eax, [edi + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x410609
cmp dword [ebp - 0x10], 2
jne 0x41055f
test byte [edi + 0x30], 8
jmp 0x41037f
cmp dword [ebp - 8], 0
je 0x41055f
test byte [edi + 0x30], 2
jmp 0x41037f
cmp dword [ebp - 0x10], 1
jne 0x41055f
test byte [edi + 0x30], 1
je 0x41053e
push dword [ebp - 4]
mov esi, edi
call fcn.0040fdae
and dword [edi + 0x20], 0
and dword [edi + 0x24], 0
mov byte [edi + 0x1c], 1
jmp case.0x41030b.23
test byte [edi + 0x30], 0x10
je 0x41053e
push 0
lea eax, [edi + 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x41055f
mov esi, dword [ebp - 4]
lea eax, [esi + 0x2b0c]
push eax
push dword [ebp - 0xc]
call fcn.0040ff6a
push eax
push dword [0x443a40]
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0xc
jmp 0x410635
cmp dword [ebp - 0x10], 2
jne 0x41055f
mov eax, dword [edi + 0x30]
test al, 0x20
je 0x41053e
test al, 4
lea eax, [edi + 0x168]
push eax
jne 0x410413
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x410430
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 0xc]
call fcn.00402cde
push 2
push 0
push dword [ebp - 0xc]
call fcn.00404454
test eax, eax
je 0x41053e
jmp 0x410609
test byte [edi + 0x30], 4
je 0x41053e
lea eax, [edi + 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x41055f
jmp 0x410609
cmp dword [ebp - 0x10], 0
je 0x41055f
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [edi + 0x168]
push eax
lea eax, [edi + 0x26c]
push eax
call esi
mov eax, dword [ebp - 4]
add eax, 0x2b0c
push eax
lea eax, [edi + 0x370]
push eax
call esi
mov byte [edi + 0x1c], 3
jmp 0x410228
test byte [edi + 0x30], 2
je 0x41053e
lea eax, [edi + 0x168]
push eax
lea eax, [edi + 0x26c]
push eax
mov byte [edi + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x410609
lea eax, [edi + 0x370]
push eax
push dword [ebp - 0xc]
call fcn.0040ff6a
push eax
push str.550__s_cannot_Rename._n
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x17
mov eax, dword [ebp - 4]
jmp 0x410637
push 0
lea eax, [edi + 0x168]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov esi, eax
cmp esi, 0xffffffff
je 0x41055f
push esi
call fcn.00404008
push esi
mov ebx, eax
mov dword [ebp - 0x18], edx
call dword [sym.imp.KERNEL32.dll__lclose]
push dword [ebp - 0x18]
push ebx
push str.213__lld_n
push dword [ebp - 4]
call fcn.004061e5
add esp, 0x10
push 3
jmp 0x4104e9
xor ebx, ebx
cmp dword [ebp - 0x18], ebx
je 0x410549
test byte [edi + 0x30], 2
jne 0x410549
push dword [0x443a7c]
jmp 0x410647
push 1
lea eax, [edi + 0x168]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41057d
mov esi, dword [ebp - 4]
lea eax, [esi + 0x2b0c]
push eax
push dword [ebp - 0xc]
call fcn.0040ff6a
push eax
push dword [0x443a6c]
jmp 0x410629
lea eax, [ebp - 0x14]
push eax
cmp dword [ebp - 0x18], ebx
jne 0x4105d7
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004054c8
movzx eax, word [ebp - 0x28]
push eax
movzx eax, word [ebp - 0x2a]
push eax
movzx eax, word [ebp - 0x2c]
push eax
movzx eax, word [ebp - 0x2e]
push eax
movzx eax, word [ebp - 0x32]
push eax
movzx eax, word [ebp - 0x34]
push eax
push str.213__4d_02d_02d_02d_02d_02d_n
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
jmp 0x41052d
push dword [ebp - 0x18]
call fcn.00405575
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll__lclose]
cmp dword [ebp - 8], ebx
je 0x410611
push dword [0x443a3c]
jmp 0x410647
mov esi, dword [ebp - 4]
lea eax, [esi + 0x2b0c]
push eax
push dword [ebp - 0xc]
call fcn.0040ff6a
push eax
push str.550__s_cannot_Set_FileTime._n
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x17
mov eax, esi
push dword [edi + 4]
call fcn.0040f664
jmp case.0x41030b.23
push dword [0x443a5c]
push dword [edi + 4]
call fcn.00409b75
pop ebx
push dword [ebp - 4]
call fcn.00401019
pop esi
leave
ret