Function at 0x4171e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418ce7
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x42300c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x11c], ecx
mov byte [ebp - 0x115], 0
lea ecx, [ebp - 0x14c]
call fcn.004016e0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x11c]
call fcn.00417c00
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0
jbe 0x417343
mov byte [ebp - 0x115], 1
mov eax, dword [ebp - 0x11c]
mov dword [eax + 0x1c], 1
mov ecx, dword [ebp - 0x11c]
call fcn.00416f40
mov ecx, dword [ebp - 0x11c]
call fcn.004158c0
lea ecx, [ebp - 0x144]
push ecx
mov ecx, dword [ebp - 0x11c]
call fcn.004161f0
mov byte [ebp - 4], 1
push 0x41ec08
lea ecx, [ebp - 0x144]
call fcn.004017a0
xor edx, edx
mov word [ebp - 0x130], dx
xor eax, eax
mov word [ebp - 0x12c], ax
xor ecx, ecx
mov word [ebp - 0x128], cx
xor edx, edx
mov word [ebp - 0x124], dx
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x128]
push ecx
lea edx, [ebp - 0x12c]
push edx
lea eax, [ebp - 0x130]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x160], esp
lea edx, [ebp - 0x144]
push edx
call fcn.004016c0
mov ecx, dword [ebp - 0x11c]
call fcn.00416de0
movzx eax, word [ebp - 0x124]
push eax
movzx ecx, word [ebp - 0x128]
push ecx
movzx edx, word [ebp - 0x12c]
push edx
movzx eax, word [ebp - 0x130]
push eax
push 0x41ec28
mov ecx, dword [ebp - 0x11c]
add ecx, 8
push ecx
call fcn.00402400
add esp, 0x18
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x144]
call fcn.00401620
jmp 0x4174b7
lea edx, [ebp - 0x148]
push edx
mov ecx, dword [ebp - 0x11c]
call fcn.004161f0
mov byte [ebp - 4], 2
push str.ApplicationClientSetup.exe
lea ecx, [ebp - 0x148]
call fcn.004017a0
xor eax, eax
mov word [ebp - 0x140], ax
xor ecx, ecx
mov word [ebp - 0x13c], cx
xor edx, edx
mov word [ebp - 0x138], dx
xor eax, eax
mov word [ebp - 0x134], ax
lea ecx, [ebp - 0x134]
push ecx
lea edx, [ebp - 0x138]
push edx
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x140]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x164], esp
lea edx, [ebp - 0x148]
push edx
call fcn.004016c0
mov ecx, dword [ebp - 0x11c]
call fcn.00416de0
movzx eax, word [ebp - 0x134]
push eax
movzx ecx, word [ebp - 0x138]
push ecx
movzx edx, word [ebp - 0x13c]
push edx
movzx eax, word [ebp - 0x140]
push eax
push str._d._d._d._d
mov ecx, dword [ebp - 0x11c]
add ecx, 8
push ecx
call fcn.00402400
add esp, 0x18
lea edx, [ebp - 0x150]
push edx
push 0xf003f
push 0
push 0x41ec60
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x417483
mov dword [ebp - 0x158], 0x104
lea eax, [ebp - 0x158]
push eax
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x168]
push edx
push 0
push str.InstalledVersion
mov eax, dword [ebp - 0x150]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x15c], eax
cmp dword [ebp - 0x15c], 0
jne 0x417476
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x14c]
call fcn.004015e0
mov edx, dword [ebp - 0x150]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x14c]
call fcn.004017d0
push eax
mov ecx, dword [ebp - 0x11c]
add ecx, 8
call fcn.00401550
test eax, eax
je 0x4174a8
mov byte [ebp - 0x115], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x148]
call fcn.00401620
mov al, byte [ebp - 0x115]
mov byte [ebp - 0x11d], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14c]
call fcn.00401620
mov al, byte [ebp - 0x11d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00403385
mov esp, ebp
pop ebp
ret