Function at 0x45f29a
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aba96
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4b8
push edi
mov dword [ebp - 0x4c4], ecx
lea eax, [ebp - 0x4a8]
push eax
lea ecx, [ebp - 0x120]
call fcn.00489280
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x4ac]
push ecx
lea ecx, [ebp - 0x140]
call fcn.00489280
mov byte [ebp - 4], 1
mov byte [ebp - 0x110], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edx, dword [ebp + 8]
push edx
push 0x104
lea eax, [ebp - 0x110]
push eax
call fcn.00409000
lea ecx, [ebp - 0x120]
call fcn.00417240
lea ecx, [ebp - 0x140]
call fcn.00417240
lea ecx, [ebp - 0x120]
push ecx
push 0x518510
lea edx, [ebp - 0x110]
push edx
call fcn.0042343e
add esp, 0xc
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x12c], 0
jmp 0x45f37a
mov ecx, dword [ebp - 0x12c]
add ecx, 1
mov dword [ebp - 0x12c], ecx
mov edx, dword [ebp - 0x12c]
cmp edx, dword [ebp - 0x130]
jae 0x45f635
mov eax, dword [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x120]
call fcn.0047b020
mov ecx, eax
call fcn.004155c0
mov dword [ebp - 0x148], eax
mov ecx, dword [ebp - 0x148]
add ecx, 2
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x4b0], eax
mov edx, dword [ebp - 0x4b0]
mov dword [ebp - 0x144], edx
mov eax, dword [ebp - 0x148]
add eax, 2
push eax
push 0
mov ecx, dword [ebp - 0x144]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
push 0
mov edx, dword [ebp - 0x12c]
push edx
lea ecx, [ebp - 0x120]
call fcn.0047b020
mov ecx, eax
call fcn.004093c0
push eax
mov eax, dword [ebp - 0x148]
add eax, 2
push eax
mov ecx, dword [ebp - 0x144]
push ecx
call fcn.00409000
push 0x518514
mov edx, dword [ebp - 0x144]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x45f44c
push 0x518518
mov eax, dword [ebp - 0x144]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x45f5b8
mov dword [ebp - 0x14c], 1
lea ecx, [ebp - 0x290]
push ecx
mov edx, dword [ebp - 0x144]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x150], eax
jmp 0x45f48c
lea eax, [ebp - 0x290]
push eax
mov ecx, dword [ebp - 0x150]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x150], 0xffffffff
je 0x45f5b6
cmp dword [ebp - 0x14c], 0
je 0x45f5b6
mov edx, dword [ebp - 0x290]
and edx, 0x10
test edx, edx
jne 0x45f5b1
mov byte [ebp - 0x398], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x397]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x49c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x49b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x4a4], 0x5c
mov eax, dword [ebp - 0x4a4]
push eax
mov ecx, dword [ebp - 0x144]
push ecx
call dword [sym.imp.ntdll.dll_strrchr]
add esp, 8
mov dword [ebp - 0x4a0], eax
cmp dword [ebp - 0x4a0], 0
je 0x45f5b1
mov edx, dword [ebp - 0x4a0]
sub edx, dword [ebp - 0x144]
add edx, 1
mov dword [ebp - 0x294], edx
mov eax, dword [ebp - 0x294]
push eax
mov ecx, dword [ebp - 0x144]
push ecx
lea edx, [ebp - 0x398]
push edx
call sub.ntdll.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x264]
push eax
push 0x104
lea ecx, [ebp - 0x398]
push ecx
call fcn.00407f00
lea edx, [ebp - 0x398]
push edx
call fcn.0042b4af
add esp, 4
test eax, eax
je 0x45f5b1
lea eax, [ebp - 0x398]
push eax
lea ecx, [ebp - 0x4b4]
call fcn.00415500
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4b4]
push ecx
lea ecx, [ebp - 0x140]
call fcn.00417210
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4b4]
call fcn.00409510
jmp 0x45f472
jmp 0x45f602
mov edx, dword [ebp - 0x144]
push edx
call fcn.0042b4af
add esp, 4
test eax, eax
je 0x45f602
mov eax, dword [ebp - 0x144]
push eax
lea ecx, [ebp - 0x4b8]
call fcn.00415500
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4b8]
push ecx
lea ecx, [ebp - 0x140]
call fcn.00417210
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4b8]
call fcn.00409510
cmp dword [ebp - 0x144], 0
je 0x45f626
mov edx, dword [ebp - 0x144]
mov dword [ebp - 0x4bc], edx
mov eax, dword [ebp - 0x4bc]
push eax
call fcn.004a90a8
add esp, 4
mov dword [ebp - 0x144], 0
jmp 0x45f36b
mov dword [ebp - 0x124], 0
jmp 0x45f650
mov ecx, dword [ebp - 0x124]
add ecx, 1
mov dword [ebp - 0x124], ecx
lea ecx, [ebp - 0x140]
call fcn.0047afe0
cmp dword [ebp - 0x124], eax
jae 0x45f687
push 0
mov edx, dword [ebp - 0x124]
push edx
lea ecx, [ebp - 0x140]
call fcn.0047b020
mov ecx, eax
call fcn.004093c0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x45f641
mov dword [ebp - 0x4c0], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x140]
call fcn.004171b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.004171b0
mov eax, dword [ebp - 0x4c0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 4