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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010a868
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x101555ac]
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 ebx, dword [ebp + 8]
call fcn.10004f30
mov ecx, eax
test ecx, ecx
je 0x100205ee
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x428], eax
push str.__fromnewinstall
lea ecx, [ebp - 0x428]
mov dword [ebp - 4], 0
call fcn.10004300
test al, al
jne 0x1002022b
push 0x11
push str.__fromnewinstall
lea ecx, [ebp - 0x428]
call fcn.100056f0
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.10092350
add esp, 0xc
mov dword [ebp - 0x438], 1
lea eax, [ebp - 0x434]
mov dword [ebp - 0x434], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x438]
push eax
push str.Setup_Path
push str.SOFTWARESmartWriter
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
or edi, 0xffffffff
test eax, eax
je 0x10020295
lea ebx, [edi + 3]
jmp 0x1002055b
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100202a0
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.100056f0
push str.SmartWriter.exe
lea eax, [ebp - 0x218]
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 0x100202e9
lea ebx, [eax + 2]
jmp 0x1002055b
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10092350
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push dword [0x1015ce04]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.10004f30
mov ecx, eax
test ecx, ecx
je 0x100205f8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x430], eax
mov byte [ebp - 4], 2
call fcn.10004f30
mov ecx, eax
test ecx, ecx
je 0x10020602
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x424]
call fcn.10004300
test al, al
jne 0x100203a2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10020380
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x424]
call fcn.100056f0
lea eax, [ebp - 0x430]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.100140d0
mov edx, dword [ebp - 0x424]
add esp, 8
mov byte [ebp - 4], 2
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100203dd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.10004f30
mov ecx, eax
test ecx, ecx
je 0x1002060c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x42c], eax
mov byte [ebp - 4], 5
call fcn.10004f30
mov ecx, eax
test ecx, ecx
je 0x10020616
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x424]
call fcn.10004300
test al, al
jne 0x10020462
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10020440
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x424]
call fcn.100056f0
lea eax, [ebp - 0x42c]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.100140d0
mov edx, dword [ebp - 0x424]
add esp, 8
mov byte [ebp - 4], 5
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002049d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x42c]
cmp dword [esi - 0xc], 0
jne 0x100204d3
mov ebx, 2
add esi, 0xfffffff0
mov byte [ebp - 4], bl
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100204c8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x430]
add edx, 0xfffffff0
jmp 0x10020543
mov edi, dword [ebp - 0x430]
push edi
push esi
call fcn.1000cd20
add esp, 8
lea ecx, [ebp - 0x428]
test eax, eax
jns 0x100204fe
push 0
push 0x1011a620
call fcn.100056f0
or ebx, 0xffffffff
jmp 0x10020521
jne 0x10020510
push 0
push 0x1011a620
call fcn.100056f0
xor ebx, ebx
jmp 0x10020521
push 0x10
push str.__fromupinstall
mov ebx, 1
call fcn.100056f0
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1002053d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov eax, edi
mov byte [ebp - 4], 1
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002055b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x428]
cmp dword [esi - 4], 1
jle 0x1002057b
push dword [esi - 0xc]
lea ecx, [ebp - 0x428]
call fcn.10004e80
mov esi, dword [ebp - 0x428]
call fcn.1001ad60
add eax, 0x40
mov dword [ebp - 0x42c], eax
test esi, esi
jne 0x10020591
xor ecx, ecx
jmp 0x100205ab
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10020596
mov eax, dword [ebp - 0x42c]
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, eax
call fcn.100056f0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x100205d0
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.10063718
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100042e0
push 0x80004005
call fcn.100042e0
push 0x80004005
call fcn.100042e0
push 0x80004005
call fcn.100042e0
push 0x80004005
call fcn.100042e0
int3