Function at 0x10054d70
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x1009d6d2
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x100c230c]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100c230c]
xor eax, esp
push eax
lea eax, [esp + 0x2a8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2b8]
xor ebx, ebx
push 0x206
mov dword [esp + 0x64], edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c0]
mov dword [esp + 0x20], ecx
lea edx, [esp + 0xa2]
xor ecx, ecx
push ebx
push edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x2c], ebx
mov word [esp + 0xa8], cx
call fcn.10079c60
add esp, 0xc
push 0x104
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor ecx, ecx
mov ebp, 7
lea eax, [esp + 0x9c]
mov word [esp + 0x84], cx
mov dword [esp + 0x98], ebp
mov dword [esp + 0x94], ebx
lea ecx, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x10054e30
sub eax, ecx
sar eax, 1
push eax
lea eax, [esp + 0xa0]
lea esi, [esp + 0x84]
call fcn.10007450
mov dword [esp + 0x2b0], ebx
mov edx, esi
push edx
lea eax, [esp + 0x28]
push eax
mov edi, str.PrefetchLayout.ini
call fcn.1002d500
add esp, 8
mov byte [esp + 0x2b0], 1
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.100073a0
mov byte [esp + 0x2b0], bl
cmp dword [esp + 0x3c], 8
jb 0x10054e9c
mov ecx, dword [esp + 0x28]
push ecx
call fcn.100755e2
add esp, 4
xor edx, edx
xor eax, eax
mov word [esp + 0x68], ax
lea eax, [esp + 0x9c]
mov word [esp + 0x28], dx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebx
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x78], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10054ec4
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xa0]
lea esi, [esp + 0x68]
call fcn.10007450
mov byte [esp + 0x2b0], 2
mov ecx, esi
push ecx
lea edx, [esp + 0x28]
push edx
mov edi, str.PrefetchNTOSBOOT_B00DFAAD.pf
call fcn.1002d500
add esp, 8
mov byte [esp + 0x2b0], 3
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.100073a0
mov byte [esp + 0x2b0], 2
mov esi, 8
cmp dword [esp + 0x3c], esi
jb 0x10054f33
mov eax, dword [esp + 0x28]
push eax
call fcn.100755e2
add esp, 4
mov eax, dword [esp + 0x84]
xor ecx, ecx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], cx
cmp dword [esp + 0x98], esi
jae 0x10054f59
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1005501b
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x74], esp
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push ebx
lea eax, [esp + 0xa4]
mov word [ecx + 4], dx
call fcn.100073a0
mov byte [esp + 0x2cc], 4
mov byte [esp + 0x2cc], 2
lea esi, [esp + 0x40]
call fcn.10053bf0
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ebp, dword [eax + 8]
mov eax, dword [eax + 0xc]
add esp, 0x1c
lea ecx, [esp + 0x48]
push ecx
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x48]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ebp
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x5c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x74]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.10054380
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x38]
mov ebp, 7
mov dword [ecx], eax
add esp, 0x20
mov dword [edx], 1
lea esi, [ebp + 1]
jmp 0x10055021
mov eax, dword [esp + 0x18]
mov dword [eax], ebx
mov eax, dword [esp + 0x68]
cmp dword [esp + 0x7c], esi
jae 0x1005502f
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100550ee
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x74], esp
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push ebx
lea eax, [esp + 0x88]
mov word [ecx + 4], dx
call fcn.100073a0
mov byte [esp + 0x2cc], 5
mov byte [esp + 0x2cc], 2
lea esi, [esp + 0x40]
call fcn.10053bf0
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ebp, dword [eax + 8]
mov eax, dword [eax + 0xc]
add esp, 0x1c
lea ecx, [esp + 0x48]
push ecx
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x48]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ebp
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x5c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x74]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.10054380
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x3c]
mov ebp, 7
mov dword [ecx], eax
add esp, 0x20
mov dword [edx], 1
lea esi, [ebp + 1]
jmp 0x100550f4
mov eax, dword [esp + 0x1c]
mov dword [eax], ebx
mov ecx, dword [esp + 0x18]
cmp dword [ecx], ebx
je 0x1005510c
mov edx, dword [esp + 0x1c]
cmp dword [edx], ebx
je 0x1005510c
mov dword [esp + 0x20], 1
mov byte [esp + 0x2b0], bl
cmp dword [esp + 0x7c], esi
jb 0x10055126
mov eax, dword [esp + 0x68]
push eax
call fcn.100755e2
add esp, 4
xor ecx, ecx
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], cx
mov dword [esp + 0x2b0], 0xffffffff
cmp dword [esp + 0x98], esi
jb 0x10055159
mov edx, dword [esp + 0x84]
push edx
call fcn.100755e2
add esp, 4
xor eax, eax
mov word [esp + 0x84], ax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x98], ebp
mov dword [esp + 0x94], ebx
mov ecx, dword [esp + 0x2a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x290]
xor ecx, esp
call fcn.100755ed
add esp, 0x2a0
ret 8