Function at 0x1001a3c0
Capabilities:
Set environment variable

Disassembly:
push 0xffffffffffffffff
push 0x100505c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
mov eax, dword [0x100778dc]
push ebx
push ebp
push esi
push edi
push 4
mov dword [esp + 0x60], eax
mov byte [esp + 0x17], 1
call fcn.1003fa82
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x68], ebx
je 0x1001a421
push ebx
push str.1zoHHNCmda__d4HUdeyhNq2k5iGMo7Lvk2O7DfwKXVH2S_6Xf3f_8UuCzytRJFn_ag5_reggBv9VtC7D5LziNbpkaxr
call fcn.100254b0
add esp, 4
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, esi
call fcn.100264f0
jmp 0x1001a423
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [eax]
cmp eax, ebx
mov dword [esp + 0x68], 1
jne 0x1001a56d
call fcn.1001a2d0
xor ebp, ebp
mov ecx, dword [0x1007a464]
cmp ecx, ebx
je 0x1001a56d
mov eax, dword [0x1007a468]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jae 0x1001a56d
push 0x34
mov esi, 0xf
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.10001410
mov eax, dword [0x1007a464]
mov ecx, dword [eax + ebp*4]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0x74], 2
call fcn.10018ee0
add esp, 0xc
mov eax, dword [esp + 0x3c]
mov edi, 0x10
cmp eax, edi
mov byte [esp + 0x68], 4
jb 0x1001a4c0
mov ecx, dword [esp + 0x28]
push ecx
call fcn.1004119d
add esp, 4
push 4
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.1003fa82
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov byte [esp + 0x68], 5
je 0x1001a503
cmp dword [esp + 0x58], edi
mov ecx, dword [esp + 0x44]
jae 0x1001a4f1
lea ecx, [esp + 0x44]
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, eax
call fcn.100264f0
mov esi, eax
jmp 0x1001a505
xor esi, esi
mov edi, dword [esp + 0x14]
cmp edi, ebx
mov byte [esp + 0x68], 4
mov dword [esp + 0x14], esi
je 0x1001a526
mov ecx, edi
call fcn.10026790
push edi
call fcn.1004119d
add esp, 4
cmp dword [esi], ebx
mov eax, dword [esp + 0x58]
mov byte [esp + 0x68], 1
jne 0x1001a55b
cmp eax, 0x10
jb 0x1001a545
mov edx, dword [esp + 0x44]
push edx
call fcn.1004119d
add esp, 4
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
inc ebp
jmp 0x1001a440
cmp eax, 0x10
jb 0x1001a56d
mov eax, dword [esp + 0x44]
push eax
call fcn.1004119d
add esp, 4
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
cmp eax, ebx
jne 0x1001a582
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1001a701
push ebx
push ebx
push str.UninstallString
mov ecx, esi
call fcn.10026550
mov edi, eax
mov dword [esp + 0x18], edi
cmp edi, ebx
mov byte [esp + 0x68], 6
jne 0x1001a5ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esp + 0x13], bl
jmp 0x1001a6f0
mov eax, edi
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1001a5c3
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x2c]
call fcn.10001410
push 3
push 0x10054958
lea ecx, [esp + 0x2c]
mov byte [esp + 0x70], 7
call fcn.100081c0
push 1
call fcn.1002af70
mov esi, eax
add esp, 4
push esi
push esi
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
cmp dword [esp + 0x3c], 0x10
mov eax, dword [esp + 0x28]
jae 0x1001a613
lea eax, [esp + 0x28]
lea ecx, [esp + 0x20]
push ecx
push ebx
push 1
push ebx
push eax
call fcn.100271c0
add esp, 0x14
test al, al
jne 0x1001a632
mov byte [esp + 0x13], bl
jmp 0x1001a6d4
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x40]
push edx
push eax
mov byte [esp + 0x70], 8
call fcn.1001d420
add esp, 8
test al, al
jne 0x1001a663
mov ecx, dword [esp + 0x44]
mov byte [esp + 0x13], bl
jmp 0x1001a6c7
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
xor edi, edi
jmp 0x1001a670
mov ecx, dword [esp + 0x44]
cmp ecx, ebx
jne 0x1001a67c
xor eax, eax
jmp 0x1001a685
mov eax, dword [esp + 0x48]
sub eax, ecx
sar eax, 2
cmp edi, eax
jge 0x1001a6c3
mov eax, dword [ecx + edi*4]
push eax
push ebx
push 0x100000
call ebp
mov esi, eax
cmp esi, ebx
jne 0x1001a6ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x1c]
mov byte [esp + 0x13], bl
inc edi
jmp 0x1001a670
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x1c]
inc edi
jmp 0x1001a670
mov edi, dword [esp + 0x18]
cmp ecx, ebx
je 0x1001a6d4
push ecx
call fcn.1004119d
add esp, 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
cmp dword [esp + 0x3c], 0x10
jb 0x1001a6f0
mov ecx, dword [esp + 0x28]
push ecx
call fcn.1004119d
add esp, 4
push edi
call fcn.10041868
mov bl, byte [esp + 0x17]
mov esi, dword [esp + 0x18]
add esp, 4
mov ecx, esi
mov dword [esp + 0x68], 0xffffffff
call fcn.10026790
push esi
call fcn.1004119d
mov ecx, dword [esp + 0x64]
add esp, 4
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x50]
mov al, bl
pop ebx
call fcn.1004189e
add esp, 0x5c
ret