Function at 0x1004b170
Capabilities:
Check for time delay via gettickcount
Check if file exists
Hide graphical window
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013dab7
mov eax, dword fs:[0]
push eax
sub esp, 0x394
mov eax, dword [0x1019bc84]
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
xorps xmm0, xmm0
mov dword [ebp - 0x3a0], 0x101589a0
movups xmmword [ebp - 0x39c], xmm0
mov dword [ebp - 0x38c], 0
mov dword [ebp - 0x388], 0
mov edi, dword [0x101a1068]
add edi, 0x10
mov dword [ebp - 4], 0
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x101a10b0]
mov ebx, eax
push 4
mov ecx, dword [esi + 8]
inc ecx
push ecx
push dword [esi]
call fcn.1010dc7a
add esp, 0xc
test eax, eax
je 0x1004b23f
mov dword [esi], eax
mov eax, dword [esi + 8]
push 4
inc eax
push eax
push dword [esi + 4]
call fcn.1010dc7a
add esp, 0xc
test eax, eax
je 0x1004b23f
mov ecx, dword [esi + 8]
mov dword [esi + 4], eax
lea edx, [ecx*4]
mov ecx, dword [esi]
add ecx, edx
je 0x1004b230
mov dword [ecx], ebx
mov eax, dword [esi + 4]
add eax, edx
je 0x1004b23c
lea ecx, [ebp - 0x3a0]
mov dword [eax], ecx
inc dword [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x35c]
call fcn.1004d980
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
sub esp, 0x28
mov dword [ebp - 0x364], eax
mov ecx, esp
mov dword [ebp - 0x368], esp
mov dword [ecx + 0x24], 0
push 0
push 0
push str.start_inst
mov byte [ebp - 4], 2
call fcn.100346a0
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.10030840
push dword [ebp - 0x364]
lea eax, [ebp - 0x33c]
push eax
push 0x1019b430
push 0x1019a0d4
push 0x101a1c38
call fcn.10024d20
add esp, 0x14
movzx eax, ax
lea ecx, [ebp - 0x35c]
push 0
push eax
push 0
push 8
push SysReAllocString
push 0
push 0
push 0
call fcn.100252c0
test eax, eax
jne 0x1004b2dd
xor edi, edi
jmp 0x1004b650
call fcn.10044a80
mov ecx, eax
call fcn.1003fca0
cmp dword [eax], 0
jne 0x1004b337
push dword [ebp + 0xc]
push dword [ebp - 0x358]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x358]
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebp - 0x358]
call esi
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push dword [ebp - 0x358]
call esi
call fcn.10044a80
mov ecx, eax
call fcn.1003fca0
mov edx, str.Create_Main_Wnd_and_show
mov ecx, str.Silent_mode
cmp dword [eax], 0
cmove ecx, edx
push ecx
call fcn.1004d170
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100e3030
lea eax, [ebp - 0x230]
mov dword [ebp - 0x368], 1
push 1
push eax
mov dword [ebp - 0x360], 0x208
call fcn.10038b20
add esp, 0x18
lea ecx, [ebp - 0x360]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push ecx
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x368]
push ecx
push str.Setup_Path
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1004b3ef
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [0x1019b400]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [0x1019b400], ecx
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x1004b42f
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1004b425
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004b6bd
push edx
push ecx
call fcn.1009de6e
add esp, 8
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, 1
xor esi, esi
nop dword [eax]
test ebx, ebx
je 0x1004b470
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x384]
push eax
call edi
test eax, eax
jne 0x1004b470
mov eax, dword [ebp - 0x3a0]
lea ecx, [ebp - 0x3a0]
push esi
call dword [eax + 4]
inc esi
test eax, eax
jne 0x1004b444
xor ebx, ebx
push 0
push 0
push 0
lea eax, [ebp - 0x384]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x1004b440
test eax, eax
je 0x1004b506
lea eax, [ebp - 0x384]
push eax
mov eax, dword [ebp - 0x3a0]
lea ecx, [ebp - 0x3a0]
call dword [eax]
test eax, eax
jne 0x1004b4bf
lea eax, [ebp - 0x384]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x384]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebp - 0x380]
cmp eax, 0x118
ja 0x1004b4da
je 0x1004b4f6
cmp eax, 0xf
je 0x1004b4f6
cmp eax, 0xa0
jmp 0x1004b4df
cmp eax, 0x200
je 0x1004b4f6
mov ecx, 1
xor eax, eax
test ecx, ecx
mov ebx, ecx
cmove eax, esi
mov esi, eax
jmp 0x1004b440
xor ecx, ecx
xor eax, eax
test ecx, ecx
cmove eax, esi
mov esi, eax
jmp 0x1004b440
mov edi, dword [ebp - 0x37c]
lea eax, [ebp - 0x230]
push 1
push eax
call fcn.10038b20
mov esi, eax
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x1004b527
mov esi, dword [esi]
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x1004b567
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1004b55d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004b6c2
push edx
push ecx
call fcn.1009de6e
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp dword [0x1019b400], eax
je 0x1004b5a6
push 2
push 0x101570c4
push 1
push str.newuser
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
call fcn.1000ca70
mov ecx, eax
test ecx, ecx
je 0x1004b6c7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x360], eax
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
sub ecx, dword [ebp - 0x364]
mul ecx
lea eax, [ebp - 0x360]
shr edx, 6
push edx
push str.ex3end:_ld
push eax
call fcn.1000ade0
add esp, 0xc
push 0
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x364], esp
mov dword [eax + 0x24], 0
mov esi, dword [ebp - 0x360]
push 0
push esi
push str.end_inst
mov byte [ebp - 4], 4
call fcn.100346a0
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.10030840
mov ecx, 0x101a107c
call fcn.1004b040
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1004b650
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x35c]
call fcn.1004db40
mov eax, dword [ebp - 0x390]
test eax, eax
je 0x1004b678
push eax
call fcn.100fff68
add esp, 4
mov dword [ebp - 0x390], 0
mov ecx, dword [ebp - 0x39c]
mov dword [ebp - 0x38c], 0
mov dword [ebp - 0x388], 0
test ecx, ecx
je 0x1004b69f
push ecx
call fcn.100fff68
add esp, 4
mov eax, edi
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.1009de58
mov esp, ebp
pop ebp
ret
call fcn.100ffdb3
call fcn.100ffdb3
push 0x80004005
call fcn.1000aab0
int3