Function at 0x409e30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x420681
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
mov eax, dword [0x427550]
push ebx
push esi
xor eax, ebp
push edi
mov dword [esp + 0x13c], eax
lea eax, [esp + 0x24]
push eax
push 0x20019
push 0
push str.SOFTWARERisingRepire
push reloc.OLEAUT32.dll_SysReAllocString
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a063
mov byte [esp + 0x30], al
mov ecx, 0x40
lea edi, [esp + 0x31]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x34]
push edx
stosw word es:[edi], ax
push 0
push 0
stosb byte es:[edi], al
mov eax, dword [esp + 0x34]
push str.WaitRebootTime
push eax
mov dword [esp + 0x40], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40a06a
lea esi, [ebx + 0x1a4]
push 0x10
push str._szWaitRootTime
mov ecx, esi
mov dword [esp + 0x34], esi
call fcn.00405070
lea eax, [esp + 0x30]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x409ee7
sub eax, ecx
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call fcn.00405070
lea edx, [esp + 0x30]
push edx
call fcn.00413c56
mov esi, eax
lea eax, [esp + 0x39]
push eax
call fcn.00413c56
lea ecx, [esp + 0x40]
push ecx
mov edi, eax
call fcn.00413c56
add esp, 0xc
push 0xffffffffffffffff
push 0
push 0
push 0
push eax
push edi
push esi
lea ecx, [esp + 0x30]
call fcn.00405ac0
push 0
call fcn.00413965
add esp, 4
mov dword [esp + 0x20], edx
push str._Y__m__d
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], eax
call fcn.00409da0
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push 0
sub eax, esi
push 0x15180
sbb ecx, edx
push ecx
push eax
mov dword [esp + 0x15c], 0
call fcn.004135c0
mov esi, eax
mov eax, dword [0x4283f4]
mov ecx, 0x4283f4
mov edi, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
push edi
push esi
lea ecx, [esp + 0x1c]
push str._nSpanDay_d
push ecx
mov byte [esp + 0x15c], 1
call fcn.00407070
mov ebx, dword [esp + 0x24]
mov eax, ebx
add esp, 0x10
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x409fc5
sub eax, ecx
mov ecx, dword [esp + 0x2c]
push eax
push ebx
call fcn.00405070
add ebx, 0xfffffff0
or esi, edi
mov byte [esp + 0x14c], 0
jne 0x40a023
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x409fff
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x14c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40a0e1
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a03a
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x14c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a063
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x40a0f0
mov eax, dword [0x4283f4]
mov ecx, 0x4283f4
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x14c], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x14]
push str.QueryValu_WaitRootTime_failed_Err_d
push ecx
call fcn.00407070
mov esi, dword [esp + 0x1c]
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
jmp 0x40a0b0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a0b0
sub eax, edx
push eax
push esi
lea ecx, [ebx + 0x1a4]
call fcn.00405070
lea eax, [esi - 0x10]
mov dword [esp + 0x14c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a0eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x144]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413041
mov esp, ebp
pop ebp
ret