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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8bdb
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
mov eax, dword [0x50c4d8]
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 esi, ecx
push 0x4ede10
mov edx, esi
lea ecx, [ebp - 0x88]
call fcn.00411250
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2d8]
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
push ecx
cmovae eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40f7d8
lea esp, [esp]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [ebp - 0x2ac], ax
je 0x40f665
lea eax, [ebp - 0x2ac]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f656
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x28]
call fcn.00407100
push 1
push 0x4ede1c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
push dword [ebp - 0x18]
push 0
call fcn.004063d0
test eax, eax
je 0x40f7a6
push 2
push 0x4ede20
push dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
push 0
call fcn.004063d0
test eax, eax
je 0x40f7a6
test byte [ebp - 0x2d8], 0x10
lea ecx, [ebp - 0x58]
push 0x4eddec
mov edx, esi
je 0x40f73c
call fcn.00411250
add esp, 4
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
push ecx
mov edx, eax
lea ecx, [ebp - 0x70]
call fcn.00411380
add esp, 4
mov byte [ebp - 4], 4
cmp dword [ebp - 0x44], 8
jb 0x40f6f6
push dword [ebp - 0x58]
call fcn.00473980
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
call fcn.0040f2a0
cmp dword [ebp - 0x5c], 8
jb 0x40f723
push dword [ebp - 0x70]
call fcn.00473980
add esp, 4
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
mov byte [ebp - 4], al
jmp 0x40f7aa
call fcn.00411250
add esp, 4
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
push ecx
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.00411380
add esp, 4
cmp dword [ebp - 0x44], 8
jb 0x40f76a
push dword [ebp - 0x58]
call fcn.00473980
add esp, 4
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 4
cmovae eax, dword [ebp - 0x40]
push 0
push eax
call ebx
cmp dword [ebp - 0x2c], 8
jb 0x40f78d
push dword [ebp - 0x40]
call fcn.00473980
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov byte [ebp - 4], al
jmp 0x40f7aa
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 8
jb 0x40f7bb
push dword [ebp - 0x28]
call fcn.00473980
add esp, 4
lea eax, [ebp - 0x2d8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40f630
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esi + 0x14], 8
jb 0x40f7e0
mov esi, dword [esi]
push 4
push 0
push esi
call ebx
cmp dword [ebp - 0x74], 8
jb 0x40f7fb
push dword [ebp - 0x88]
call fcn.00473980
add esp, 4
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.004921c3
mov esp, ebp
pop ebp
ret