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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5af69a
mov eax, dword fs:[0]
push eax
sub esp, 0x7d0
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7b0], ecx
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push 0x208
mov dword [ebp - 0x7b4], eax
lea eax, [ebp - 0x424]
push 0
push eax
mov dword [ebp - 0x7a0], ebx
mov dword [ebp - 0x79c], 0
mov dword [ebp - 0x790], 0
mov dword [ebp - 0x798], 0
mov dword [ebp - 0x7bc], 1
mov dword [ebp - 0x7b8], 2
call fcn.00571c00
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x208
push 0
push eax
call fcn.00571c00
add esp, 0xc
mov dword [ebp - 0x444], 0
xor eax, eax
mov dword [ebp - 0x440], 7
lea ecx, [ebp - 0x454]
mov word [ebp - 0x454], ax
push eax
push 0x5c6930
call fcn.004035d0
xor eax, eax
mov dword [ebp - 4], 0
push eax
push 0x5c6930
lea ecx, [ebp - 0x4b8]
mov dword [ebp - 0x4a8], 0
mov dword [ebp - 0x4a4], 7
mov word [ebp - 0x4b8], ax
call fcn.004035d0
xor eax, eax
mov byte [ebp - 4], 1
push eax
push 0x5c6930
lea ecx, [ebp - 0x484]
mov dword [ebp - 0x474], 0
mov dword [ebp - 0x470], 7
mov word [ebp - 0x484], ax
call fcn.004035d0
xor eax, eax
mov byte [ebp - 4], 2
push eax
push 0x5c6930
lea ecx, [ebp - 0x43c]
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 7
mov word [ebp - 0x43c], ax
call fcn.004035d0
lea eax, [ebp - 0x7dc]
mov byte [ebp - 4], 3
push eax
push 0
push esi
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
je 0x547fa0
mov dword [ebp - 0x488], 7
xor eax, eax
mov dword [ebp - 0x4a0], 0
mov dword [ebp - 0x48c], 0
mov word [ebp - 0x49c], ax
push esi
push ebx
lea ecx, [ebp - 0x4a0]
mov byte [ebp - 4], 5
call fcn.00545c00
test eax, eax
je 0x5476ef
push str.DefaultDestDir
push ebx
lea ecx, [ebp - 0x4a0]
call fcn.00545c00
mov ebx, eax
test ebx, ebx
je 0x5476ef
cmp dword [0x611b50], 1
jle 0x547f2a
push 0x5b4
mov ecx, ebx
call fcn.0054c660
add esp, 4
jmp 0x547f2a
mov edi, 7
mov dword [ebp - 0x458], edi
xor eax, eax
mov byte [ebp - 4], 6
mov word [ebp - 0x46c], ax
lea ecx, [ebp - 0x7dc]
mov dword [ebp - 0x794], eax
xor edx, edx
lea eax, [ebp - 0x794]
mov dword [ebp - 0x45c], 0
push eax
push 0
push 0
call fcn.00543870
mov esi, dword [ebp - 0x794]
mov ebx, eax
add esp, 0xc
mov dword [ebp - 0x7ac], ebx
test ebx, ebx
jne 0x547772
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x547750
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x46c]
call fcn.004035d0
mov edi, dword [ebp - 0x458]
test esi, esi
je 0x547786
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
jne 0x547f64
push ecx
lea eax, [ebp - 0x46c]
push eax
lea ecx, [ebp - 0x7cc]
call fcn.005355a0
mov byte [ebp - 4], 7
xor esi, esi
mov eax, dword [ebp - 0x7cc]
xor ecx, ecx
mov edx, dword [ebp - 0x7c8]
mov dword [ebp - 0x7a4], ebx
mov dword [ebp - 0x7a8], esi
mov dword [ebp - 0x794], ebx
cmp eax, edx
je 0x547825
nop dword [eax + eax]
test ecx, ecx
jne 0x5477e0
cmp dword [eax + 0x14], 8
mov ebx, eax
jb 0x547811
mov ebx, dword [eax]
jmp 0x547811
cmp ecx, 1
jne 0x5477f1
cmp dword [eax + 0x14], 8
mov esi, eax
jb 0x547811
mov esi, dword [eax]
jmp 0x547811
cmp ecx, 2
jne 0x54780c
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x794], eax
jb 0x547811
mov edi, dword [eax]
mov dword [ebp - 0x794], edi
jmp 0x547811
cmp ecx, 3
jne 0x547819
add eax, 0x18
inc ecx
cmp eax, edx
jne 0x5477d0
mov dword [ebp - 0x7a8], esi
mov dword [ebp - 0x7a4], ebx
push 0
push 0x5c6930
lea ecx, [ebp - 0x454]
mov dword [ebp - 0x790], 0
mov dword [ebp - 0x798], 0
call fcn.004035d0
push 0
push 0x5c6930
lea ecx, [ebp - 0x4b8]
call fcn.004035d0
push 0
push 0x5c6930
lea ecx, [ebp - 0x43c]
call fcn.004035d0
test esi, esi
je 0x547893
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x547880
sub ecx, edx
sar ecx, 1
push ecx
push esi
jmp 0x5478b1
test ebx, ebx
je 0x5478bc
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5478a0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x454]
call fcn.004035d0
cmp dword [ebp - 0x444], 0
je 0x547bca
cmp dword [ebp - 0x440], 8
lea ecx, [ebp - 0x790]
mov ebx, dword [ebp - 0x7a0]
lea eax, [ebp - 0x454]
cmovae eax, dword [ebp - 0x454]
mov edi, dword [sym.imp.SETUPAPI.dll_SetupGetSourceFileLocationW]
push ecx
push 0
push 0
lea ecx, [ebp - 0x798]
push ecx
push eax
push 0
push ebx
call edi
test eax, eax
je 0x547bca
mov eax, dword [ebp - 0x790]
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x547976
cmp dword [ebp - 0x440], 8
lea eax, [ebp - 0x798]
push 0
push dword [ebp - 0x790]
lea ecx, [ebp - 0x454]
cmovae ecx, dword [ebp - 0x454]
push esi
push eax
push ecx
push 0
push ebx
call edi
test eax, eax
je 0x54796f
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x547953
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x4b8]
call fcn.004035d0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp + 0x18], 0
je 0x547bca
cmp dword [ebp - 0x474], 0
jne 0x547ac9
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00571c00
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x208
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x547d88
mov edi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x21c]
push eax
call edi
push str.DriverStoreFileRepository_
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [ebp - 0x7b0]
add eax, 0xd0
cmp dword [eax + 0x14], 8
jb 0x5479f1
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x424]
push str._s_s_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x78c]
push eax
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x547ac9
nop dword [eax]
test byte [ebp - 0x78c], 0x10
je 0x547a63
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [ebp - 0x760]
push 0x5cafc8
push eax
call ebx
test eax, eax
je 0x547a63
push 0x5cafcc
lea eax, [ebp - 0x760]
push eax
call ebx
test eax, eax
jne 0x547a77
lea eax, [ebp - 0x78c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x547a30
jmp 0x547ac2
lea eax, [ebp - 0x760]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x21c]
push eax
call edi
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x547aa0
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x484]
call fcn.004035d0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x79c]
test eax, eax
jne 0x547bca
cmp dword [ebp - 0x470], 8
lea ecx, [ebp - 0x484]
push dword [ebp - 0x474]
cmovae ecx, dword [ebp - 0x484]
push ecx
lea ecx, [ebp - 0x43c]
call fcn.004035d0
xor edi, edi
nop
mov ebx, dword [ebp + edi*4 - 0x7bc]
lea eax, [ebp - 0x790]
push eax
push 0
push 0
push ebx
push dword [ebp - 0x798]
push dword [ebp - 0x7a0]
call dword [sym.imp.SETUPAPI.dll_SetupGetSourceInfoW]
test eax, eax
je 0x547b9e
mov eax, dword [ebp - 0x790]
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x547b9e
push 0
push dword [ebp - 0x790]
push esi
push ebx
push dword [ebp - 0x798]
push dword [ebp - 0x7a0]
call dword [sym.imp.SETUPAPI.dll_SetupGetSourceInfoW]
test eax, eax
je 0x547b97
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x547b65
sub eax, edx
lea ecx, [ebp - 0x43c]
sar eax, 1
push eax
push esi
call fcn.0040dc80
test edi, edi
jne 0x547b97
push 1
push 0x5c692c
lea ecx, [ebp - 0x43c]
call fcn.0040dc80
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
inc edi
cmp edi, 2
jb 0x547b00
cmp dword [ebp - 0x428], 8
lea eax, [ebp - 0x43c]
cmovae eax, dword [ebp - 0x43c]
push eax
push str.CInfInstallSection::GetCopyFilesHelper___Inbox_Path:__s
call fcn.0054c5b0
add esp, 8
cmp dword [ebp - 0x428], 8
lea edi, [ebp - 0x43c]
lea esi, [ebp - 0x4b8]
mov dword [ebp - 0x524], 0
cmovae edi, dword [ebp - 0x43c]
cmp dword [ebp - 0x4a4], 8
mov dword [ebp - 0x520], 7
cmovae esi, dword [ebp - 0x4b8]
xor eax, eax
mov word [ebp - 0x534], ax
mov dword [ebp - 0x50c], eax
mov dword [ebp - 0x508], 7
mov word [ebp - 0x51c], ax
mov dword [ebp - 0x4f4], eax
mov dword [ebp - 0x4f0], 7
mov word [ebp - 0x504], ax
mov dword [ebp - 0x4dc], eax
mov dword [ebp - 0x4d8], 7
mov word [ebp - 0x4ec], ax
mov dword [ebp - 0x4c4], eax
mov dword [ebp - 0x4c0], 7
mov word [ebp - 0x4d4], ax
mov ebx, dword [ebp - 0x7a4]
mov byte [ebp - 4], 0xc
test ebx, ebx
je 0x547c9c
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x547c80
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x534]
call fcn.004035d0
mov ebx, dword [ebp - 0x7a8]
test ebx, ebx
je 0x547ccc
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x547cb0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x51c]
call fcn.004035d0
mov ebx, dword [ebp - 0x794]
test ebx, ebx
je 0x547cfc
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x547ce0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x504]
call fcn.004035d0
test esi, esi
je 0x547d21
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x547d05
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x4ec]
call fcn.004035d0
test edi, edi
je 0x547d4c
mov ecx, edi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x547d30
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x4d4]
call fcn.004035d0
mov eax, dword [ebp - 0x4a0]
mov dword [ebp - 0x53c], 0
mov dword [ebp - 0x538], eax
mov ebx, dword [ebp - 0x7b4]
lea ecx, [ebp - 0x53c]
mov byte [ebp - 4], 0xd
push ecx
mov eax, dword [ebx + 4]
cmp dword [ebx + 8], eax
je 0x547d99
mov ecx, eax
call fcn.00543770
sub dword [ebx + 4], 0xffffff80
jmp 0x547da1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x79c], eax
jmp 0x547acf
push eax
mov ecx, ebx
call fcn.00548290
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x534]
cmp dword [ebp - 0x520], 8
mov dword [ebp - 0x524], 0
cmovae eax, dword [ebp - 0x534]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x51c]
cmp dword [ebp - 0x508], 8
mov dword [ebp - 0x50c], ecx
cmovae eax, dword [ebp - 0x51c]
mov word [eax], cx
lea eax, [ebp - 0x504]
cmp dword [ebp - 0x4f0], 8
mov dword [ebp - 0x4f4], ecx
cmovae eax, dword [ebp - 0x504]
mov word [eax], cx
lea eax, [ebp - 0x4ec]
cmp dword [ebp - 0x4d8], 8
mov dword [ebp - 0x4dc], ecx
cmovae eax, dword [ebp - 0x4ec]
mov word [eax], cx
lea eax, [ebp - 0x4d4]
cmp dword [ebp - 0x4c0], 8
mov dword [ebp - 0x4c4], ecx
cmovae eax, dword [ebp - 0x4d4]
mov word [eax], cx
lea ecx, [ebp - 0x4d4]
call fcn.00403570
lea ecx, [ebp - 0x4ec]
call fcn.00403570
lea ecx, [ebp - 0x504]
call fcn.00403570
lea ecx, [ebp - 0x51c]
call fcn.00403570
lea ecx, [ebp - 0x534]
call fcn.00403570
lea ecx, [ebp - 0x7cc]
call fcn.0044ffc0
lea eax, [ebp - 0x7dc]
push eax
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
je 0x547ee4
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x458]
cmp edx, 8
jb 0x547ed4
mov ecx, dword [ebp - 0x46c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x547eca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5480dd
push edx
push ecx
call fcn.0056deb6
add esp, 8
mov edi, 7
mov dword [ebp - 0x458], edi
jmp 0x5476fa
mov edx, dword [ebp - 0x458]
cmp edx, 8
jb 0x547f24
mov ecx, dword [ebp - 0x46c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x547f1a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5480dd
push edx
push ecx
call fcn.0056deb6
add esp, 8
mov ebx, dword [ebp - 0x7ac]
cmp dword [ebp - 0x488], 8
lea eax, [ebp - 0x49c]
mov dword [ebp - 0x4a0], 0
cmovae eax, dword [ebp - 0x49c]
xor ecx, ecx
mov dword [ebp - 0x48c], 0
mov word [eax], cx
lea ecx, [ebp - 0x49c]
call fcn.00403570
jmp 0x547fa8
cmp edi, 8
jb 0x547f2a
mov ecx, dword [ebp - 0x46c]
lea edi, [edi*2 + 2]
mov eax, ecx
cmp edi, 0x1000
jb 0x547f94
mov ecx, dword [ecx - 4]
add edi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5480e2
push edi
push ecx
call fcn.0056deb6
add esp, 8
jmp 0x547f2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edx, dword [ebp - 0x428]
cmp edx, 8
jb 0x547fe8
mov ecx, dword [ebp - 0x43c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x547fde
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5480e7
push edx
push ecx
call fcn.0056deb6
add esp, 8
mov edx, dword [ebp - 0x470]
xor eax, eax
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 7
mov word [ebp - 0x43c], ax
cmp edx, 8
jb 0x548045
mov ecx, dword [ebp - 0x484]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x54803b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5480ec
push edx
push ecx
call fcn.0056deb6
add esp, 8
mov edx, dword [ebp - 0x4a4]
cmp edx, 8
jb 0x548081
mov ecx, dword [ebp - 0x4b8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x548077
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5480f1
push edx
push ecx
call fcn.0056deb6
add esp, 8
mov edx, dword [ebp - 0x440]
cmp edx, 8
jb 0x5480bd
mov ecx, dword [ebp - 0x454]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5480b3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5480f6
push edx
push ecx
call fcn.0056deb6
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 0x14
call fcn.00574908
call fcn.00574908
call fcn.00574908
call fcn.00574908
call fcn.00574908
call fcn.00574908
int3