Function at 0x4097a0
Capabilities:
Create directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40bd94
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x41100c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x280], ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x264]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x288], ebx
mov dword [ebp - 0x28c], eax
call dword [sym.imp.mfc120u.dll_Ordinal_296]
lea ecx, [ebp - 0x270]
mov dword [ebp - 4], 0
call dword [sym.imp.mfc120u.dll_Ordinal_296]
lea ecx, [ebp - 0x278]
call dword [sym.imp.mfc120u.dll_Ordinal_296]
push ebx
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 2
mov esi, dword [sym.imp.mfc120u.dll_Ordinal_4772]
push str._s_.
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0x27c], ebx
cmp ebx, 0xffffffff
je 0x409a73
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x264]
push 0x40da24
push eax
call esi
add esp, 0xc
lea ecx, [ebp - 0x264]
push dword [ebp - 0x270]
call dword [sym.imp.mfc120u.dll_Ordinal_2948]
test eax, eax
je 0x409a73
push 0x40da2c
lea ecx, [ebp - 0x264]
call dword [sym.imp.mfc120u.dll_Ordinal_2948]
test eax, eax
je 0x409a5b
push str.Thumbs.db
lea ecx, [ebp - 0x264]
call dword [sym.imp.mfc120u.dll_Ordinal_2948]
test eax, eax
je 0x409a5b
mov eax, dword [ebp - 0x264]
cmp dword [eax - 0xc], 0
jle 0x409a5b
lea ecx, [ebp - 0x26c]
call dword [sym.imp.mfc120u.dll_Ordinal_296]
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 3
push eax
push dword [ebp - 0x288]
lea eax, [ebp - 0x26c]
push str._s__s
push eax
call esi
add esp, 0x10
lea ecx, [ebp - 0x268]
call dword [sym.imp.mfc120u.dll_Ordinal_296]
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 4
push eax
push dword [ebp - 0x28c]
lea eax, [ebp - 0x268]
push str._s__s
push eax
call esi
add esp, 0x10
cmp dword [ebp - 0x240], 0
jne 0x40997a
push 0
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
lea ecx, [ebp - 0x268]
call dword [sym.imp.mfc120u.dll_Ordinal_5019]
push eax
push 0
lea ecx, [ebp - 0x26c]
call dword [sym.imp.mfc120u.dll_Ordinal_5019]
mov ecx, dword [ebp - 0x280]
push eax
call fcn.004097a0
jmp 0x409a3f
push 3
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x26c]
call dword [sym.imp.mfc120u.dll_Ordinal_12792]
push 0x40da48
mov ecx, eax
mov byte [ebp - 4], 5
call dword [sym.imp.mfc120u.dll_Ordinal_2948]
test eax, eax
lea ecx, [ebp - 0x284]
setne bl
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
test bl, bl
je 0x409a39
push dword [ebp - 0x268]
call edi
test eax, eax
jne 0x409a27
lea ecx, [ebp - 0x274]
call dword [sym.imp.mfc120u.dll_Ordinal_296]
mov byte [ebp - 4], 6
lea eax, [ebp - 0x274]
push dword [ebp - 0x268]
push str._s.utmp
push eax
call esi
add esp, 0xc
push dword [ebp - 0x274]
call edi
push 0
lea ecx, [ebp - 0x274]
call dword [sym.imp.mfc120u.dll_Ordinal_5019]
push eax
push 0
lea ecx, [ebp - 0x268]
call dword [sym.imp.mfc120u.dll_Ordinal_5019]
push eax
call dword [sym.imp.MSVCR120.dll__wrename]
add esp, 8
lea ecx, [ebp - 0x274]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
push dword [ebp - 0x268]
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ebx, dword [ebp - 0x27c]
lea ecx, [ebp - 0x268]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x270]
call dword [sym.imp.mfc120u.dll_Ordinal_1518]
jmp 0x409857
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x278]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
lea ecx, [ebp - 0x270]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
lea ecx, [ebp - 0x264]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a185
mov esp, ebp
pop ebp
ret 8