Function at 0x4060db
Capabilities:
Accept command line arguments

Disassembly:
push 0x34
mov eax, 0x463a9a
call fcn.0043e9a8
mov dword [ebp - 0x24], ecx
push str.in_WaitOn___...
call fcn.00408586
pop ecx
mov ecx, dword [ebp + 8]
mov esi, str._lastcnt
push esi
call fcn.0041b8b2
xor ebx, ebx
test al, al
je 0x406182
mov ecx, dword [ebp + 8]
push str._nocntwait
call fcn.0041b8b2
test al, al
jne 0x406182
push str.Waiting_till_NPC_changes_OEMRebootCount_
call fcn.00408586
pop ecx
mov ecx, dword [ebp + 8]
push esi
call fcn.0041d286
push eax
call fcn.0043ecc7
pop ecx
mov edi, eax
xor esi, esi
mov ecx, dword [ebp - 0x24]
lea eax, [ebp + 8]
push eax
call fcn.00405aa2
test al, al
je 0x40614e
cmp dword [ebp + 8], edi
jne 0x406173
push dword [ebp + 8]
push str.dwCurrentRebootCnt_is__d__waiting_...
call fcn.00408586
pop ecx
pop ecx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x12c
jl 0x406139
jmp 0x406182
push dword [ebp + 8]
push str.dwCurrentRebootCnt_is_changed_to__d_
call fcn.00408586
pop ecx
pop ecx
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x30]
push eax
call fcn.00405aa2
test al, al
jne 0x40619d
xor eax, eax
inc eax
call fcn.0043ea80
ret 4
cmp dword [ebp - 0x30], 0xa
jbe 0x4061b2
mov ecx, dword [ebp - 0x24]
push ebx
push 0xa
call fcn.004056a5
test al, al
je 0x406192
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call esi
push eax
lea ecx, [ebp - 0x2c]
call fcn.004042a2
mov dword [ebp - 4], ebx
call esi
push eax
lea ecx, [ebp - 0x28]
call fcn.004042a2
push str.waiton
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004042a2
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0040297a
mov eax, dword [eax]
push ebx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040297a
mov ecx, eax
call fcn.004020e2
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040308d
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.004014ff
push ebx
push 0x20
lea ecx, [ebp - 0x10]
call fcn.004020b0
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040308d
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.00402be3
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.004014ff
push ebx
push 0x2f
lea ecx, [ebp - 0x10]
call fcn.004020b0
cmp eax, 0xffffffff
je 0x40628a
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.004029e6
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.00402be3
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.004014ff
push ebx
push 0x2c
lea ecx, [ebp - 0x10]
call fcn.004020b0
mov edi, eax
lea eax, [edi + 1]
push eax
push 0x2c
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x34], eax
call fcn.004020b0
push edi
mov dword [ebp - 0x14], eax
push ebx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.004029e6
mov esi, 0x46d1dc
push esi
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.00402b11
mov ecx, eax
call fcn.00402b6e
push ebx
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.004020b0
push eax
push ebx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.004029e6
push ebx
push 0x5c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.004020b0
inc eax
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040308d
mov eax, dword [ebp - 0x14]
sub eax, edi
dec eax
push eax
push dword [ebp - 0x34]
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 9
call fcn.004029e6
push esi
push esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xa
call fcn.00402b11
mov ecx, eax
call fcn.00402b6e
mov eax, dword [ebp - 0x14]
inc eax
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040308d
push esi
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xb
call fcn.00402b11
mov ecx, eax
call fcn.00402b6e
push str.HKEY_CLASSES_ROOT
lea ecx, [ebp + 8]
call fcn.00401808
mov edi, dword [ebp - 0x38]
test eax, eax
je 0x4064b5
push str.HKCR
lea ecx, [ebp + 8]
call fcn.00401808
test eax, eax
je 0x4064b5
push str.HKEY_CURRENT_CONFIG
lea ecx, [ebp + 8]
call fcn.00401808
test eax, eax
je 0x4064ae
push str.HKCC
lea ecx, [ebp + 8]
call fcn.00401808
test eax, eax
je 0x4064ae
push str.HKEY_CURRENT_USER
lea ecx, [ebp + 8]
call fcn.00401808
test eax, eax
je 0x4064a7
push str.HKCU
lea ecx, [ebp + 8]
call fcn.00401808
test eax, eax
je 0x4064a7
push str.HKEY_LOCAL_MACHINE
lea ecx, [ebp + 8]
call fcn.00401808
test eax, eax
je 0x4064a0
push str.HKLM
lea ecx, [ebp + 8]
call fcn.00401808
test eax, eax
je 0x4064a0
push str.HKEY_USERS
lea ecx, [ebp + 8]
call fcn.00401808
test eax, eax
je 0x406499
push 0x46d0f4
lea ecx, [ebp + 8]
call fcn.00401808
test eax, eax
je 0x406499
push dword [ebp + 8]
push str.Unknown_parent_key:__s_
call fcn.004085ae
pop ecx
pop ecx
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004014ff
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004014ff
lea ecx, [edi - 0x10]
call fcn.004014ff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004014ff
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004014ff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004014ff
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.004014ff
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.004014ff
mov eax, ebx
jmp 0x406195
mov eax, SysStringLen
jmp 0x4064ba
mov eax, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x4064ba
mov eax, SysReAllocString
jmp 0x4064ba
mov eax, VariantClear
jmp 0x4064ba
mov eax, SysReAllocString
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
push 0x20019
push edi
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xc
call fcn.004013c6
test eax, eax
je 0x4064f8
push edi
push dword [ebp + 8]
push str.Cannot_open_specified_key:__s_s_
call fcn.00408586
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.00401351
push 5
pop ebx
jmp 0x40643d
push 0x4872a4
lea ecx, [ebp - 0x14]
call fcn.00401c03
mov eax, 0x100
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x34], eax
call fcn.00402209
lea ecx, [ebp - 0x34]
push ecx
push eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x40]
call fcn.0040143f
test eax, eax
je 0x40654a
push dword [ebp - 0x1c]
push str.Cannot_qurey_specified_string_value:__s_
call fcn.00408586
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004014ff
jmp 0x4064e8
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00401bd9
push dword [ebp - 0x20]
lea ecx, [ebp - 0x14]
call fcn.00401808
test eax, eax
je 0x40657c
push dword [ebp - 0x20]
mov esi, dword [ebp - 0x14]
push esi
push str.sValue:__s___sExpectedValue:__s_
call fcn.00408586
add esp, 0xc
lea ecx, [esi - 0x10]
jmp 0x406543
push str.Condition_matches_
call fcn.00408586
pop ecx
mov ecx, dword [ebp - 0x24]
cmp byte [ecx + 8], bl
je 0x4065b4
push 1
push 2
call fcn.004056a5
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
test al, al
jne 0x4065b9
call fcn.004014ff
lea ecx, [ebp - 0x40]
call fcn.00401351
jmp 0x40643a
push ebx
push 3
jmp 0x406593
call fcn.004014ff
lea ecx, [ebp - 0x40]
call fcn.00401351
jmp 0x40643d