Function at 0x4977e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e16b
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x5c5244]
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 edi, 1
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x230], 0
lea eax, [ebp - 0x230]
push eax
push 0x20219
push 0
push str.SOFTWARELudashi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x497aeb
mov dword [ebp - 0x238], eax
mov esi, dword [ebp - 0x230]
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x238], 0x200
push 0x200
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.004f39e0
add esp, 0xc
mov dword [ebp - 0x218], 0x200
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x220]
push eax
push 0
push str.InstallDate
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x497acd
mov eax, dword [ebp - 0x220]
cmp eax, edi
je 0x4978ea
cmp eax, 2
jne 0x497acd
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x49790e
test al, 1
jne 0x497acd
shr eax, 1
cmp word [ebp + eax*2 - 0x216], 0
je 0x497917
jmp 0x497acd
xor eax, eax
mov word [ebp - 0x214], ax
mov byte [ebp - 4], 1
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x21c], 0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x224]
push eax
push str._04d__02d__02d__02d:_02d:_02d
lea eax, [ebp - 0x214]
push eax
call fcn.00437f30
add esp, 0x20
cmp eax, 6
jne 0x497aab
mov ecx, 0x76c
mov eax, dword [ebp - 0x224]
cmp eax, ecx
cmovl eax, ecx
mov dword [ebp - 0x224], eax
mov edx, dword [ebp - 0x228]
cmp edx, 1
jl 0x4979c4
cmp edx, 0xc
jle 0x4979cf
mov edx, 1
mov dword [ebp - 0x228], edx
mov eax, dword [ebp - 0x22c]
cmp eax, 1
jl 0x4979df
cmp eax, 0x1f
jle 0x4979ea
mov eax, 1
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x220]
test ecx, ecx
js 0x4979f9
cmp ecx, 0x17
jle 0x497a01
xor ecx, ecx
mov dword [ebp - 0x220], ecx
mov ebx, dword [ebp - 0x218]
test ebx, ebx
js 0x497a10
cmp ebx, 0x3b
jle 0x497a18
xor ebx, ebx
mov dword [ebp - 0x218], ebx
cmp dword [ebp - 0x21c], 0
jl 0x497a2a
cmp dword [ebp - 0x21c], 0x3b
jle 0x497a34
mov dword [ebp - 0x21c], 0
push 0xffffffffffffffff
push dword [ebp - 0x21c]
push ebx
push ecx
push eax
push edx
push dword [ebp - 0x224]
lea ecx, [ebp - 0x248]
call fcn.00442e40
push 0
call fcn.00522deb
add esp, 4
sub eax, dword [ebp - 0x248]
sbb edx, dword [ebp - 0x244]
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], edx
push 0
push 0
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0x248]
call fcn.00442ef0
push dword [ebp - 0x244]
push dword [ebp - 0x248]
lea ecx, [ebp - 0x250]
call fcn.004438d0
xor ecx, ecx
test al, al
cmovne edi, ecx
mov dword [ebp - 0x240], edi
mov dword [ebp - 4], 0
jmp 0x497acd
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x497af2
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x23c], 0
jmp 0x497af2
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x238], 0
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 - 0x14]
xor ecx, ebp
call fcn.004da3bd
mov esp, ebp
pop ebp
ret