Function at 0x42d430
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x535c7b
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x594624]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
test eax, eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0
push eax
push 0x20219
mov edx, str.SOFTWARELudashi
mov ecx, str.SOFTWARELdsLite
push 0
cmove ecx, edx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42d6e5
mov esi, dword [ebp - 0x230]
push 0x200
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x23c], esi
push eax
mov dword [ebp - 0x238], 0x200
call fcn.004daa30
add esp, 0xc
mov dword [ebp - 0x218], 0x200
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push str.InstallDate
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42d6da
mov eax, dword [ebp - 0x21c]
cmp eax, 1
je 0x42d538
cmp eax, 2
jne 0x42d6da
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x42d55c
test al, 1
jne 0x42d6da
shr eax, 1
cmp word [ebp + eax*2 - 0x216], 0
je 0x42d565
jmp 0x42d6da
xor eax, eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], 0
push eax
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x224], 0
push eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0
push eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x22c], 0
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x21c], 0
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x218], 0
push 0x54ea20
push eax
call fcn.0040bb30
add esp, 0x20
cmp eax, 6
jne 0x42d6da
mov edx, dword [ebp - 0x220]
mov eax, 0x76c
mov ecx, dword [ebp - 0x224]
cmp edx, eax
cmovl edx, eax
mov dword [ebp - 0x220], edx
cmp ecx, 1
jl 0x42d612
cmp ecx, 0xc
jle 0x42d61d
mov ecx, 1
mov dword [ebp - 0x224], ecx
mov eax, dword [ebp - 0x228]
cmp eax, 1
jl 0x42d62d
cmp eax, 0x1f
jle 0x42d638
mov eax, 1
mov dword [ebp - 0x228], eax
mov edi, dword [ebp - 0x22c]
test edi, edi
js 0x42d647
cmp edi, 0x17
jle 0x42d651
mov dword [ebp - 0x22c], 0
mov edi, dword [ebp - 0x21c]
test edi, edi
js 0x42d660
cmp edi, 0x3b
jle 0x42d66a
mov dword [ebp - 0x21c], 0
mov edi, dword [ebp - 0x218]
test edi, edi
js 0x42d679
cmp edi, 0x3b
jle 0x42d683
mov dword [ebp - 0x218], 0
push 0xffffffffffffffff
push 0
push 0
push 0
push eax
push ecx
push edx
lea ecx, [ebp - 0x244]
call fcn.0042bb00
push 0
call fcn.0050b41e
add esp, 4
sub eax, dword [ebp - 0x244]
sbb edx, dword [ebp - 0x240]
push 0
push 0x15180
push edx
push eax
call fcn.00493fe0
mov edi, eax
test esi, esi
je 0x42d6ca
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x42d6e7
test esi, esi
je 0x42d6e5
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00493dce
mov esp, ebp
pop ebp
ret