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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b65fc
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x4eb690]
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 0x4d0638
lea ecx, [ebp - 0x4c]
call fcn.00404a80
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
call fcn.0040d0b0
movzx eax, al
test eax, eax
jne 0x4055a3
lea ecx, [ebp + 0xc]
call fcn.0040d0b0
movzx ecx, al
test ecx, ecx
je 0x4055d0
mov byte [ebp - 0x2fd], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00404230
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00404230
mov al, byte [ebp - 0x2fd]
jmp 0x4058e3
lea edx, [ebp + 0xc]
push edx
call fcn.00404bb0
add esp, 4
movzx eax, al
test eax, eax
jne 0x405610
mov byte [ebp - 0x2fe], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00404230
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00404230
mov al, byte [ebp - 0x2fe]
jmp 0x4058e3
mov dword [ebp - 0x2a4], 0
push 0x24c
push 0
lea ecx, [ebp - 0x2a0]
push ecx
call fcn.0048e940
add esp, 0xc
push 0x4d07f8
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00402e60
add esp, 0xc
mov dword [ebp - 0x30c], eax
lea ecx, [ebp - 0x2a4]
push ecx
mov ecx, dword [ebp - 0x30c]
call fcn.00404180
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x2c]
call fcn.00404230
cmp dword [ebp - 0x50], 0xffffffff
jne 0x4056a2
mov byte [ebp - 0x2ff], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00404230
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00404230
mov al, byte [ebp - 0x2ff]
jmp 0x4058e3
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 0x4058af
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x2e0]
call fcn.00404a80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2e0]
push ecx
push 0x4d0634
call fcn.00406f90
add esp, 8
movzx edx, al
test edx, edx
jne 0x405717
lea eax, [ebp - 0x2e0]
push eax
push 0x4d0800
call fcn.00406f90
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x405744
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.00404230
jmp 0x4056bf
push 0
lea ecx, [ebp - 0x2e0]
call fcn.00404180
push eax
lea ecx, [ebp - 0x4c]
call fcn.004027d0
cmp eax, 0xffffffff
jne 0x40578c
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.00404230
jmp 0x4056bf
push 0x4d0808
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x2c4]
push eax
call fcn.00402e60
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2e0]
push ecx
lea ecx, [ebp - 0x2c4]
call fcn.004026e0
push 0x4d080c
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x2fc]
push eax
call fcn.00402e60
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.00404180
push eax
lea ecx, [ebp - 0x304]
call fcn.00404020
mov byte [ebp - 4], 5
lea edi, [ebp - 0x304]
lea esi, [ebp - 0x2a8]
call fcn.00470020
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x304]
call fcn.00404120
lea ecx, [ebp - 0x2a8]
call fcn.0041abb0
push eax
lea ecx, [ebp - 0x2c4]
call fcn.00404180
push eax
call fcn.0048bf5d
add esp, 8
push 8
push 0
lea ecx, [ebp - 0x2a8]
call fcn.0041abb0
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.00404120
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2fc]
call fcn.00404230
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c4]
call fcn.00404230
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2e0]
call fcn.00404230
jmp 0x4056bf
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.00404230
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00404230
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.0048a346
mov esp, ebp
pop ebp
ret