Function at 0x47c4a6
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 0x536ba8
push str.SYSTEMCurrentControlSetServices_acpi64Drv
push SysStringLen
call fcn.0043ae50
mov ecx, eax
call fcn.0043b06b
test eax, eax
jne 0x47c58a
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.0043ae50
mov ecx, eax
call fcn.0043b06b
test eax, eax
jne 0x47c620
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
push 0x536c18
push 0x104
mov ecx, dword [ebp - 8]
push ecx
call fcn.004154e0
lea edx, [ebp - 0x328]
push edx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x47c620
lea ecx, [ebp - 0x328]
push ecx
call fcn.0047c433
add esp, 4
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x47c620
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
push 0x536c24
push 0x104
mov eax, dword [ebp - 8]
push eax
call fcn.004154e0
lea ecx, [ebp - 0x328]
push ecx
call fcn.0042956f
add esp, 4
mov dword [ebp - 4], eax
lea edx, [ebp - 0x328]
push edx
call fcn.0047c433
add esp, 4
test eax, eax
je 0x47c661
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
push 0x536c30
push 0x104
mov ecx, dword [ebp - 8]
push ecx
call fcn.004154e0
lea edx, [ebp - 0x328]
push edx
call fcn.0042956f
add esp, 4
mov dword [ebp - 0x330], eax
lea eax, [ebp - 0x328]
push eax
call fcn.0047c433
add esp, 4
test eax, eax
je 0x47c6a5
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x330]
jne 0x47c6b9
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 6
jl 0x47c73a
mov dword [ebp - 0x334], 0
jmp 0x47c6da
mov ecx, dword [ebp - 0x334]
add ecx, 1
mov dword [ebp - 0x334], ecx
cmp dword [ebp - 0x334], 5
jae 0x47c73a
mov edx, dword [ebp - 0x334]
mov eax, dword [edx*4 + 0x536b94]
push eax
push 0x104
mov ecx, dword [ebp - 8]
push ecx
call fcn.004154e0
lea edx, [ebp - 0x328]
push edx
call fcn.0042ae0a
add esp, 4
test eax, eax
je 0x47c738
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 0x47c6cb
mov eax, dword [ebp - 0x220]
pop edi
mov esp, ebp
pop ebp
ret 8