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

Disassembly:
mov eax, 0x7ff93444
call fcn.7ff890d8
sub esp, 0x614
mov al, byte [ebp - 0x59c]
mov byte [ebp - 0x20], al
and dword [ebp - 0x1c], 0
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 0x3c], 0x7ff96498
lea eax, [ebp - 0x20]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x5bc], eax
mov al, byte [ebp - 0x5b8]
mov ecx, dword [ebp - 0x5bc]
mov byte [ecx], al
mov eax, dword [ebp - 0x5bc]
and dword [eax + 4], 0
mov eax, dword [ebp - 0x5bc]
and dword [eax + 8], 0
mov eax, dword [ebp - 0x5bc]
and dword [eax + 0xc], 0
and dword [ebp - 0x24], 0
mov dword [ebp - 0x3c], 0x7ff96c30
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x7ff5d0c8
mov eax, dword [ebp - 0x10]
movsx eax, byte [eax]
test eax, eax
je 0x7ff5d0c8
mov eax, dword [ebp - 0x10]
movsx eax, byte [eax]
cmp eax, 0x25
jne 0x7ff5cec7
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
movsx eax, byte [eax]
test eax, eax
je 0x7ff5ca1d
mov eax, dword [ebp - 0x40]
movsx eax, byte [eax]
cmp eax, 0x25
je 0x7ff5ca1d
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
jmp 0x7ff5c9ff
mov eax, dword [ebp - 0x40]
movsx eax, byte [eax]
cmp eax, 0x25
jne 0x7ff5ce9e
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x44], eax
push dword [ebp - 0x44]
push str._programfilesdir_
push dword [ebp - 0x10]
call section..text
add esp, 0xc
test eax, eax
jne 0x7ff5ca62
lea eax, [ebp - 0x3c]
push eax
call fcn.7ff5d138
pop ecx
jmp 0x7ff5ce96
push dword [ebp - 0x44]
push str._installpath_
push dword [ebp - 0x10]
call section..text
add esp, 0xc
test eax, eax
jne 0x7ff5caeb
cmp dword [ebp + 0xc], 0
jne 0x7ff5ca87
mov eax, dword [0x7ffa5e10]
mov dword [ebp + 0xc], eax
and dword [ebp - 0x48], 0
mov byte [ebp - 4], 2
push dword [ebp + 0xc]
call fcn.7ff865bd
pop ecx
mov dword [ebp - 0x5a0], eax
mov byte [ebp - 4], 3
push 0
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x5a0]
push eax
call fcn.7ff884fe
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5a0]
call fcn.7ff86114
push dword [ebp - 0x48]
push 0x7ff97740
lea eax, [ebp - 0x3c]
push eax
call fcn.7ff86788
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.7ff86114
jmp 0x7ff5ce96
push dword [ebp - 0x44]
push str._programname_
push dword [ebp - 0x10]
call section..text
add esp, 0xc
test eax, eax
jne 0x7ff5cb71
cmp dword [ebp + 0xc], 0
jne 0x7ff5cb10
mov eax, dword [0x7ffa5e10]
mov dword [ebp + 0xc], eax
and dword [ebp - 0x4c], 0
mov byte [ebp - 4], 4
push dword [ebp + 0xc]
call fcn.7ff865bd
pop ecx
mov dword [ebp - 0x5a4], eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x5a4]
push eax
call fcn.7ff883fa
pop ecx
pop ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x5a4]
call fcn.7ff86114
push dword [ebp - 0x4c]
push 0x7ff97740
lea eax, [ebp - 0x3c]
push eax
call fcn.7ff86788
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.7ff86114
jmp 0x7ff5ce96
push dword [ebp - 0x44]
push str._basename_
push dword [ebp - 0x10]
call section..text
add esp, 0xc
test eax, eax
jne 0x7ff5cc2c
cmp dword [ebp + 0xc], 0
jne 0x7ff5cb9a
mov eax, dword [0x7ffa5e10]
mov dword [ebp + 0xc], eax
and dword [ebp - 0x50], 0
mov byte [ebp - 4], 6
and dword [ebp - 0x58], 0
mov byte [ebp - 4], 7
and dword [ebp - 0x54], 0
mov byte [ebp - 4], 8
push dword [ebp + 0xc]
call fcn.7ff865bd
pop ecx
mov dword [ebp - 0x5a8], eax
mov byte [ebp - 4], 9
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x5a8]
push eax
call fcn.7ff885db
add esp, 0x10
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x5a8]
call fcn.7ff86114
push dword [ebp - 0x58]
push 0x7ff97740
lea eax, [ebp - 0x3c]
push eax
call fcn.7ff86788
add esp, 0xc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x54]
call fcn.7ff86114
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x58]
call fcn.7ff86114
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.7ff86114
jmp 0x7ff5ce96
push dword [ebp - 0x44]
push str._versionid_
push dword [ebp - 0x10]
call section..text
add esp, 0xc
test eax, eax
jne 0x7ff5cc5f
push dword [0x7ffa59bc]
push 0x7ff97740
lea eax, [ebp - 0x3c]
push eax
call fcn.7ff86788
add esp, 0xc
jmp 0x7ff5ce96
push dword [ebp - 0x44]
push str._temp_
push dword [ebp - 0x10]
call section..text
add esp, 0xc
test eax, eax
jne 0x7ff5cd1d
lea eax, [ebp - 0x260]
push eax
push 0x104
call dword [0x7ff960dc]
lea eax, [ebp - 0x260]
push eax
call fcn.7ff86136
pop ecx
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 0x264]
movsx eax, byte [ebp + eax - 0x261]
cmp eax, 0x5c
jne 0x7ff5ccc0
mov eax, dword [ebp - 0x264]
and byte [ebp + eax - 0x261], 0
push 0x104
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.7ff6c5af
test eax, eax
je 0x7ff5ccfb
lea eax, [ebp - 0x15c]
push eax
call fcn.7ff86136
pop ecx
push eax
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.7ff51887
jmp 0x7ff5cd18
lea eax, [ebp - 0x260]
push eax
call fcn.7ff86136
pop ecx
push eax
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x3c]
call fcn.7ff51887
jmp 0x7ff5ce96
push dword [ebp - 0x44]
push str._cwd_
push dword [ebp - 0x10]
call section..text
add esp, 0xc
test eax, eax
jne 0x7ff5cd68
lea eax, [ebp - 0x368]
push eax
push 0x104
call dword [0x7ff960d8]
lea eax, [ebp - 0x368]
push eax
call fcn.7ff86136
pop ecx
push eax
lea eax, [ebp - 0x368]
push eax
lea ecx, [ebp - 0x3c]
call fcn.7ff51887
jmp 0x7ff5ce96
push dword [ebp - 0x44]
push str._systemsystem_
push dword [ebp - 0x10]
call section..text
add esp, 0xc
test eax, eax
jne 0x7ff5cdae
push 0x104
lea eax, [ebp - 0x46c]
push eax
call dword [0x7ff960d4]
lea eax, [ebp - 0x46c]
push eax
push 0x7ff97740
lea eax, [ebp - 0x3c]
push eax
call fcn.7ff86788
add esp, 0xc
jmp 0x7ff5ce96
push dword [ebp - 0x44]
push str._systemroot_
push dword [ebp - 0x10]
call section..text
add esp, 0xc
test eax, eax
jne 0x7ff5cdf4
push 0x104
lea eax, [ebp - 0x570]
push eax
call dword [0x7ff960d0]
lea eax, [ebp - 0x570]
push eax
push 0x7ff97740
lea eax, [ebp - 0x3c]
push eax
call fcn.7ff86788
add esp, 0xc
jmp 0x7ff5ce96
push dword [ebp - 0x44]
push 0x7ff976e4
push dword [ebp - 0x10]
call section..text
add esp, 0xc
test eax, eax
jne 0x7ff5ce26
mov byte [ebp - 0x5c0], 0x25
push 1
lea eax, [ebp - 0x5c0]
push eax
lea ecx, [ebp - 0x3c]
mov eax, dword [ebp - 0x3c]
call dword [eax + 4]
jmp 0x7ff5ce96
mov eax, dword [ebp - 0x44]
dec eax
dec eax
push eax
mov eax, dword [ebp - 0x10]
inc eax
push eax
lea ecx, [ebp - 0x578]
call fcn.7ff86449
mov byte [ebp - 4], 0xa
and dword [ebp - 0x574], 0
mov byte [ebp - 4], 0xb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
lea eax, [ebp - 0x574]
push eax
push dword [ebp - 0x578]
call fcn.7ff5d1b5
add esp, 0x10
push eax
push 0x7ff97740
lea eax, [ebp - 0x3c]
push eax
call fcn.7ff86788
add esp, 0xc
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x574]
call fcn.7ff86114
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x578]
call fcn.7ff86114
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x10], eax
jmp 0x7ff5cec2
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
mov byte [ebp - 0x5c4], al
push 1
lea eax, [ebp - 0x5c4]
push eax
lea ecx, [ebp - 0x3c]
mov eax, dword [ebp - 0x3c]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
jmp 0x7ff5d0c3
mov eax, dword [ebp - 0x10]
movsx eax, byte [eax]
cmp eax, 0x24
jne 0x7ff5d09f
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x57c], eax
mov eax, dword [ebp - 0x57c]
movsx eax, byte [eax]
test eax, eax
je 0x7ff5cf0a
mov eax, dword [ebp - 0x57c]
movsx eax, byte [eax]
cmp eax, 0x24
je 0x7ff5cf0a
mov eax, dword [ebp - 0x57c]
inc eax
mov dword [ebp - 0x57c], eax
jmp 0x7ff5cee0
mov eax, dword [ebp - 0x57c]
movsx eax, byte [eax]
cmp eax, 0x24
je 0x7ff5cf4d
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
mov byte [ebp - 0x619], al
mov al, byte [ebp - 0x619]
mov byte [ebp - 0x5c8], al
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
push 1
lea eax, [ebp - 0x5c8]
push eax
lea ecx, [ebp - 0x3c]
mov eax, dword [ebp - 0x3c]
call dword [eax + 4]
jmp 0x7ff5d09d
mov eax, dword [ebp - 0x57c]
inc eax
mov dword [ebp - 0x57c], eax
mov eax, dword [ebp - 0x57c]
sub eax, dword [ebp - 0x10]
cmp eax, 2
jne 0x7ff5cf86
mov byte [ebp - 0x5cc], 0x24
push 1
lea eax, [ebp - 0x5cc]
push eax
lea ecx, [ebp - 0x3c]
mov eax, dword [ebp - 0x3c]
call dword [eax + 4]
jmp 0x7ff5d094
mov eax, dword [ebp - 0x57c]
sub eax, dword [ebp - 0x10]
dec eax
dec eax
push eax
mov eax, dword [ebp - 0x10]
inc eax
push eax
lea ecx, [ebp - 0x594]
call fcn.7ff86449
mov byte [ebp - 4], 0xc
push 1
lea eax, [ebp - 0x590]
push eax
push dword [ebp - 0x594]
call dword [0x7ff96074]
mov dword [ebp - 0x598], eax
and byte [ebp - 0x5b0], 0
lea eax, [ebp - 0x5ac]
push eax
lea eax, [ebp - 0x5b0]
push eax
mov eax, dword [ebp - 0x598]
inc eax
push eax
lea ecx, [ebp - 0x58c]
call fcn.7ff5d607
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x588], 0
jne 0x7ff5cfff
and dword [ebp - 0x620], 0
jmp 0x7ff5d011
mov eax, dword [ebp - 0x584]
sub eax, dword [ebp - 0x588]
mov dword [ebp - 0x620], eax
mov eax, dword [ebp - 0x588]
mov dword [ebp - 0x5e0], eax
push dword [ebp - 0x620]
push dword [ebp - 0x5e0]
push dword [ebp - 0x594]
call dword [0x7ff96074]
mov dword [ebp - 0x598], eax
mov eax, dword [ebp - 0x588]
mov dword [ebp - 0x5e4], eax
mov eax, dword [ebp - 0x5e4]
add eax, dword [ebp - 0x598]
and byte [eax], 0
mov eax, dword [ebp - 0x588]
mov dword [ebp - 0x5e8], eax
push dword [ebp - 0x598]
push dword [ebp - 0x5e8]
lea ecx, [ebp - 0x3c]
call fcn.7ff51887
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x58c]
call fcn.7ff54455
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x594]
call fcn.7ff86114
mov eax, dword [ebp - 0x57c]
mov dword [ebp - 0x10], eax
jmp 0x7ff5d0c3
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
mov byte [ebp - 0x5f8], al
push 1
lea eax, [ebp - 0x5f8]
push eax
lea ecx, [ebp - 0x3c]
mov eax, dword [ebp - 0x3c]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
jmp 0x7ff5c9d1
and byte [ebp - 0x5fc], 0
push 1
lea eax, [ebp - 0x5fc]
push eax
lea ecx, [ebp - 0x3c]
mov eax, dword [ebp - 0x3c]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x600], eax
push dword [ebp - 0x600]
mov ecx, dword [ebp + 8]
call fcn.7ff86086
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x5b4], eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x34]
call fcn.7ff54455
and byte [ebp - 4], 0
mov dword [ebp - 0x3c], 0x7ff96498
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.7ff54455
mov eax, dword [ebp - 0x5b4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret