Function at 0x470f60
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3310
call fcn.004894c0
mov eax, dword [0x4e412c]
xor eax, ebp
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0x10]
push eax
call fcn.00471440
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00471480
add esp, 4
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
mov ecx, dword [ebp - 0x18]
push ecx
push str.scanDriverByName___s__begin_n
push 0
call fcn.004714b0
add esp, 0xc
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 3
mov ecx, dword [ebp - 0x18]
push ecx
push 0
call sub.WINSPOOL.DRV_EnumPrinterDriversA
test eax, eax
jne 0x47116b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x471148
mov edx, dword [ebp - 0x10]
push edx
call fcn.0047645c
add esp, 4
mov dword [ebp - 0x32fc], eax
mov eax, dword [ebp - 0x32fc]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 3
mov edx, dword [ebp - 0x18]
push edx
push 0
call sub.WINSPOOL.DRV_EnumPrinterDriversA
test eax, eax
jne 0x47105f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LTenumUnfs__:_EnumPrinterDrivers___2nd_fail__d__n
push 2
call fcn.004714b0
add esp, 0xc
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x3300], eax
mov ecx, dword [ebp - 0x3300]
push ecx
call fcn.00476457
add esp, 4
xor eax, eax
jmp 0x47142f
mov edx, dword [ebp - 0xc]
push edx
push str.scanDriverByName_found___d___n
push 0
call fcn.004714b0
add esp, 0xc
mov dword [ebp - 0x20], 0
jmp 0x471084
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0xc]
jae 0x47112e
mov edx, dword [ebp - 0x20]
imul edx, edx, 0x28
add edx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
cmp dword [eax + 4], 0
je 0x471129
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 4]
push eax
call fcn.0049c8ee
add esp, 8
test eax, eax
jne 0x471129
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
and edx, 0xff
cmp edx, dword [ebp - 4]
jne 0x471129
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x2970], 0
mov edx, dword [ebp + 0xc]
mov byte [edx + 0x2804], 0
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x296c], 1
push 0x4cbe3c
mov ecx, dword [ebp + 0xc]
add ecx, 0x2908
push ecx
call fcn.00489ae0
add esp, 8
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
mov dword [edx + 0x2974], eax
mov dword [ebp - 0x14], 1
jmp 0x47112e
jmp 0x47107b
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x3304], ecx
mov edx, dword [ebp - 0x3304]
push edx
call fcn.00476457
add esp, 4
jmp 0x471169
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LTenumUnfs__:_EnumPrinterDrivers___1st_fail__d__env__s__n
push 2
call fcn.004714b0
add esp, 0x10
xor eax, eax
jmp 0x47142f
jmp 0x471188
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LTenumUnfs__:_EnumPrinterDrivers___1st_success___d__n
push 2
call fcn.004714b0
add esp, 0xc
xor eax, eax
jmp 0x47142f
cmp dword [ebp - 0x14], 0
jne 0x471195
xor eax, eax
jmp 0x47142f
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 1
mov edx, dword [ebp - 0x18]
push edx
push 0
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryA
test eax, eax
jne 0x47140c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x47140c
mov eax, dword [ebp - 0x10]
add eax, 0x64
push eax
call fcn.0047645c
add esp, 4
mov dword [ebp - 0x3308], eax
mov ecx, dword [ebp - 0x3308]
mov dword [ebp - 0x42c], ecx
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x42c]
push ecx
push 1
mov edx, dword [ebp - 0x18]
push edx
push 0
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryA
test eax, eax
jne 0x47123a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.scanDriverByName___:_GetPrinterDriverDirectory___:_fail__d__n
push 2
call fcn.004714b0
add esp, 0xc
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x330c], eax
mov ecx, dword [ebp - 0x330c]
push ecx
call fcn.00476457
add esp, 4
xor eax, eax
jmp 0x47142f
call fcn.00473800
and eax, 1
je 0x47124e
mov edx, dword [ebp + 0x10]
and edx, 1
je 0x47124e
jmp 0x4712b1
mov byte [ebp - 0x430], 0
mov byte [ebp - 0x42f], 0
mov eax, dword [ebp - 0x42c]
push eax
call fcn.00489c70
add esp, 4
mov ecx, dword [ebp - 0x42c]
movsx edx, byte [ecx + eax - 1]
cmp edx, 0x5c
je 0x47128f
push 0x4cbef4
mov eax, dword [ebp - 0x42c]
push eax
call fcn.00489af0
add esp, 8
mov ecx, dword [ebp - 4]
add ecx, 0x30
mov byte [ebp - 0x430], cl
lea edx, [ebp - 0x430]
push edx
mov eax, dword [ebp - 0x42c]
push eax
call fcn.00489af0
add esp, 8
mov ecx, dword [ebp - 0x42c]
push ecx
call fcn.00489c70
add esp, 4
mov edx, dword [ebp - 0x42c]
movsx eax, byte [edx + eax - 1]
cmp eax, 0x5c
je 0x4712e4
push 0x4cbef8
mov ecx, dword [ebp - 0x42c]
push ecx
call fcn.00489af0
add esp, 8
mov edx, dword [ebp - 0x42c]
push edx
lea eax, [ebp - 0x428]
push eax
call fcn.00489ae0
add esp, 8
push str..unf
mov ecx, dword [ebp - 0x42c]
push ecx
call fcn.00489af0
add esp, 8
mov edx, dword [ebp - 0x42c]
push edx
push str.scanDriverByName___:_path__s__n
push 0
call fcn.004714b0
add esp, 0xc
push 0x140
push 0
lea eax, [ebp - 0x578]
push eax
call fcn.004886d0
add esp, 0xc
lea ecx, [ebp - 0x578]
push ecx
mov edx, dword [ebp - 0x42c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0
je 0x4713f1
cmp dword [ebp - 0x434], 0xffffffff
je 0x4713f1
lea eax, [ebp - 0x54c]
push eax
lea ecx, [ebp - 0x428]
push ecx
push 0x4cbf24
lea edx, [ebp - 0x978]
push edx
call fcn.00489bd8
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x32f8]
push ecx
lea edx, [ebp - 0x978]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004704c0
add esp, 0x10
test eax, eax
je 0x4713cc
push 0x297c
lea ecx, [ebp - 0x32f8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00489120
add esp, 0xc
jmp 0x4713e4
lea eax, [ebp - 0x578]
push eax
mov ecx, dword [ebp - 0x434]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x47136e
mov edx, dword [ebp - 0x434]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x3310], eax
mov ecx, dword [ebp - 0x3310]
push ecx
call fcn.00476457
add esp, 4
mov edx, dword [ebp + 0xc]
add edx, 0x2804
push edx
call fcn.00489c70
add esp, 4
neg eax
sbb eax, eax
add eax, 1
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, 1
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.00488550
mov esp, ebp
pop ebp
ret