Function at 0x40f670
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x45727b
mov eax, dword fs:[0]
push eax
sub esp, 0x570
mov eax, dword [0x46be4c]
xor eax, esp
mov dword [esp + 0x56c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46be4c]
xor eax, esp
push eax
lea eax, [esp + 0x584]
mov dword fs:[0], eax
mov eax, dword [esp + 0x598]
mov edi, dword [esp + 0x594]
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], eax
call fcn.004316f5
mov ecx, dword [eax + 4]
call fcn.00437e68
xor ebx, ebx
mov dword [esp + 0x58c], ebx
mov dword [esp + 0x24], ebx
call fcn.004316f5
cmp edi, ebx
mov ecx, dword [eax + 4]
mov dword [esp + 0x18], ecx
jne 0x40f706
lea ecx, [esp + 0x17]
mov dword [esp + 0x58c], 0xffffffff
call fcn.00407ac0
xor eax, eax
jmp 0x40f93a
push str.winspool.drv
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x40f922
push str.DeletePrinterDriverPackageA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [esp + 0x2c], eax
je 0x40f922
push 0x103
lea edx, [esp + 0x279]
push ebx
push edx
mov byte [esp + 0x280], bl
call fcn.004413c0
push 0x103
lea eax, [esp + 0x181]
push ebx
push eax
mov byte [esp + 0x188], bl
call fcn.004413c0
push 0x103
lea ecx, [esp + 0x499]
push ebx
push ecx
mov byte [esp + 0x4a0], bl
call fcn.004413c0
push ebx
push ebx
push ebx
push ebx
push 0x104
lea edx, [esp + 0x1a8]
push edx
push 0x104
lea eax, [esp + 0x2b4]
push eax
push edi
mov ebp, 1
call fcn.004428b3
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
add esp, 0x48
lea ecx, [esp + 0x274]
push ecx
call esi
lea edx, [esp + 0x170]
push edx
call esi
lea eax, [esp + 0x170]
push eax
lea ecx, [esp + 0x278]
push ecx
push str._s_s
push 0xffffffffffffffff
lea edx, [esp + 0x48c]
push 0x104
push edx
call fcn.004424f1
push 0x103
lea eax, [esp + 0x395]
push ebx
push eax
mov byte [esp + 0x39c], bl
call fcn.004413c0
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx + 0x1ac]
add esp, 0x24
add edx, ebp
mov dword [esp + 0x1c], ebx
je 0x40f90b
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
jmp 0x40f830
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x480]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40f8e2
mov ebp, 1
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x174]
push eax
push 0x45ccb8
push 0xffffffffffffffff
lea ecx, [esp + 0x388]
push 0x104
push ecx
call fcn.004424f1
add esp, 0x18
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
lea edx, [esp + 0x390]
push edx
call edi
cmp eax, 0xffffffff
jne 0x40f962
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x40f8ab
xor ebp, ebp
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, ebx
jne 0x40f853
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp ebp, 1
je 0x40f907
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
cmp edx, dword [ecx + 0x1ac]
jae 0x40f8e2
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, dword [ecx + 0x1ac]
add eax, 1
add edx, 1
cmp eax, edx
mov dword [esp + 0x1c], eax
jb 0x40f830
cmp ebp, 1
jne 0x40f922
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
push eax
push edi
push ebx
call dword [esp + 0x38]
test eax, eax
jne 0x40f922
mov dword [esp + 0x24], 1
lea ecx, [esp + 0x17]
mov dword [esp + 0x58c], 0xffffffff
call fcn.00407ac0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x584]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x56c]
xor ecx, esp
call fcn.0044027a
add esp, 0x57c
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40f8ab