Function at 0x46d479
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [ebp - 0x34]
mov byte [ebp - 2], bl
mov edi, edx
call fcn.00403f6a
lea ecx, [ebp - 0x54]
call fcn.00403f6a
lea ecx, [ebp - 0x24]
call fcn.00403f6a
lea edx, [ebp - 0x34]
mov ecx, esi
call fcn.0041bdf5
lea edx, [ebp - 0x54]
mov ecx, edi
call fcn.0041bdf5
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x34]
call fcn.0046e56d
push dword [ebp - 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov byte [ebp - 3], al
call esi
mov edi, 0x4c6728
cmp eax, 0xffffffff
je 0x46d4ea
test al, 0x10
je 0x46d4ea
push edi
lea ecx, [ebp - 0x34]
call fcn.004044dd
push dword [ebp - 0x54]
call esi
cmp eax, 0xffffffff
je 0x46d501
test al, 0x10
je 0x46d501
push edi
lea ecx, [ebp - 0x54]
call fcn.004044dd
lea ecx, [ebp - 0x44]
call fcn.00403f6a
lea ecx, [ebp - 0x64]
call fcn.00403f6a
push ebx
lea eax, [ebp - 0x64]
push ebx
push eax
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x34]
call fcn.0041bc41
add esp, 0xc
lea eax, [ebp - 0x2c8]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov al, 1
mov byte [ebp - 1], al
cmp esi, 0xffffffff
je 0x46d67d
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp al, 1
jne 0x46d67d
test byte [ebp - 0x2c8], 0x10
jne 0x46d649
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x74]
call fcn.004045fd
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x74]
call fcn.0046dbe9
pop ecx
lea ecx, [ebp - 0x74]
call fcn.004020f8
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 8], eax
inc dword [eax]
lea eax, [ebp - 0x64]
push eax
call fcn.00404350
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x14]
call fcn.004044dd
mov ecx, dword [ebp - 0x24]
call fcn.0046dff1
cmp eax, 0xffffffff
je 0x46d5f9
cmp byte [ebp + 8], bl
je 0x46d66c
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 1
push 0x400
call dword [sym.imp.KERNEL32.dll_CompareStringW]
test eax, eax
je 0x46d604
add eax, 0xfffffffe
je 0x46d604
push dword [ebp - 0x24]
call edi
cmp byte [ebp + 0xc], 1
jne 0x46d62b
cmp byte [ebp - 3], bl
jne 0x46d612
push dword [ebp - 0x24]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x46d639
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.0046d6b8
movzx eax, al
test eax, eax
je 0x46d66c
push dword [ebp - 0x14]
call edi
jmp 0x46d639
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.0046d6b8
movzx eax, al
test eax, eax
je 0x46d66c
lea ecx, [ebp - 0x14]
call fcn.004020f8
mov byte [ebp - 2], 1
lea eax, [ebp - 0x2c8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov al, byte [ebp - 1]
jne 0x46d54b
mov al, bl
mov byte [ebp - 1], al
jmp 0x46d54b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x14]
call fcn.004020f8
jmp 0x46d687
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, byte [ebp - 2]
lea ecx, [ebp - 0x64]
call fcn.004020f8
lea ecx, [ebp - 0x44]
call fcn.004020f8
lea ecx, [ebp - 0x24]
call fcn.004020f8
lea ecx, [ebp - 0x54]
call fcn.004020f8
lea ecx, [ebp - 0x34]
call fcn.004020f8
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret