Function at 0x1002a6e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10075dd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
push ebx
push esi
push edi
lea ecx, [ebp - 0x44]
call fcn.10055420
lea eax, [ebp - 0x44]
xor esi, esi
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call fcn.1001e4d0
add esp, 0xc
lea ecx, [ebp - 0x44]
call fcn.10007fa0
test eax, eax
jle 0x1002a7ce
mov bl, 3
lea ecx, [ebp - 0x10]
call fcn.10002f10
lea ecx, [ebp - 0x24]
push esi
push ecx
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.100029d0
mov edx, dword [eax]
lea eax, [ebp - 0x10]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_s
push eax
mov byte [ebp - 4], 2
call fcn.10053d2b
add esp, 0xc
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.1005bb45
push str.AgirProduct
lea ecx, [ebp - 0x10]
call fcn.10002f50
push eax
lea ecx, [ebp - 0x28]
push reloc.OLEAUT32.dll_SysReAllocString
push ecx
call fcn.1001e260
add esp, 0x10
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.10009370
test eax, eax
jne 0x1002a864
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.1005bb45
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.1005bb45
lea ecx, [ebp - 0x44]
inc esi
call fcn.10007fa0
cmp esi, eax
jl 0x1002a736
or edi, 0xffffffff
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], edi
call fcn.10055453
push 0x100989c8
push str.SOFTWAREAgir
lea ecx, [ebp - 0x30]
push reloc.OLEAUT32.dll_SysReAllocString
push ecx
call fcn.1001e260
add esp, 0x10
push 0x40
mov ecx, eax
mov dword [ebp - 4], 5
call fcn.10002f50
lea edx, [ebp - 0x10]
push eax
push edx
call fcn.1001f050
add esp, 0xc
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 7
call fcn.1005bb45
lea ecx, [ebp - 0x10]
call fcn.10009370
test eax, eax
je 0x1002a8cf
lea ecx, [ebp - 0x10]
call fcn.10002f50
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.1005bb45
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x30]
push esi
push edx
lea ecx, [ebp - 0x44]
call fcn.100029d0
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.10002f50
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.1005bb45
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.1005bb45
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.1005bb45
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
call fcn.10055453
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.1005bb45
call fcn.10025a50
mov ecx, dword [0x100a19c0]
call fcn.10025920
test eax, eax
mov dword [ebp - 0x24], eax
je 0x1002aa6b
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea ecx, [ebp - 0x2c]
call fcn.10002f10
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 8
call fcn.10002f10
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x2c]
push ecx
mov ecx, dword [0x100a19c0]
lea eax, [ebp - 0x24]
push edx
push eax
mov byte [ebp - 4], 9
call fcn.100566ba
lea ecx, [ebp - 0x58]
call fcn.10055420
push 0
lea ecx, [ebp - 0x58]
push 0
push ecx
push 0x2c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xa
call fcn.10002f50
push eax
call fcn.10019ee0
add esp, 0x14
lea ecx, [ebp - 0x58]
xor esi, esi
call fcn.10007fa0
test eax, eax
jle 0x1002aa3d
lea edx, [ebp - 0x14]
push esi
push edx
lea ecx, [ebp - 0x58]
call fcn.100029d0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xb
call fcn.10002f10
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
push eax
push str.__PROGRAMFILES___s
push ecx
mov byte [ebp - 4], 0xc
call fcn.10053d2b
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x15b]
mov byte [ebp - 0x15c], 0
rep stosd dword es:[edi], eax
add esp, 0xc
lea edx, [ebp - 0x15c]
stosw word es:[edi], ax
push 0x104
push edx
lea ecx, [ebp - 0x20]
stosb byte es:[edi], al
call fcn.10002f50
push eax
call ebx
lea ecx, [ebp - 0x18]
call fcn.10002f10
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x15c]
push eax
push ecx
lea edx, [ebp - 0x18]
push str._s_s.
push edx
mov byte [ebp - 4], 0xd
call fcn.10053d2b
add esp, 0x10
lea ecx, [ebp - 0x18]
call fcn.10002f50
push eax
call fcn.100203d0
add esp, 4
test eax, eax
jne 0x1002aa7e
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xc
call fcn.1005bb45
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xb
call fcn.1005bb45
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xa
call fcn.1005bb45
lea ecx, [ebp - 0x58]
inc esi
call fcn.10007fa0
cmp esi, eax
jl 0x1002a966
or edi, 0xffffffff
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 9
call fcn.10055453
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 8
call fcn.1005bb45
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.1005bb45
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x1002a8fb
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x14]
call fcn.10002f50
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xc
call fcn.1005bb45
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xb
call fcn.1005bb45
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xa
call fcn.1005bb45
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 9
call fcn.10055453
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 8
call fcn.1005bb45
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.1005bb45
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret