Function at 0x480506
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 0x53f3fc
push str.SYSTEMCurrentControlSetServices_acpi64Drv
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0043ed70
mov ecx, eax
call fcn.0043efbf
test eax, eax
jne 0x4805ea
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 0x53f434
push str.SYSTEMCurrentControlSetServices_acpi64
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0043ed70
mov ecx, eax
call fcn.0043efbf
test eax, eax
jne 0x480680
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
push 0x53f46c
push 0x104
mov ecx, dword [ebp - 8]
push ecx
call fcn.00415480
lea edx, [ebp - 0x328]
push edx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x480680
lea ecx, [ebp - 0x328]
push ecx
call fcn.00480493
add esp, 4
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x480680
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
push 0x53f478
push 0x104
mov eax, dword [ebp - 8]
push eax
call fcn.00415480
lea ecx, [ebp - 0x328]
push ecx
call fcn.0042d8df
add esp, 4
mov dword [ebp - 4], eax
lea edx, [ebp - 0x328]
push edx
call fcn.00480493
add esp, 4
test eax, eax
je 0x4806c1
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
push 0x53f484
push 0x104
mov ecx, dword [ebp - 8]
push ecx
call fcn.00415480
lea edx, [ebp - 0x328]
push edx
call fcn.0042d8df
add esp, 4
mov dword [ebp - 0x330], eax
lea eax, [ebp - 0x328]
push eax
call fcn.00480493
add esp, 4
test eax, eax
je 0x480705
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x330]
jne 0x480719
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 6
jl 0x48079a
mov dword [ebp - 0x334], 0
jmp 0x48073a
mov ecx, dword [ebp - 0x334]
add ecx, 1
mov dword [ebp - 0x334], ecx
cmp dword [ebp - 0x334], 5
jae 0x48079a
mov edx, dword [ebp - 0x334]
mov eax, dword [edx*4 + 0x53f3e8]
push eax
push 0x104
mov ecx, dword [ebp - 8]
push ecx
call fcn.00415480
lea edx, [ebp - 0x328]
push edx
call fcn.0042f17a
add esp, 4
test eax, eax
je 0x480798
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 0x48072b
mov eax, dword [ebp - 0x220]
pop edi
mov esp, ebp
pop ebp
ret 8