Function at 0x401330
Capabilities:
Get common file path
Query environment variable

Disassembly:
sub esp, 0x100
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push 0xff
push eax
mov ebp, ecx
push str._PROGRAMFILES_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
lea edi, [ebp + 0x148]
je 0x40138e
lea ecx, [esp + 0x10]
push str.ASUSIO
push ecx
push str._s_s
push edi
call fcn.004029cb
lea edx, [esp + 0x20]
push str.ASUS
push edx
push str._s_s
push 0x4166d8
call fcn.004029cb
add esp, 0x20
jmp 0x40139a
push 0xff
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [ebp + 0x290]
test eax, eax
je 0x40152e
mov ecx, dword [ebp + 0x294]
test ecx, ecx
jne 0x40140d
mov eax, dword [ebp + 0x144]
lea esi, [ebp + 0xc0]
sub esp, 0x188
inc eax
mov byte [edi], 0
mov ecx, 0x62
mov edi, esp
mov dword [ebp + 0x144], eax
mov dword [esi], 0
mov byte [ebp + 0x104], 0
mov byte [ebp + 0xc4], 0
rep movsd dword es:[edi], dword [esi]
call fcn.00401f40
add esp, 0x188
neg eax
sbb eax, eax
and ah, 0xfe
add eax, 0x101
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
test eax, eax
je 0x40152e
mov eax, dword [ebp + 0x294]
test eax, eax
je 0x40152e
mov eax, dword [ebp + 0x28c]
push eax
call fcn.00401ae0
mov ecx, dword [ebp + 0x28c]
push edi
push ecx
call fcn.00401b60
add esp, 0xc
test eax, eax
jne 0x40145f
mov edx, dword [ebp + 0x28c]
push edx
call fcn.00401990
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
mov eax, dword [ebp + 0x28c]
push eax
call fcn.00401990
add esp, 4
test eax, eax
jne 0x40147d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
mov ecx, dword [ebp + 0x144]
lea ebx, [ebp + 0xc0]
inc ecx
lea edi, [ebp + 0x248]
mov dword [ebp + 0x144], ecx
mov ecx, dword [ebp + 0x288]
mov dword [ebx], ecx
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0xc4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp + 0x104]
push ecx
call fcn.00401950
sub esp, 0x184
mov ecx, 0x62
mov esi, ebx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00401f40
add esp, 0x188
test eax, eax
je 0x4014fa
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
mov eax, dword [ebp + 0x298]
test eax, eax
je 0x401514
mov eax, 0x102
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
mov dword [ebp + 0x29c], 1
mov eax, 0x100
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
mov edx, dword [ebp + 0x28c]
push edi
push edx
call fcn.00401b60
add esp, 8
test eax, eax
jne 0x40154d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
mov eax, dword [ebp + 0x28c]
push eax
call fcn.00401990
add esp, 4
test eax, eax
jne 0x40156b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
mov ecx, dword [ebp + 0x288]
lea ebx, [ebp + 0xc0]
lea edi, [ebp + 0x248]
xor eax, eax
mov dword [ebx], ecx
or ecx, 0xffffffff
mov dword [ebp + 0x144], 1
lea edx, [ebp + 0xc4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
add ebp, 0x104
mov eax, ecx
mov esi, edi
mov edi, edx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00401950
sub esp, 0x184
mov ecx, 0x62
mov esi, ebx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00401f40
add esp, 0x188
neg eax
sbb eax, eax
pop edi
and al, 0
pop esi
pop ebp
add eax, 0x100
pop ebx
add esp, 0x100
ret