Function at 0x4847b7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
push edi
mov dword [ebp - 0x338], ecx
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x328], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x327]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 8], 0
push 0x104
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [ebp + eax - 0x328]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x224], 0
mov byte [ebp - 0x21c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x21b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x118], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x32c], 0x104
lea edx, [ebp - 0x32c]
push edx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0x536958
push str.SYSTEMCurrentControlSetServices_acpi64Drv
push SysStringLen
call fcn.00442b70
mov ecx, eax
call fcn.00442d8a
test eax, eax
jne 0x48489b
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x32c], 0x104
lea eax, [ebp - 0x32c]
push eax
lea ecx, [ebp - 0x118]
push ecx
lea edx, [ebp - 0x10]
push edx
push str.ImagePath
push str.SYSTEMCurrentControlSetServices_acpi64
push SysStringLen
call fcn.00442b70
mov ecx, eax
call fcn.00442d8a
test eax, eax
jne 0x484931
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
push 0x5369c8
push 0x104
mov ecx, dword [ebp - 8]
push ecx
call fcn.00415330
lea edx, [ebp - 0x328]
push edx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x484931
lea ecx, [ebp - 0x328]
push ecx
call fcn.00484744
add esp, 4
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x484931
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
push 0x5369d4
push 0x104
mov eax, dword [ebp - 8]
push eax
call fcn.00415330
lea ecx, [ebp - 0x328]
push ecx
call fcn.00429c3f
add esp, 4
mov dword [ebp - 4], eax
lea edx, [ebp - 0x328]
push edx
call fcn.00484744
add esp, 4
test eax, eax
je 0x484972
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
push 0x5369e0
push 0x104
mov ecx, dword [ebp - 8]
push ecx
call fcn.00415330
lea edx, [ebp - 0x328]
push edx
call fcn.00429c3f
add esp, 4
mov dword [ebp - 0x330], eax
lea eax, [ebp - 0x328]
push eax
call fcn.00484744
add esp, 4
test eax, eax
je 0x4849b6
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x330]
jne 0x4849ca
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 6
jl 0x484a4b
mov dword [ebp - 0x334], 0
jmp 0x4849eb
mov ecx, dword [ebp - 0x334]
add ecx, 1
mov dword [ebp - 0x334], ecx
cmp dword [ebp - 0x334], 5
jae 0x484a4b
mov edx, dword [ebp - 0x334]
mov eax, dword [edx*4 + 0x536944]
push eax
push 0x104
mov ecx, dword [ebp - 8]
push ecx
call fcn.00415330
lea edx, [ebp - 0x328]
push edx
call fcn.0042b4af
add esp, 4
test eax, eax
je 0x484a49
mov eax, dword [ebp + 0xc]
push eax
push 0x6b
lea ecx, [ebp - 0x328]
push ecx
mov edx, dword [ebp - 0x338]
push edx
call dword [ebp + 8]
mov eax, dword [ebp - 0x220]
add eax, 1
mov dword [ebp - 0x220], eax
jmp 0x4849dc
mov eax, dword [ebp - 0x220]
pop edi
mov esp, ebp
pop ebp
ret 8