Function at 0x4013c0
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 0x40141e
lea ecx, [esp + 0x10]
push str.ASUSIO
push ecx
push str._s_s
push edi
call fcn.00402b0b
lea edx, [esp + 0x20]
push str.ASUS
push edx
push str._s_s
push 0x41775c
call fcn.00402b0b
add esp, 0x20
jmp 0x40142a
push 0xff
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [ebp + 0x290]
test eax, eax
je 0x401667
mov ecx, dword [ebp + 0x294]
test ecx, ecx
jne 0x401524
mov eax, dword [ebp + 0x2a8]
test eax, eax
je 0x4014c9
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str..Asusgio
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x4014c9
mov eax, dword [ebp + 0x28c]
push edi
push eax
call fcn.00401ca0
add esp, 8
test eax, eax
jne 0x40148e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
mov ecx, dword [ebp + 0x28c]
push ecx
call fcn.00401ad0
add esp, 4
test eax, eax
jne 0x4014ac
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
mov edx, dword [ebp + 0x288]
lea ebx, [ebp + 0xc0]
mov dword [ebp + 0x144], 1
mov dword [ebx], edx
jmp 0x4016bc
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.00402080
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 0x401667
mov eax, dword [ebp + 0x294]
test eax, eax
je 0x401667
mov ecx, dword [ebp + 0x28c]
push edi
push ecx
call fcn.00401ca0
add esp, 8
test eax, eax
jne 0x401559
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str..Asusgio
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x4015b6
mov edx, dword [ebp + 0x28c]
push edx
call fcn.00401ad0
add esp, 4
test eax, eax
jne 0x401596
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
mov ecx, dword [ebp + 0x144]
mov eax, dword [ebp + 0x288]
lea ebx, [ebp + 0xc0]
inc ecx
mov dword [ebp + 0x144], ecx
mov dword [ebx], eax
jmp 0x4016bc
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.00401a90
sub esp, 0x184
mov ecx, 0x62
mov esi, ebx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00402080
add esp, 0x188
test eax, eax
je 0x401633
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
mov eax, dword [ebp + 0x298]
test eax, eax
je 0x40164d
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.00401ca0
add esp, 8
test eax, eax
jne 0x401686
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
mov eax, dword [ebp + 0x28c]
push eax
call fcn.00401ad0
add esp, 4
test eax, eax
jne 0x4016a4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
mov ecx, dword [ebp + 0x288]
lea ebx, [ebp + 0xc0]
mov dword [ebp + 0x144], 1
mov dword [ebx], ecx
lea edi, [ebp + 0x248]
or ecx, 0xffffffff
xor eax, eax
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.00401a90
sub esp, 0x184
mov ecx, 0x62
mov esi, ebx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00402080
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