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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472929
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x7d8
mov eax, dword [0x496534]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7d0], ecx
mov eax, dword [ebx + 0x14]
xorps xmm0, xmm0
mov edi, dword [ebx + 8]
mov esi, dword [ebx + 0xc]
push 0x208
mov dword [ebp - 0x7b4], eax
lea eax, [ebp - 0x428]
push 0
push eax
mov dword [ebp - 0x7a4], edi
movups xmmword [ebp - 0x7e8], xmm0
mov dword [ebp - 0x7a0], 0
mov dword [ebp - 0x794], 0
mov dword [ebp - 0x79c], 0
mov dword [ebp - 0x7d8], 1
mov dword [ebp - 0x7d4], 2
call fcn.0044f210
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x208
push 0
push eax
call fcn.0044f210
add esp, 0xc
mov dword [ebp - 0x444], 7
xor eax, eax
mov dword [ebp - 0x448], 0
lea ecx, [ebp - 0x458]
mov word [ebp - 0x458], ax
push eax
push 0x486438
call fcn.004037c0
xor eax, eax
mov dword [ebp - 4], 0
push eax
push 0x486438
lea ecx, [ebp - 0x470]
mov dword [ebp - 0x45c], 7
mov dword [ebp - 0x460], 0
mov word [ebp - 0x470], ax
call fcn.004037c0
xor eax, eax
mov byte [ebp - 4], 1
push eax
push 0x486438
lea ecx, [ebp - 0x4bc]
mov dword [ebp - 0x4a8], 7
mov dword [ebp - 0x4ac], 0
mov word [ebp - 0x4bc], ax
call fcn.004037c0
xor eax, eax
mov byte [ebp - 4], 2
push eax
push 0x486438
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], 0
mov word [ebp - 0x440], ax
call fcn.004037c0
lea eax, [ebp - 0x7e8]
mov byte [ebp - 4], 3
push eax
push 0
push esi
push edi
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x42ee47
mov dword [ebp - 0x48c], 7
xor eax, eax
mov dword [ebp - 0x4a4], 0
mov dword [ebp - 0x490], 0
mov word [ebp - 0x4a0], ax
push esi
push edi
lea ecx, [ebp - 0x4a4]
mov byte [ebp - 4], 5
call fcn.0042cdd0
test eax, eax
jne 0x42e722
mov ecx, dword [ebp - 0x4a4]
mov dword [ebp - 0x7b8], ecx
jmp 0x42e750
push str.DefaultDestDir
push edi
lea ecx, [ebp - 0x4a4]
call fcn.0042cdd0
mov edi, eax
test edi, edi
jne 0x42ee2a
mov eax, dword [ebp - 0x4a4]
mov dword [ebp - 0x7b8], eax
nop dword [eax]
mov dword [ebp - 0x474], 7
xor eax, eax
mov byte [ebp - 4], 6
mov word [ebp - 0x488], ax
lea ecx, [ebp - 0x7e8]
mov dword [ebp - 0x798], eax
xor edx, edx
lea eax, [ebp - 0x798]
mov dword [ebp - 0x478], 0
push eax
push 0
push 0
call fcn.0042b0c0
mov esi, dword [ebp - 0x798]
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x7bc], edi
test edi, edi
jne 0x42e7cf
cmp word [esi], 0
jne 0x42e7ae
xor ecx, ecx
jmp 0x42e7c2
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42e7b3
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x488]
call fcn.004037c0
test esi, esi
je 0x42e7e3
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
jne 0x42ee0a
push ecx
lea eax, [ebp - 0x488]
push eax
lea ecx, [ebp - 0x7cc]
call fcn.004327e0
mov byte [ebp - 4], 7
xor esi, esi
mov eax, dword [ebp - 0x7cc]
xor ecx, ecx
mov edx, dword [ebp - 0x7c8]
mov dword [ebp - 0x7a8], esi
mov dword [ebp - 0x7b0], edi
mov dword [ebp - 0x798], esi
cmp eax, edx
je 0x42e88f
test ecx, ecx
jne 0x42e846
cmp dword [eax + 0x14], 8
jb 0x42e83c
mov esi, dword [eax]
mov dword [ebp - 0x7a8], esi
jmp 0x42e881
mov esi, eax
mov dword [ebp - 0x7a8], esi
jmp 0x42e881
cmp ecx, 1
jne 0x42e859
cmp dword [eax + 0x14], 8
jb 0x42e855
mov edi, dword [eax]
jmp 0x42e881
mov edi, eax
jmp 0x42e881
cmp ecx, 2
jne 0x42e87c
cmp dword [eax + 0x14], 8
jb 0x42e874
mov esi, dword [eax]
mov dword [ebp - 0x798], esi
mov esi, dword [ebp - 0x7a8]
jmp 0x42e881
mov dword [ebp - 0x798], eax
jmp 0x42e881
cmp ecx, 3
jne 0x42e889
add eax, 0x18
inc ecx
cmp eax, edx
jne 0x42e828
mov dword [ebp - 0x7b0], edi
push 0
push 0x486438
lea ecx, [ebp - 0x458]
mov dword [ebp - 0x794], 0
mov dword [ebp - 0x79c], 0
call fcn.004037c0
push 0
push 0x486438
lea ecx, [ebp - 0x470]
call fcn.004037c0
push 0
push 0x486438
lea ecx, [ebp - 0x440]
call fcn.004037c0
test edi, edi
je 0x42e903
cmp word [edi], 0
jne 0x42e8e9
xor ecx, ecx
push ecx
push edi
jmp 0x42e927
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42e8f0
sub ecx, edx
sar ecx, 1
push ecx
push edi
jmp 0x42e927
test esi, esi
je 0x42e932
cmp word [esi], 0
jne 0x42e911
xor ecx, ecx
jmp 0x42e925
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42e916
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x458]
call fcn.004037c0
cmp dword [ebp - 0x448], 0
je 0x42ec7c
cmp dword [ebp - 0x444], 8
lea ecx, [ebp - 0x794]
push ecx
push 0
push 0
lea ecx, [ebp - 0x79c]
push ecx
lea eax, [ebp - 0x458]
cmovae eax, dword [ebp - 0x458]
push eax
push 0
push dword [ebp - 0x7a4]
call dword [sym.imp.SETUPAPI.dll_SetupGetSourceFileLocationW]
test eax, eax
je 0x42ec7c
mov eax, dword [ebp - 0x794]
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x42ea03
cmp dword [ebp - 0x444], 8
lea eax, [ebp - 0x79c]
push 0
push dword [ebp - 0x794]
lea ecx, [ebp - 0x458]
cmovae ecx, dword [ebp - 0x458]
push esi
push eax
push ecx
push 0
push dword [ebp - 0x7a4]
call dword [sym.imp.SETUPAPI.dll_SetupGetSourceFileLocationW]
test eax, eax
je 0x42e9fc
cmp word [esi], 0
jne 0x42e9d4
xor ecx, ecx
jmp 0x42e9ef
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42e9e0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x470]
call fcn.004037c0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebx + 0x18], 0
je 0x42ec7c
cmp dword [ebp - 0x4ac], 0
jne 0x42eb43
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.0044f210
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x208
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x42ebe2
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.DriverStoreFileRepository_
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [ebp - 0x7d0]
add eax, 0xd0
cmp dword [eax + 0x14], 8
jb 0x42ea7c
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x428]
push str._s_s_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x790]
push eax
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x42eb43
nop dword [eax + eax]
test byte [ebp - 0x790], 0x10
je 0x42eaf5
push 0x48622c
lea eax, [ebp - 0x764]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x42eaf5
push 0x486230
lea eax, [ebp - 0x764]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x42eb09
lea eax, [ebp - 0x790]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42eac0
jmp 0x42eb3c
lea eax, [ebp - 0x764]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x4bc]
call fcn.004055f0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x7a0]
test eax, eax
jne 0x42ec7c
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x4bc]
push eax
lea ecx, [ebp - 0x440]
call fcn.00403440
xor eax, eax
mov dword [ebp - 0x7ac], eax
nop
mov edi, dword [ebp + eax*4 - 0x7d8]
lea eax, [ebp - 0x794]
push eax
push 0
push 0
push edi
push dword [ebp - 0x79c]
push dword [ebp - 0x7a4]
call dword [sym.imp.SETUPAPI.dll_SetupGetSourceInfoW]
test eax, eax
je 0x42ec3e
mov eax, dword [ebp - 0x794]
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x42ec3e
push 0
push dword [ebp - 0x794]
push esi
push edi
push dword [ebp - 0x79c]
push dword [ebp - 0x7a4]
call dword [sym.imp.SETUPAPI.dll_SetupGetSourceInfoW]
test eax, eax
je 0x42ec37
cmp word [esi], 0
jne 0x42ebf3
xor eax, eax
jmp 0x42ec0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x7a0], eax
jmp 0x42eb49
mov eax, esi
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42ec00
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x440]
call fcn.00426bc0
cmp dword [ebp - 0x7ac], 0
jne 0x42ec37
push 1
push 0x4857e0
lea ecx, [ebp - 0x440]
call fcn.00426bc0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x7ac]
inc eax
mov dword [ebp - 0x7ac], eax
cmp eax, 2
jb 0x42eb70
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
cmovae eax, dword [ebp - 0x440]
push eax
push str.CInfInstallSection::GetCopyFilesHelper___Inbox_Path:__s
call fcn.00424d20
mov edi, dword [ebp - 0x7b0]
add esp, 8
cmp dword [ebp - 0x42c], 8
lea ecx, [ebp - 0x440]
lea eax, [ebp - 0x470]
cmovae ecx, dword [ebp - 0x440]
cmp dword [ebp - 0x45c], 8
push ecx
cmovae eax, dword [ebp - 0x470]
push ecx
push eax
push dword [ebp - 0x798]
lea ecx, [ebp - 0x540]
push edi
push dword [ebp - 0x7b8]
push dword [ebp - 0x7a8]
call fcn.0042aef0
lea eax, [ebp - 0x540]
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x7b4]
push eax
call fcn.0042f060
lea ecx, [ebp - 0x540]
call fcn.00427540
push dword [ebp - 0x7b4]
mov edx, dword [ebp - 0x7c8]
push ecx
mov ecx, dword [ebp - 0x7cc]
call fcn.004031e0
mov ecx, dword [ebp - 0x7cc]
add esp, 8
mov dword [ebp - 0x7c8], ecx
test ecx, ecx
je 0x42ed66
push dword [ebp - 0x7b4]
mov edx, ecx
push ecx
call fcn.004031e0
mov ecx, dword [ebp - 0x7c4]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x7cc]
add esp, 8
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.00403110
mov dword [ebp - 0x7cc], 0
mov dword [ebp - 0x7c8], 0
mov dword [ebp - 0x7c4], 0
lea eax, [ebp - 0x7e8]
push eax
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
mov eax, dword [ebp - 0x474]
je 0x42ed9f
cmp eax, 8
jb 0x42e750
inc eax
lea ecx, [ebp - 0x488]
push eax
push dword [ebp - 0x488]
call fcn.004038d0
jmp 0x42e750
cmp eax, 8
jb 0x42edb7
inc eax
lea ecx, [ebp - 0x488]
push eax
push dword [ebp - 0x488]
call fcn.004038d0
mov edi, dword [ebp - 0x7bc]
cmp dword [ebp - 0x48c], 8
lea eax, [ebp - 0x4a0]
mov dword [ebp - 0x4a4], 0
cmovae eax, dword [ebp - 0x4a0]
xor ecx, ecx
mov dword [ebp - 0x490], 0
mov word [eax], cx
mov eax, dword [ebp - 0x48c]
cmp eax, 8
jb 0x42ee4f
inc eax
lea ecx, [ebp - 0x4a0]
push eax
push dword [ebp - 0x4a0]
call fcn.004038d0
jmp 0x42ee4f
mov eax, dword [ebp - 0x474]
cmp eax, 8
jb 0x42edbd
inc eax
lea ecx, [ebp - 0x488]
push eax
push dword [ebp - 0x488]
call fcn.004038d0
jmp 0x42edbd
cmp dword [0x49748c], 1
jle 0x42edbd
push 0x5ac
mov ecx, edi
call fcn.00424ea0
add esp, 4
jmp 0x42edbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [ebp - 0x42c]
cmp eax, 8
jb 0x42ee6d
inc eax
lea ecx, [ebp - 0x440]
push eax
push dword [ebp - 0x440]
call fcn.004038d0
xor eax, eax
mov dword [ebp - 0x42c], 7
mov word [ebp - 0x440], ax
mov eax, dword [ebp - 0x4a8]
mov dword [ebp - 0x430], 0
cmp eax, 8
jb 0x42eea8
inc eax
lea ecx, [ebp - 0x4bc]
push eax
push dword [ebp - 0x4bc]
call fcn.004038d0
xor eax, eax
mov dword [ebp - 0x4a8], 7
mov word [ebp - 0x4bc], ax
mov eax, dword [ebp - 0x45c]
mov dword [ebp - 0x4ac], 0
cmp eax, 8
jb 0x42eee3
inc eax
lea ecx, [ebp - 0x470]
push eax
push dword [ebp - 0x470]
call fcn.004038d0
xor eax, eax
mov dword [ebp - 0x45c], 7
mov word [ebp - 0x470], ax
mov eax, dword [ebp - 0x444]
mov dword [ebp - 0x460], 0
cmp eax, 8
jb 0x42ef1e
inc eax
lea ecx, [ebp - 0x458]
push eax
push dword [ebp - 0x458]
call fcn.004038d0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044ae75
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x14