Function at 0x10083f90
Capabilities:
Check if file exists
Get common file path
Get startup folder
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009f9a8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x100e6018]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x100e6018]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [esp + 0x44]
push eax
push 0x30c
lea ecx, [esp + 0x74]
mov dword [esp + 0x18], esi
mov dword [esp + 0x4c], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
call fcn.10079010
lea eax, [esp + 0x44]
mov dword [esp + 0x88], 0
push eax
push 0x30c
lea ecx, [esp + 0x50]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
call fcn.10079010
mov byte [esp + 0x88], 1
mov edi, dword [esp + 0x6c]
push 0x22
xor eax, eax
push esi
mov word [edi], ax
mov ebx, esi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
mov eax, dword [sym.imp.SHLWAPI.dll_StrCatW]
test esi, esi
je 0x10084090
lea esp, [esp]
push ebx
xor ecx, ecx
push edi
mov word [esi], cx
call eax
push 0x22
lea ebx, [esi + 2]
push ebx
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
mov eax, dword [sym.imp.SHLWAPI.dll_StrCatW]
test esi, esi
jne 0x10084070
push ebx
push edi
call eax
push 0x100ba228
push edi
call dword [sym.imp.SHLWAPI.dll_StrTrimW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100840a5
mov esi, dword [esp + 0x48]
sub ecx, edx
sar ecx, 1
jne 0x100840c1
xor bl, bl
jmp 0x10084480
mov eax, dword [0x100ebf78]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov dword [esp + 0x44], 0
test eax, eax
jne 0x100840f0
push str.Kernel32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x100ebf78], eax
test eax, eax
je 0x10084344
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x1008433e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x44]
push ecx
push eax
call ebx
cmp dword [esp + 0x44], 0
setg al
test al, al
je 0x1008433e
xor eax, eax
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
cmp word [edi], ax
jne 0x10084144
xor ecx, ecx
jmp 0x1008415f
mov ecx, edi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10084150
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [esp + 0x5c]
call fcn.100089b0
push str._programfiles_
mov byte [esp + 0x8c], 2
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push edi
call ebx
test eax, eax
je 0x1008421d
cmp dword [ebp + 0xc], 0x100
push 0
jne 0x10084197
push 0x26
jmp 0x10084199
push 0x2a
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
cmp word [esi], ax
jne 0x100841c2
xor ecx, ecx
jmp 0x100841d6
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100841c7
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [esp + 0x34]
call fcn.100089b0
mov byte [esp + 0x88], 3
push 0xe
xor eax, eax
push str._programfiles_
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
call fcn.100089b0
mov byte [esp + 0x88], 4
jmp 0x100842c1
push str._commonprogramfiles_
push edi
call ebx
test eax, eax
je 0x1008430f
cmp dword [ebp + 0xc], 0x100
push 0
jne 0x1008423c
push 0x2b
jmp 0x1008423e
push 0x2c
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
cmp word [esi], ax
jne 0x10084267
xor ecx, ecx
jmp 0x1008427f
mov ecx, esi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10084270
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [esp + 0x34]
call fcn.100089b0
mov byte [esp + 0x88], 5
push 0x14
xor eax, eax
push str._commonprogramfiles_
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
call fcn.100089b0
mov byte [esp + 0x88], 6
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x18]
lea ecx, [esp + 0x58]
call fcn.100837a0
mov ebx, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [esp + 0x28], 8
jb 0x100842ec
push dword [esp + 0x14]
call ebx
add esp, 4
xor eax, eax
cmp dword [esp + 0x40], 8
mov word [esp + 0x14], ax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 7
jb 0x1008430f
push dword [esp + 0x2c]
call ebx
add esp, 4
cmp dword [esp + 0x68], 8
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [esp + 0x54]
cmovae eax, dword [esp + 0x54]
push eax
push esi
call ebx
cmp dword [esp + 0x68], 8
jb 0x10084355
push dword [esp + 0x54]
mov eax, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
call eax
add esp, 4
jmp 0x10084355
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov eax, dword [esp + 0x4c]
sub eax, esi
sar eax, 1
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
push edi
call ebx
mov ebx, edi
lea ecx, [ebx + 2]
mov edi, edi
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x10084360
sub ebx, ecx
sar ebx, 1
cmp ebx, 3
jb 0x10084399
movzx eax, word [edi]
push eax
call dword [sym.imp.MSVCR110.dll_iswalpha]
add esp, 4
test eax, eax
je 0x10084399
cmp word [edi + 2], 0x3a
jne 0x10084399
cmp word [edi + 4], 0x5c
jne 0x10084399
push edi
jmp 0x10084473
cmp ebx, 2
jbe 0x100843b1
cmp word [edi], 0x5c
jne 0x100843b1
cmp word [edi + 2], 0x5c
jne 0x100843b1
push edi
jmp 0x10084473
push 0x100ba28c
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
je 0x100843c7
push edi
jmp 0x10084473
mov eax, dword [esp + 0x4c]
sub eax, esi
sar eax, 1
push eax
push esi
mov dword [esp + 0x4c], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x100843e6
xor bl, bl
jmp 0x10084480
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x100843f0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100843f0
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCatW]
sub ecx, edx
sar ecx, 1
cmp word [esi + ecx*2 - 2], 0x5c
je 0x10084415
push 0x100a21f4
push esi
call ebx
push edi
push esi
call ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call ebx
test eax, eax
jne 0x10084472
mov eax, dword [esp + 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x1008443a
xor bl, bl
jmp 0x10084480
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10084440
sub ecx, edx
sar ecx, 1
cmp word [esi + ecx*2 - 2], 0x5c
je 0x10084463
push 0x100a21f4
push esi
call dword [sym.imp.SHLWAPI.dll_StrCatW]
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_StrCatW]
push esi
call ebx
test eax, eax
je 0x1008447e
push esi
push dword [esp + 0x14]
mov eax, dword [sym.imp.SHLWAPI.dll_StrCpyW]
call eax
mov bl, 1
test esi, esi
je 0x1008448e
push esi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
push edi
call eax
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.100947be
mov esp, ebp
pop ebp
ret