Function at 0x1004b370
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 0x1016e177
mov eax, dword fs:[0]
push eax
sub esp, 0x394
mov eax, dword [0x101d7c7c]
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], 0x1018ba5c
movups xmmword [ebp - 0x39c], xmm0
mov dword [ebp - 0x38c], 0
mov dword [ebp - 0x388], 0
mov edi, dword [0x101deb18]
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 [0x101deb60]
mov ebx, eax
push 4
mov ecx, dword [esi + 8]
inc ecx
push ecx
push dword [esi]
call fcn.1013da1a
add esp, 0xc
test eax, eax
je 0x1004b43f
mov dword [esi], eax
mov eax, dword [esi + 8]
push 4
inc eax
push eax
push dword [esi + 4]
call fcn.1013da1a
add esp, 0xc
test eax, eax
je 0x1004b43f
mov ecx, dword [esi + 8]
mov dword [esi + 4], eax
lea edx, [ecx*4]
mov ecx, dword [esi]
add ecx, edx
je 0x1004b430
mov dword [ecx], ebx
mov eax, dword [esi + 4]
add eax, edx
je 0x1004b43c
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.1004db80
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.100349e0
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.10030b90
push dword [ebp - 0x364]
lea eax, [ebp - 0x33c]
push eax
push 0x101d7430
push 0x101d60d4
push 0x101df7b0
call fcn.10025060
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.10025600
test eax, eax
jne 0x1004b4dd
xor edi, edi
jmp 0x1004b850
call fcn.10044c90
mov ecx, eax
call fcn.10040070
cmp dword [eax], 0
jne 0x1004b537
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.10044c90
mov ecx, eax
call fcn.10040070
mov edx, str.Create_Main_Wnd_and_show
mov ecx, str.Silent_mode
cmp dword [eax], 0
cmove ecx, edx
push ecx
call fcn.1004d370
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10112750
lea eax, [ebp - 0x230]
mov dword [ebp - 0x368], 1
push 1
push eax
mov dword [ebp - 0x360], 0x208
call fcn.10038cd0
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 0x1004b5ef
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [0x101d7400]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [0x101d7400], ecx
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x1004b62f
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1004b625
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004b8bd
push edx
push ecx
call fcn.100acb1e
add esp, 8
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, 1
xor esi, esi
nop dword [eax]
test ebx, ebx
je 0x1004b670
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x384]
push eax
call edi
test eax, eax
jne 0x1004b670
mov eax, dword [ebp - 0x3a0]
lea ecx, [ebp - 0x3a0]
push esi
call dword [eax + 4]
inc esi
test eax, eax
jne 0x1004b644
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 0x1004b640
test eax, eax
je 0x1004b706
lea eax, [ebp - 0x384]
push eax
mov eax, dword [ebp - 0x3a0]
lea ecx, [ebp - 0x3a0]
call dword [eax]
test eax, eax
jne 0x1004b6bf
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 0x1004b6da
je 0x1004b6f6
cmp eax, 0xf
je 0x1004b6f6
cmp eax, 0xa0
jmp 0x1004b6df
cmp eax, 0x200
je 0x1004b6f6
mov ecx, 1
xor eax, eax
test ecx, ecx
mov ebx, ecx
cmove eax, esi
mov esi, eax
jmp 0x1004b640
xor ecx, ecx
xor eax, eax
test ecx, ecx
cmove eax, esi
mov esi, eax
jmp 0x1004b640
mov edi, dword [ebp - 0x37c]
lea eax, [ebp - 0x230]
push 1
push eax
call fcn.10038cd0
mov esi, eax
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x1004b727
mov esi, dword [esi]
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x1004b767
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1004b75d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004b8c2
push edx
push ecx
call fcn.100acb1e
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp dword [0x101d7400], eax
je 0x1004b7a6
push 2
push 0x1018a154
push 1
push str.newuser
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
call fcn.1000cdc0
mov ecx, eax
test ecx, ecx
je 0x1004b8c7
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.1000b130
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.100349e0
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.10030b90
mov ecx, 0x101deb2c
call fcn.1004b240
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1004b850
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x35c]
call fcn.1004dd40
mov eax, dword [ebp - 0x390]
test eax, eax
je 0x1004b878
push eax
call fcn.1012fd0c
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 0x1004b89f
push ecx
call fcn.1012fd0c
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.100acb08
mov esp, ebp
pop ebp
ret
call fcn.1012fb57
call fcn.1012fb57
push 0x80004005
call fcn.1000ae00
int3