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

Disassembly:
push 0xffffffffffffffff
push 0x462fe2
mov eax, dword fs:[0]
push eax
mov eax, 0x1d24
call fcn.0044f450
mov eax, dword [0x47f038]
xor eax, esp
mov dword [esp + 0x1d20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47f038]
xor eax, esp
push eax
lea eax, [esp + 0x1d38]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1d48]
mov ebx, ecx
push edi
xor esi, esi
push str.ProcessSectionRemoveDriverPackage_____s__n
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x44], edi
mov dword [esp + 0x3c], esi
call fcn.004412c0
inc dword [ebx + 0x8cd8]
mov eax, dword [ebx + 0x8cd8]
push eax
push edi
push str.Push___s____index___d__n
call fcn.004412c0
mov eax, dword [ebx + 0x8cd8]
imul eax, eax, 0x88
mov dword [eax + ebx + 0x495c], 0xffffffff
mov edx, dword [ebx + 0x8cd8]
add esp, 0x14
imul edx, edx, 0x88
mov ecx, edi
lea edx, [edx + ebx + 0x48dc]
jmp 0x42a3f0
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, si
jne 0x42a3f0
mov ecx, dword [ebx + 4]
push esi
lea eax, [esp + 0xd38]
push eax
push esi
push edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x40], esi
call 0x409a30
test al, al
je 0x42ac2c
lea ecx, [esp + 0xd34]
push ecx
push esi
push edi
push str.__s___d____s__n
call fcn.004412c0
add esp, 0x10
lea edx, [esp + 0xd34]
push edx
mov ecx, ebx
call fcn.00417110
push 0x1c2d0
call fcn.0044e29f
add esp, 4
mov dword [esp + 0x28], eax
mov dword [esp + 0x1d40], 0
test eax, eax
je 0x42a479
mov ecx, eax
call fcn.004409e0
mov ebp, eax
mov dword [esp + 0x38], eax
jmp 0x42a47f
xor ebp, ebp
mov dword [esp + 0x38], ebp
push 0x46ce98
lea eax, [esp + 0xd38]
push eax
mov ecx, ebp
mov dword [esp + 0x1d48], 0xffffffff
call fcn.00440c30
cmp byte [ebp + 0x1c2cc], 0
je 0x42a4bc
cmp dword [ebp + 0x1c2c8], 0
jg 0x42a4b4
xor eax, eax
jmp 0x42a4ca
lea eax, [ebp + 0x32c8]
jmp 0x42a4ca
xor eax, eax
cmp dword [ebp + 0x1c2c8], eax
setle al
dec eax
and eax, ebp
push str.Package
push eax
call fcn.0044e882
add esp, 8
test eax, eax
jne 0x42ab38
mov edi, 1
add dword [ebx + 0x8cd8], edi
mov ecx, dword [ebx + 0x8cd8]
cmp byte [ebp + 0x1c2cc], al
je 0x42a509
cmp dword [ebp + 0x1c2c8], eax
jle 0x42a517
lea eax, [ebp + 0x32c8]
jmp 0x42a517
xor eax, eax
cmp dword [ebp + 0x1c2c8], eax
setle al
dec eax
and eax, ebp
push ecx
push eax
push str.__Push___s_m_nCurSct___Index___d__n
call fcn.004412c0
mov ecx, dword [ebx + 0x8cd8]
imul ecx, ecx, 0x88
or esi, 0xffffffff
add esp, 0xc
mov dword [ecx + ebx + 0x495c], esi
cmp byte [ebp + 0x1c2cc], 0
je 0x42a55a
cmp dword [ebp + 0x1c2c8], 0
jg 0x42a552
xor ecx, ecx
jmp 0x42a568
lea ecx, [ebp + 0x32c8]
jmp 0x42a568
xor ecx, ecx
cmp dword [ebp + 0x1c2c8], ecx
setle cl
dec ecx
and ecx, ebp
mov edx, dword [ebx + 0x8cd8]
imul edx, edx, 0x88
lea edx, [edx + ebx + 0x48dc]
jmp 0x42a580
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x42a580
add dword [esp + 0x18], edi
xor eax, eax
push 0x7e
push eax
lea ecx, [esp + 0x39e]
push ecx
mov dword [esp + 0x28], esi
mov word [esp + 0x3a0], ax
call fcn.0044e1b0
xor edx, edx
push 0x7e
push edx
lea eax, [esp + 0x32a]
push eax
mov word [esp + 0x32c], dx
call fcn.0044e1b0
mov bl, byte [ebp + 0x1c2cc]
mov esi, dword [ebp + 0x1c2c8]
add esp, 0x18
test bl, bl
je 0x42a5f1
cmp esi, 1
jg 0x42a5e9
xor ecx, ecx
jmp 0x42a600
lea ecx, [ebp + 0x3ac8]
jmp 0x42a600
cmp esi, 1
jg 0x42a5fa
xor ecx, ecx
jmp 0x42a600
lea ecx, [ebp + 0x104]
lea edx, [esp + 0x394]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x42a607
test bl, bl
je 0x42a62d
cmp esi, 2
jg 0x42a625
xor ecx, ecx
jmp 0x42a63c
lea ecx, [ebp + 0x42c8]
jmp 0x42a63c
cmp esi, 2
jg 0x42a636
xor ecx, ecx
jmp 0x42a63c
lea ecx, [ebp + 0x208]
lea edx, [esp + 0x314]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x42a643
lea ecx, [esp + 0x394]
push ecx
push str.___wszCommand_____s__n
call fcn.004412c0
lea edx, [esp + 0x31c]
push edx
push str.___wszClass_____s__n
call fcn.004412c0
lea eax, [esp + 0x3a4]
push str.REG_DB
push eax
call fcn.0044e882
add esp, 0x18
test eax, eax
jne 0x42aaee
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x92e]
push edx
mov word [esp + 0x930], cx
call fcn.0044e1b0
add esp, 0xc
cmp byte [ebp + 0x1c2cc], 0
je 0x42a6d3
cmp dword [ebp + 0x1c2c8], 3
jg 0x42a6cb
xor eax, eax
jmp 0x42a6e6
lea eax, [ebp + 0x4ac8]
jmp 0x42a6e6
cmp dword [ebp + 0x1c2c8], 3
jg 0x42a6e0
xor eax, eax
jmp 0x42a6e6
lea eax, [ebp + 0x30c]
push eax
lea eax, [esp + 0x928]
push str._sDrivers
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [esp + 0x930]
push ecx
push str.___Driver_DB_key___s__n
call fcn.004412c0
push 0x20019
lea edx, [esp + 0x93c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0044d9c0
mov esi, eax
add esp, 0x20
test esi, esi
jbe 0x42aaee
imul eax, eax, 0x104
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044e993
mov edi, eax
add esp, 4
test edi, edi
je 0x42aaee
push 0x20019
push esi
push edi
lea eax, [esp + 0x930]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0044d9e0
add esp, 0x14
test eax, eax
jle 0x42aaee
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], eax
push edi
push str._______Driver___s__n
call fcn.004412c0
add esp, 8
push 0x104
lea ecx, [esp + 0xb30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 0xb2c]
push edx
lea eax, [esp + 0x720]
push str._sinfoem.inf
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [esp + 0xc4]
push ecx
lea edx, [esp + 0x720]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x2c], eax
cmp eax, 0xffffffff
je 0x42aad5
jmp 0x42a7f0
lea eax, [esp + 0xf0]
push eax
lea ecx, [esp + 0xb30]
push ecx
lea edx, [esp + 0x724]
push str._sinf_s
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x4fc8
call fcn.0044e29f
add esp, 0x14
mov dword [esp + 0x20], eax
mov dword [esp + 0x1d40], 1
test eax, eax
je 0x42a848
push 0
lea ecx, [esp + 0x720]
push ecx
mov ecx, eax
call fcn.00442710
mov ebp, eax
jmp 0x42a84a
xor ebp, ebp
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx + 0xc]
push edx
lea eax, [esp + 0x720]
push eax
mov dword [esp + 0x1d48], 0xffffffff
call fcn.00445560
test al, al
je 0x42aa97
lea edx, [esp + 0x314]
push edx
mov ecx, ebp
call fcn.00441ae0
push eax
call fcn.0044e882
add esp, 8
test eax, eax
jne 0x42aa97
lea ecx, [esp + 0x68]
xor bl, bl
call fcn.00407d10
lea eax, [esp + 0x68]
push eax
mov ecx, ebp
mov dword [esp + 0x1d44], 2
call fcn.00442920
test eax, eax
je 0x42aa83
lea ecx, [esp + 0x50]
call fcn.00407d10
mov ecx, dword [esp + 0x68]
mov eax, dword [ecx]
push eax
push str.MANUF____s__n
mov byte [esp + 0x1d48], 3
call fcn.004412c0
mov edx, dword [esp + 0x70]
mov ecx, dword [edx]
add esp, 8
lea edx, [esp + 0x514]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x42a8f2
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x518]
push ecx
mov ecx, ebp
call fcn.00442a10
mov edi, eax
xor esi, esi
test edi, edi
jle 0x42a953
nop
mov edx, dword [esp + 0x50]
mov eax, dword [edx + esi*8]
push eax
push esi
push str._____saModels__d___s_n
call fcn.004412c0
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x20]
mov eax, dword [eax + esi*8]
push ecx
push eax
call fcn.0044e882
add esp, 0x14
test eax, eax
jne 0x42a94e
mov bl, 1
inc esi
cmp esi, edi
jl 0x42a920
lea ecx, [esp + 0x50]
call fcn.00407cb0
lea ecx, [esp + 0x68]
call fcn.00407cb0
lea ecx, [esp + 0x50]
mov byte [esp + 0x1d40], 2
call fcn.00407e50
test bl, bl
je 0x42aa83
lea edx, [esp + 0x71c]
push edx
push str.____Found_Inf___s__n
call fcn.004412c0
push 0x206
xor edi, edi
lea ecx, [esp + 0x522]
xor eax, eax
push edi
push ecx
mov word [esp + 0x528], ax
call fcn.0044e1b0
lea edx, [esp + 0x730]
push edx
lea eax, [esp + 0x52c]
push str.pnputil__f__d__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [esp + 0x534]
push ecx
push str.____Run___s__n
call fcn.004412c0
xor eax, eax
push 0x44
lea edx, [esp + 0xac]
push edi
push edx
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
call fcn.0044e1b0
add esp, 0x34
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x84]
push edx
push edi
push edi
push edi
push edi
xor eax, eax
push edi
mov word [esp + 0xcc], ax
push edi
lea eax, [esp + 0x534]
push eax
mov esi, 1
push edi
mov dword [esp + 0xa8], 0x44
mov dword [esp + 0xd4], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x42aa7f
mov dword [esp + 0x20], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [esp + 0x1c], esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, 0x103
push 0x1f4
call esi
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x20]
push ecx
push edx
call edi
cmp dword [esp + 0x20], ebx
je 0x42aa64
jmp 0x42aa83
mov dword [esp + 0x1c], edi
lea ecx, [esp + 0x68]
mov dword [esp + 0x1d40], 0xffffffff
call fcn.00407e50
test ebp, ebp
je 0x42aaab
mov ecx, ebp
call fcn.00443470
push ebp
call fcn.0044e22a
add esp, 4
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0xc4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42a7f0
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, dword [esp + 0x38]
mov edi, dword [esp + 0x14]
add edi, 0x208
sub dword [esp + 0x28], 1
mov dword [esp + 0x14], edi
jne 0x42a785
mov esi, dword [esp + 0x1c]
push esi
push str.__nKeyResult_____d__n
call fcn.004412c0
add esp, 8
cmp esi, 0xffffffff
jne 0x42ab17
push str.__Set_nKeyResult_to__1__n
mov esi, 1
call fcn.004412c0
add esp, 4
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x8cd8]
mov edi, dword [esp + 0x3c]
imul ecx, ecx, 0x88
mov dword [ecx + eax + 0x495c], esi
mov esi, dword [esp + 0x30]
mov ebx, eax
cmp byte [ebp + 0x1c2cc], 0
je 0x42ab56
cmp dword [ebp + 0x1c2c8], 0
jg 0x42ab4e
xor eax, eax
jmp 0x42ab64
lea eax, [ebp + 0x32c8]
jmp 0x42ab64
xor eax, eax
cmp dword [ebp + 0x1c2c8], eax
setle al
dec eax
and eax, ebp
push str.Return
push eax
call fcn.0044e882
add esp, 8
test eax, eax
jne 0x42abfb
xor edx, edx
push 0xfe
push edx
lea eax, [esp + 0x41e]
push eax
mov word [esp + 0x420], dx
call fcn.0044e1b0
add esp, 0xc
cmp byte [ebp + 0x1c2cc], 0
je 0x42abb8
cmp dword [ebp + 0x1c2c8], 1
jg 0x42abb0
xor ecx, ecx
jmp 0x42abcb
lea ecx, [ebp + 0x3ac8]
jmp 0x42abcb
cmp dword [ebp + 0x1c2c8], 1
jg 0x42abc5
xor ecx, ecx
jmp 0x42abcb
lea ecx, [ebp + 0x104]
lea edx, [esp + 0x414]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x42abd2
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x418]
push edx
mov ecx, ebx
call fcn.0041dfb0
mov dword [esp + 0x34], eax
mov ecx, ebp
call fcn.00440490
push ebp
call fcn.0044e22a
mov ecx, dword [ebx + 4]
add esp, 4
push 0
lea eax, [esp + 0xd38]
push eax
inc esi
push esi
push edi
mov dword [esp + 0x40], esi
call 0x409a30
test al, al
jne 0x42a424
mov esi, dword [esp + 0x18]
cmp esi, 1
jl 0x42acad
or ebp, 0xffffffff
jmp 0x42ac40
mov eax, dword [ebx + 0x8cd8]
push eax
imul eax, eax, 0x88
lea ecx, [eax + ebx + 0x48dc]
push ecx
push str.Pop___s__index___d__n
call fcn.004412c0
mov edx, dword [ebx + 0x8cd8]
imul edx, edx, 0x88
mov dword [edx + ebx + 0x495c], ebp
mov eax, dword [ebx + 0x8cd8]
imul eax, eax, 0x88
mov dword [eax + ebx + 0x48d8], 0
mov ecx, dword [ebx + 0x8cd8]
imul ecx, ecx, 0x88
xor edx, edx
mov word [ecx + ebx + 0x48dc], dx
add dword [ebx + 0x8cd8], ebp
add esp, 0xc
sub esi, 1
jne 0x42ac40
mov esi, dword [esp + 0x34]
mov eax, dword [ebx + 0x8cd8]
push esi
push eax
push edi
push str.Look_at___s____index___d__Res___d__n_n
call fcn.004412c0
mov ecx, dword [ebx + 0x8cd8]
add esp, 0x10
imul ecx, ecx, 0x88
mov dword [ecx + ebx + 0x495c], esi
mov eax, esi
mov ecx, dword [esp + 0x1d38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1d20]
xor ecx, esp
call fcn.0044e1a0
add esp, 0x1d30
ret 4