Function at 0x9f8d50
Capabilities:
Set environment variable
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0xa89e4c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xce8
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
push str.UpgradePath
call fcn.00a352d0
add esp, 8
lea ecx, [esp + 0x278]
mov ebp, eax
call fcn.00a155c0
lea ecx, [esp + 0x68]
mov dword [esp + 0xd00], ebx
call fcn.00a155c0
lea eax, [esp + 0x488]
push 0x104
push eax
push ebx
mov byte [esp + 0xd0c], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.00a221b0
lea ecx, [esp + 0x488]
push 0x5c
push ecx
call fcn.00a7e1b5
lea edi, [eax + 2]
push 0x2e
push edi
mov word [eax], bx
call fcn.00a7e1b5
mov esi, eax
add esp, 0x10
cmp esi, ebx
mov dword [esp + 0x10], ebx
je 0x9f8dfc
lea edx, [esi + 2]
push edx
call fcn.00a7e77f
add esp, 4
mov dword [esp + 0x10], eax
mov word [esi], bx
cmp ebp, ebx
je 0x9f8e1f
lea eax, [esp + 0x278]
push ebx
push eax
push ebp
call fcn.00a7e07a
add esp, 4
inc eax
push eax
push ebp
call fcn.00a141f0
add esp, 0x10
jmp 0x9f8e53
lea ecx, [esp + 0x488]
test ecx, ecx
jne 0x9f8e2e
xor eax, eax
jmp 0x9f8e3e
lea edx, [esp + 0x488]
push edx
call fcn.00a7e07a
add esp, 4
push eax
lea eax, [esp + 0x48c]
push eax
lea ecx, [esp + 0x280]
call fcn.00a15a90
mov ecx, dword [esp + 0x280]
push edi
push ecx
lea edx, [esp + 0x70]
push str._ls_ls.
push edx
call fcn.00a16060
mov ecx, dword [esp + 0x80]
add esp, 0x10
lea eax, [esp + 0x8a0]
push eax
push ecx
call fcn.00a1fe50
mov esi, dword [esp + 0x10]
mov edi, eax
cmp edi, 0xffffffff
je 0x9f9095
test byte [esp + 0x8a0], 0x10
jne 0x9f8f0b
lea edx, [esp + 0x8cc]
push 0x2e
push edx
call fcn.00a7e1b5
add esp, 8
test eax, eax
je 0x9f8f0b
lea edx, [eax + 2]
mov bl, 1
mov ecx, edx
mov ax, word [ecx]
test ax, ax
je 0x9f8edf
cmp ax, 0x30
jb 0x9f8ecd
cmp ax, 0x39
jbe 0x9f8ecf
xor bl, bl
mov ax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x9f8ec1
test bl, bl
je 0x9f8f0b
push edx
call fcn.00a7e77f
add esp, 4
cmp eax, esi
jbe 0x9f8f0b
mov esi, eax
lea eax, [esp + 0x8cc]
push 0x104
lea ecx, [esp + 0xaf4]
push eax
push ecx
call fcn.00a7e178
add esp, 0xc
lea edx, [esp + 0x8a0]
push edx
push edi
call fcn.00a1ff70
test eax, eax
jne 0x9f8e92
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, dword [esp + 0x10]
jbe 0x9f9095
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 0x10], esi
push 0xab4cd8
lea ecx, [esp + 0x6c]
mov byte [esp + 0xd04], 2
call fcn.00a163c0
push esi
mov byte [esp + 0xd04], 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x280]
lea eax, [esp + 0xaf0]
push eax
push ecx
lea edx, [esp + 0x70]
push 0xa9e668
push edx
call fcn.00a16060
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x34]
add esp, 0x10
rep stosd dword es:[edi], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x44
push eax
call fcn.00a23c90
lea ecx, [esp + 0x690]
call fcn.00a155c0
mov byte [esp + 0xd00], 3
call fcn.00a249d0
mov cx, word [eax]
cmp cx, 0x22
jne 0x9f8fe6
mov cx, word [eax + 2]
add eax, 2
test cx, cx
je 0x9f8ffd
cmp cx, 0x22
je 0x9f8ffd
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x9f8fd2
jmp 0x9f8ffd
test cx, cx
je 0x9f8ffd
cmp cx, 0x20
je 0x9f8ffd
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x9f8feb
mov ecx, dword [esp + 0x70]
push eax
push ecx
lea edx, [esp + 0x698]
push str.__ls__ls
push edx
call fcn.00a16060
mov eax, dword [esp + 0x6a8]
mov ecx, dword [esp + 0x80]
add esp, 0x10
push eax
push ecx
push str.Launching_upgraded_version__ls__cmd_ls_n
call fcn.009fe320
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
add esp, 0xc
push 0
push str.TS_SOURCE
call esi
push 0
push 0xaa109c
call esi
lea edx, [esp + 0x14]
mov ecx, dword [esp + 0x698]
lea eax, [esp + 0x24]
push edx
mov edx, dword [esp + 0x74]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push ecx
push edx
call fcn.00a23370
test eax, eax
je 0x9f9081
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [esp + 0x690]
mov byte [esp + 0xd00], 1
call fcn.00a155e0
lea ecx, [esp + 0x68]
mov byte [esp + 0xd00], 0
call fcn.00a155e0
lea ecx, [esp + 0x278]
mov dword [esp + 0xd00], 0xffffffff
call fcn.00a155e0
mov ecx, dword [esp + 0xcf8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xcf4
ret