Function at 0x4020d0
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40a12b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x380
mov eax, dword [str.VlZ6LdKiJtt7hQ0BCp0SFG5wKkvZRURR2Fu9GG418I]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x380], eax
push edi
xor edi, edi
mov eax, esi
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], edi
mov byte [esp + 0x18], 0
lea edx, [eax + 1]
jmp 0x402120
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402120
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00401ce0
mov eax, dword [esp + 0x2c]
mov esi, 0x10
cmp eax, esi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x394], edi
jae 0x402150
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x28]
cmp byte [eax + ecx - 1], 0x5c
je 0x40216b
push 1
push 0x40b214
lea ecx, [esp + 0x1c]
call fcn.00401bd0
push 1
push 0x40b210
lea ecx, [esp + 0x1c]
call fcn.00401bd0
cmp dword [esp + 0x2c], esi
mov eax, dword [esp + 0x18]
jae 0x402189
lea eax, [esp + 0x18]
lea edx, [esp + 0x240]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x4021aa
cmp dword [esp + 0x2c], esi
jmp 0x40223b
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x138]
rep stosd dword es:[edi], eax
jmp 0x4021d0
push 0x40b20c
lea ecx, [esp + 0x270]
push ecx
call esi
test eax, eax
je 0x4022bd
push 0x40b208
lea edx, [esp + 0x270]
push edx
call esi
test eax, eax
je 0x4022bd
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x26c]
push eax
push ecx
lea edx, [esp + 0x140]
push edx
call ebx
test byte [esp + 0x240], 0x10
je 0x402255
lea eax, [esp + 0x138]
push eax
call fcn.004020d0
add esp, 4
test eax, eax
jne 0x4022bd
cmp dword [esp + 0x2c], 0x10
jb 0x40232d
mov eax, dword [esp + 0x18]
push eax
call fcn.00404753
add esp, 4
xor eax, eax
jmp 0x4022f8
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x138]
push ecx
lea edx, [esp + 0x34]
push str._s_pre
push edx
call fcn.00404c0e
add esp, 0xc
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x402296
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x13c]
push eax
call fcn.00404be0
add esp, 8
test eax, eax
jne 0x402319
push 4
push eax
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov edi, dword [esp + 0x10]
lea edx, [esp + 0x240]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4021d0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x2c], 0x10
jb 0x4022f3
mov edx, dword [esp + 0x18]
push edx
call fcn.00404753
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x38c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x384]
call fcn.004046be
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x2c], 0x10
jb 0x40232d
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00404753
add esp, 4
xor eax, eax
jmp 0x4022f8