Function at 0x46e480
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5ac
mov eax, dword [0x4e412c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x598], 0
mov dword [ebp - 0x324], 0
mov dword [ebp - 0x594], 0
xor eax, eax
mov dword [ebp - 0x590], eax
mov dword [ebp - 0x58c], eax
mov dword [ebp - 0x588], eax
mov dword [ebp - 0x584], eax
mov dword [ebp - 0x580], eax
mov dword [ebp - 0x57c], eax
push 0x4cb6a8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x59c], eax
cmp dword [ebp - 0x59c], 0
jne 0x46e4f8
xor eax, eax
jmp 0x46e7b4
push str.SetupGetInfDriverStoreLocationA
mov ecx, dword [ebp - 0x59c]
push ecx
call dword [0x4e56bc]
mov dword [ebp - 0x5a4], eax
cmp dword [ebp - 0x5a4], 0
jne 0x46e52d
mov edx, dword [ebp - 0x59c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x46e7b4
push str.winspool.drv
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x574], eax
cmp dword [ebp - 0x574], 0
jne 0x46e55b
mov eax, dword [ebp - 0x59c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x46e7b4
push str.DeletePrinterDriverPackageA
mov ecx, dword [ebp - 0x574]
push ecx
call dword [0x4e56bc]
mov dword [ebp - 0x578], eax
cmp dword [ebp - 0x578], 0
jne 0x46e59d
mov edx, dword [ebp - 0x59c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x574]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x46e7b4
push 0x104
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x320]
push eax
call fcn.00489ae0
add esp, 8
push 0x4cb704
lea ecx, [ebp - 0x320]
push ecx
call fcn.00489af0
add esp, 8
push 0x4cb70c
lea edx, [ebp - 0x320]
push edx
call fcn.00489af0
add esp, 8
lea eax, [ebp - 0x570]
push eax
lea ecx, [ebp - 0x320]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x5a8], eax
cmp dword [ebp - 0x5a8], 0xffffffff
je 0x46e794
cmp dword [ebp - 0x324], 0
jne 0x46e787
mov dword [ebp - 0x5ac], 0
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x218]
push eax
call fcn.00489ae0
add esp, 8
push 0x4cb718
lea ecx, [ebp - 0x218]
push ecx
call fcn.00489af0
add esp, 8
lea edx, [ebp - 0x544]
push edx
lea eax, [ebp - 0x218]
push eax
call fcn.00489af0
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x218]
push eax
call fcn.0046f2f0
add esp, 0xc
mov dword [ebp - 0x598], eax
cmp dword [ebp - 0x598], 0
je 0x46e760
mov dword [ebp - 0x594], 0x1c
mov dword [ebp - 0x590], 2
mov dword [ebp - 0x58c], 6
mov dword [ebp - 0x588], 0
push 0x4cb720
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004405d0
add esp, 8
test eax, eax
jne 0x46e6dd
mov word [ebp - 0x584], 9
jmp 0x46e6e6
mov word [ebp - 0x584], 0
push 0
push 0x104
lea edx, [ebp - 0x430]
push edx
push 0
lea eax, [ebp - 0x594]
push eax
lea ecx, [ebp - 0x544]
push ecx
call dword [ebp - 0x5a4]
mov dword [ebp - 0x598], eax
cmp dword [ebp - 0x598], 0
jne 0x46e73e
push 0
push 0x104
lea edx, [ebp - 0x430]
push edx
push 0
push 0
lea eax, [ebp - 0x544]
push eax
call dword [ebp - 0x5a4]
mov dword [ebp - 0x598], eax
cmp dword [ebp - 0x598], 0
je 0x46e760
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x430]
push edx
push 0
call dword [ebp - 0x578]
mov dword [ebp - 0x5a0], eax
lea eax, [ebp - 0x570]
push eax
mov ecx, dword [ebp - 0x5a8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x46e782
mov dword [ebp - 0x324], 1
jmp 0x46e614
mov edx, dword [ebp - 0x5a8]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x59c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x574]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x598]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488550
mov esp, ebp
pop ebp
ret