Function at 0x418c30
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5672b7
mov eax, dword fs:[0]
push eax
sub esp, 0x89c
mov eax, dword [0x5d51c0]
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
mov edi, ecx
mov dword [ebp - 0x898], edi
call fcn.0041e980
cmp al, 1
jne 0x419044
xor ebx, ebx
mov dword [ebp - 0x888], 0
mov dword [ebp - 0x894], ebx
mov dword [ebp - 0x890], 0x104
call fcn.004206b9
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x418cab
push 0x80004005
call fcn.00405730
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x884], esi
mov dword [ebp - 4], 0
add edi, 0x240
mov dword [ebp - 0x89c], edi
push dword [ebp - 0x89c]
mov edx, dword [edi + 4]
push ecx
mov ecx, dword [edi]
call fcn.00419ec0
mov eax, dword [edi]
mov dword [edi + 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x880], 0x104
mov dword [ebp - 0x88c], 1
call fcn.0054cbf0
add esp, 0x14
lea eax, [ebp - 0x87c]
push eax
push 0x20019
push 0
push str.SOFTWAREHNCSharedExecuteOption96
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x418dea
lea eax, [ebp - 0x880]
push eax
push 0
push 0
push 0
push str.LightSizeProductName
push dword [ebp - 0x87c]
call edi
test eax, eax
jne 0x418dea
lea eax, [ebp - 0x880]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x88c]
push eax
push 0
push str.LightSizeProductName
push dword [ebp - 0x87c]
call edi
mov eax, dword [ebp - 0x898]
lea ecx, [ebp - 0x884]
add eax, 0x260
push eax
call fcn.00409360
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
jmp 0x418db0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418db0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x884]
call fcn.00408fb0
push 0xe
push str._Language_Pack
lea ecx, [ebp - 0x884]
call fcn.00408fb0
mov esi, dword [ebp - 0x884]
push dword [ebp - 0x87c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x888]
push eax
push 0x20019
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
or edi, 0xffffffff
test eax, eax
jne 0x41901a
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x890]
push eax
lea eax, [ebp - 0x420]
push eax
push 0
push dword [ebp - 0x888]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x41901a
or esi, edi
test eax, eax
jne 0x418fd8
mov dword [ebp - 0x880], eax
lea eax, [ebp - 0x880]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x888]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x418fcc
push 0x104
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.0054cbf0
add esp, 0xc
mov dword [ebp - 0x894], 0x208
lea eax, [ebp - 0x894]
push eax
lea eax, [ebp - 0x628]
push eax
push 0
push 0
push str.LangPackCheckFile
push dword [ebp - 0x880]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x418fcc
lea eax, [ebp - 0x878]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x418fc5
push 0x5adca8
lea ecx, [ebp - 0x87c]
call fcn.004058d0
push ecx
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 1
mov ecx, esp
push eax
call fcn.004058d0
mov ecx, dword [ebp - 0x898]
lea eax, [ebp - 0x88c]
push eax
call fcn.00417800
push eax
lea ecx, [ebp - 0x87c]
mov byte [ebp - 4], 2
call fcn.00409360
mov byte [ebp - 4], 1
mov ecx, esi
mov edx, dword [ebp - 0x88c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418f50
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x8a4]
call fcn.004058d0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x87c]
add eax, 0xfffffff0
push eax
call fcn.004092f0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x8a0], eax
lea eax, [ebp - 0x8a4]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x89c]
push eax
call fcn.00419c40
lea ecx, [ebp - 0x8a4]
call fcn.00418be0
mov byte [ebp - 4], 0
mov ecx, esi
mov edx, dword [ebp - 0x87c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418fc5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x880]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x890]
mov dword [ebp - 0x890], 0x104
push eax
lea eax, [ebp - 0x420]
inc ebx
push eax
push ebx
push dword [ebp - 0x888]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x418e48
mov esi, dword [ebp - 0x884]
or edi, 0xffffffff
push dword [ebp - 0x888]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x419044
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.0054a22c
mov esp, ebp
pop ebp
ret