Function at 0x429170
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f5249
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x67f4f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, 1
mov dword [ebp - 0x428], eax
call fcn.00409110
mov ecx, eax
test ecx, ecx
je 0x429807
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x43c], eax
push str.__fromnewinstall
lea ecx, [ebp - 0x43c]
mov dword [ebp - 4], 0
call fcn.004084e0
test al, al
jne 0x4291f6
push 0x11
push str.__fromnewinstall
lea ecx, [ebp - 0x43c]
call fcn.004098e0
mov eax, dword [0x6898a8]
mov dword [ebp - 4], 1
mov dword [ebp - 0x444], 4
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x440], 4
test al, 1
jne 0x429236
or eax, 1
mov dword [0x6898a4], 0
mov dword [0x6898a8], eax
mov byte [ebp - 0x421], 0
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 2
push eax
call fcn.00462c42
lea eax, [ebp - 0x438]
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x421]
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x430]
push eax
push 0x426cc0
push 0x6898a4
call fcn.004636f9
add esp, 0x10
test eax, eax
je 0x4297ee
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 4
push eax
call fcn.00462c7c
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x440]
add esp, 4
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x444]
push eax
push str.shortcut
push 0x6898ac
push reloc.OLEAUT32.dll_SysReAllocString
call esi
or edi, 0xffffffff
test eax, eax
jne 0x4292dd
cmp dword [ebp - 0x448], 1
je 0x42971e
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0053dd00
mov eax, dword [0x6898e8]
add esp, 0xc
mov dword [ebp - 0x444], 1
mov dword [ebp - 0x440], 0x104
test al, 1
jne 0x429322
or eax, 1
mov dword [0x6898e4], 0
mov dword [0x6898e8], eax
mov byte [ebp - 0x421], 0
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 7
push eax
call fcn.00462c42
lea eax, [ebp - 0x438]
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x421]
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x430]
push eax
push 0x427020
push 0x6898e4
call fcn.004636f9
add esp, 0x10
test eax, eax
je 0x4297d5
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 9
push eax
call fcn.00462c7c
add esp, 4
mov byte [ebp - 4], 1
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x444]
push eax
push 0x60f3b4
push 0x6898ec
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x4293bd
mov ebx, 2
jmp 0x42971e
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4293c6
mov ecx, dword [ebp - 0x428]
lea eax, [ebp - 0x218]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.004098e0
mov eax, dword [0x689928]
test al, 1
jne 0x429403
or eax, 1
mov dword [0x689924], 0
mov dword [0x689928], eax
mov byte [ebp - 0x421], 0
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 0xc
push eax
call fcn.00462c42
lea eax, [ebp - 0x438]
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x421]
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x430]
push eax
push 0x426f40
push 0x689924
call fcn.004636f9
add esp, 0x10
test eax, eax
je 0x4297b8
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 0xe
push eax
call fcn.00462c7c
add esp, 4
mov byte [ebp - 4], 1
lea eax, [ebp - 0x218]
push 0x68992c
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x429495
lea ebx, [eax + 2]
jmp 0x42971e
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0053dd00
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push dword [0x689748]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.00409110
mov ecx, eax
test ecx, ecx
je 0x429811
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x434], eax
mov byte [ebp - 4], 0x11
call fcn.00409110
mov ecx, eax
test ecx, ecx
je 0x42981b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x42c]
call fcn.004084e0
test al, al
jne 0x429546
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x429524
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x42c]
call fcn.004098e0
lea eax, [ebp - 0x434]
mov byte [ebp - 4], 0x13
push eax
lea eax, [ebp - 0x42c]
push eax
call fcn.00419d70
mov edx, dword [ebp - 0x42c]
add esp, 8
mov byte [ebp - 4], 0x11
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x429581
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00409110
mov ecx, eax
test ecx, ecx
je 0x429825
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x428], eax
mov byte [ebp - 4], 0x14
call fcn.00409110
mov ecx, eax
test ecx, ecx
je 0x42982f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 0x15
push eax
lea ecx, [ebp - 0x42c]
call fcn.004084e0
test al, al
jne 0x429604
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4295e2
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x42c]
call fcn.004098e0
lea eax, [ebp - 0x428]
mov byte [ebp - 4], 0x16
push eax
lea eax, [ebp - 0x42c]
push eax
call fcn.00419d70
mov edx, dword [ebp - 0x42c]
add esp, 8
mov byte [ebp - 4], 0x14
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42963f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x428]
cmp dword [esi - 0xc], 0
jne 0x429695
mov ebx, 2
mov byte [ebp - 4], 0x11
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42966b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x434]
mov eax, edi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42971e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x42971e
mov edi, dword [ebp - 0x434]
push edi
push esi
call fcn.00413500
add esp, 8
lea ecx, [ebp - 0x43c]
test eax, eax
jns 0x4296c0
push 0
push 0x6101d0
call fcn.004098e0
or ebx, 0xffffffff
jmp 0x4296e3
jne 0x4296d2
push 0
push 0x6101d0
call fcn.004098e0
xor ebx, ebx
jmp 0x4296e3
push 0x10
push str.__fromupinstall
mov ebx, 1
call fcn.004098e0
mov byte [ebp - 4], 0x11
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4296ff
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x42971b
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
or edi, 0xffffffff
mov esi, dword [ebp - 0x43c]
cmp dword [esi - 4], 1
jle 0x42973e
push dword [esi - 0xc]
lea ecx, [ebp - 0x43c]
call fcn.00409060
mov esi, dword [ebp - 0x43c]
call fcn.004214e0
add eax, 0x40
mov dword [ebp - 0x428], eax
test esi, esi
jne 0x429754
xor ecx, ecx
jmp 0x429775
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x429760
mov eax, dword [ebp - 0x428]
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, eax
call fcn.004098e0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x42979a
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00478a88
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 0xf
push eax
call fcn.00462cbe
add esp, 4
mov byte [ebp - 4], 0xd
test al, al
je 0x42984f
jmp 0x429839
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 0xa
push eax
call fcn.00462cbe
add esp, 4
mov byte [ebp - 4], 8
jmp 0x4297cf
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 5
push eax
call fcn.00462cbe
add esp, 4
mov byte [ebp - 4], 3
jmp 0x4297cf
push 0x80004005
call fcn.004084c0
push 0x80004005
call fcn.004084c0
push 0x80004005
call fcn.004084c0
push 0x80004005
call fcn.004084c0
push 0x80004005
call fcn.004084c0
sub esp, 8
lea eax, [ebp - 0x438]
mov ecx, esp
push eax
call fcn.00407770
call fcn.00407ca0
call fcn.004637ca
int3