Function at 0x41cc50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a457
mov eax, dword fs:[0]
push eax
sub esp, 0x454
mov eax, dword [0x4c0074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44c], 0x4a4f94
mov dword [ebp - 0x448], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44c]
mov eax, dword [ebp - 0x44c]
call dword [eax + 4]
lea eax, [ebp - 0x448]
push eax
push 0x20119
push 0
push 0x4a5ec8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41cf19
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x454], eax
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x450]
mov dword [ebp - 0x458], 4
push eax
push 0
push 0
push str.CurrentMajorVersionNumber
push dword [ebp - 0x448]
call esi
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x454]
push eax
push 0
push 0
push str.CurrentMinorVersionNumber
push dword [ebp - 0x448]
call esi
cmp dword [ebp - 0x450], 0
jne 0x41cd8b
lea eax, [ebp - 0x444]
mov dword [ebp - 0x444], 0x20
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push str.CurrentVersion
push dword [ebp - 0x448]
call esi
mov dx, word [ebp - 0x30]
lea eax, [ebp - 0x30]
xor ecx, ecx
test dx, dx
je 0x41cd8b
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x41cd63
cmp ecx, 3
jne 0x41cd8b
movzx eax, dx
sub eax, 0x30
mov dword [ebp - 0x450], eax
movzx eax, word [ebp - 0x2c]
sub eax, 0x30
mov dword [ebp - 0x454], eax
mov eax, dword [ebp - 0x450]
mov dword [0x4c20a0], eax
mov eax, dword [ebp - 0x454]
mov dword [0x4c20a4], eax
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x440]
mov dword [ebp - 0x45c], 0x208
push eax
push 0
push 0
push str.CurrentBuildNumber
push dword [ebp - 0x448]
call esi
test eax, eax
jne 0x41cdf2
push ecx
lea edx, [ebp - 0x444]
mov dword [ebp - 0x444], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.0041e0f0
add esp, 4
mov dword [0x4c20a8], eax
lea eax, [ebp - 0x460]
mov dword [ebp - 0x460], 0x208
push eax
lea eax, [ebp - 0x238]
push eax
push 0
push 0
push str.CSDVersion
push dword [ebp - 0x448]
call esi
test eax, eax
jne 0x41ce7a
mov si, word [ebp - 0x238]
mov eax, 0x4c20b0
test si, si
je 0x41ce4f
lea edx, [ebp - 0x238]
movzx ecx, si
sub edx, eax
nop dword [eax + eax]
mov word [eax], cx
add eax, 2
movzx ecx, word [edx + eax]
test cx, cx
jne 0x41ce40
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x238]
test si, si
je 0x41ce6a
nop
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x41ce60
movzx eax, word [ebp + ecx*2 - 0x23a]
sub eax, 0x30
mov dword [0x4c20ac], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4c2090]
cmp eax, dword [ecx + 4]
jle 0x41ced6
push 0x4c2090
call fcn.0046cacc
add esp, 4
cmp dword [0x4c2090], 0xffffffff
jne 0x41ced6
mov byte [ebp - 4], 1
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c2094], eax
mov byte [ebp - 4], 0
push 0x4c2090
call fcn.0046ca82
add esp, 4
cmp dword [0x4c2094], 0
je 0x41cf0d
lea eax, [ebp - 0x444]
mov dword [ebp - 0x444], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x4c2094]
test eax, eax
je 0x41cf0d
cmp dword [ebp - 0x444], 1
sete al
jmp 0x41cf0f
xor al, al
mov byte [0x4c21b5], al
call fcn.0041cf60
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x448]
mov dword [ebp - 0x44c], 0x4a4f94
test eax, eax
je 0x41cf45
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x448], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046c8db
mov esp, ebp
pop ebp
ret