Function at 0x405670
Capabilities:
Delete file
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac7ac
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x4e06b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
push 0x4c51b0
lea ecx, [ebp - 0x4c]
call fcn.00404bb0
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
call fcn.004027c0
movzx eax, al
test eax, eax
jne 0x4056d3
lea ecx, [ebp + 0xc]
call fcn.004027c0
movzx ecx, al
test ecx, ecx
je 0x405700
mov byte [ebp - 0x2fd], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00404310
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00404310
mov al, byte [ebp - 0x2fd]
jmp 0x405a13
lea edx, [ebp + 0xc]
push edx
call fcn.00404ce0
add esp, 4
movzx eax, al
test eax, eax
jne 0x405740
mov byte [ebp - 0x2fe], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00404310
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00404310
mov al, byte [ebp - 0x2fe]
jmp 0x405a13
mov dword [ebp - 0x2a4], 0
push 0x24c
push 0
lea ecx, [ebp - 0x2a0]
push ecx
call fcn.00487e90
add esp, 0xc
push 0x4c5370
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00402ea0
add esp, 0xc
mov dword [ebp - 0x30c], eax
lea ecx, [ebp - 0x2a4]
push ecx
mov ecx, dword [ebp - 0x30c]
call fcn.00404260
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x2c]
call fcn.00404310
cmp dword [ebp - 0x50], 0xffffffff
jne 0x4057d2
mov byte [ebp - 0x2ff], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00404310
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00404310
mov al, byte [ebp - 0x2ff]
jmp 0x405a13
mov byte [ebp - 0x2d], 1
lea edx, [ebp - 0x2a4]
push edx
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
setne cl
mov byte [ebp - 0x51], cl
movzx edx, byte [ebp - 0x51]
test edx, edx
je 0x4059df
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x2e0]
call fcn.00404bb0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2e0]
push ecx
push 0x4c5378
call fcn.00407080
add esp, 8
movzx edx, al
test edx, edx
jne 0x405847
lea eax, [ebp - 0x2e0]
push eax
push 0x4c537c
call fcn.00407080
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x405874
lea edx, [ebp - 0x2a4]
push edx
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
setne cl
mov byte [ebp - 0x51], cl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2e0]
call fcn.00404310
jmp 0x4057ef
push 0
lea ecx, [ebp - 0x2e0]
call fcn.00404260
push eax
lea ecx, [ebp - 0x4c]
call fcn.00402810
cmp eax, 0xffffffff
jne 0x4058bc
lea edx, [ebp - 0x2a4]
push edx
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
setne cl
mov byte [ebp - 0x51], cl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2e0]
call fcn.00404310
jmp 0x4057ef
push 0x4c5384
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x2c4]
push eax
call fcn.00402ea0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2e0]
push ecx
lea ecx, [ebp - 0x2c4]
call fcn.004026e0
push 0x4c5388
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x2fc]
push eax
call fcn.00402ea0
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2e0]
push ecx
lea ecx, [ebp - 0x2fc]
call fcn.004026e0
lea ecx, [ebp - 0x2c4]
call fcn.00404260
push eax
lea ecx, [ebp - 0x304]
call fcn.00404100
mov byte [ebp - 4], 5
lea edi, [ebp - 0x304]
lea esi, [ebp - 0x2a8]
call fcn.004781e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x304]
call fcn.00404200
lea ecx, [ebp - 0x2a8]
call fcn.0040a2e0
push eax
lea ecx, [ebp - 0x2c4]
call fcn.00404260
push eax
call fcn.0048407d
add esp, 8
push 8
push 0
lea ecx, [ebp - 0x2a8]
call fcn.0040a2e0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea edx, [ebp - 0x2a4]
push edx
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
setne cl
mov byte [ebp - 0x51], cl
lea ecx, [ebp - 0x2a8]
call fcn.00404200
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2fc]
call fcn.00404310
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c4]
call fcn.00404310
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2e0]
call fcn.00404310
jmp 0x4057ef
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, byte [ebp - 0x2d]
mov byte [ebp - 0x305], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00404310
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00404310
mov al, byte [ebp - 0x305]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00482469
mov esp, ebp
pop ebp
ret