Function at 0x417a70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x48cdb0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4ada68]
xor eax, ebp
mov dword [ebp + 0x208], 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, ecx
xor ebx, ebx
push 0x49a277
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call fcn.00403280
push 0x207
lea eax, [ebp + 1]
push ebx
mov dword [ebp - 4], ebx
push eax
mov byte [ebp], bl
call fcn.00456ba0
add esp, 0xc
push 0x16
push str.SOFTWAREClassesCLSID
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], 0x208
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 1
call fcn.00403170
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x417b25
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0x18], ebx
je 0x417b38
cmp dword [ebp + 0x214], 0x40
mov esi, 0x20119
je 0x417b3d
mov esi, 0x20019
call fcn.00436fa8
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x417b57
push 0x80004005
call fcn.00405de0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
push edi
lea ecx, [ebp - 0x18]
push str._sInprocServer32
push ecx
mov byte [ebp - 4], 2
call fcn.0040b660
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.00402c40
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x417baa
push ebx
lea ecx, [ebp - 0x14]
call fcn.004030c0
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push eax
push esi
push ebx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x417bd4
push 0x4a512c
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x28], eax
call fcn.00456eab
lea edx, [ebp - 0x24]
push edx
mov edx, dword [ebp - 0x20]
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x38]
push ecx
push ebx
push 0x49a277
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, ebx
je 0x417c0a
push 0x4a512c
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x34], esi
call fcn.00456eab
lea eax, [ebp]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x417c10
sub eax, edx
cmp eax, 3
jb 0x417c57
cmp dword [ebp - 0x24], 1
jb 0x417c57
lea ecx, [ebp]
push ecx
call fcn.00420720
mov ecx, 2
add esp, 4
cmp eax, ecx
je 0x417c4d
push 0x4a512c
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x2c], ecx
call fcn.00456eab
lea ecx, [ebp - 0x18]
call fcn.00405e20
jmp 0x417c7b
mov eax, 0xd
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x30], eax
push 0x4a512c
lea eax, [ebp - 0x30]
push eax
call fcn.00456eab
mov eax, 0x417c76
ret
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x417c89
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x20], ebx
call fcn.00405e20
xor eax, eax
cmp esi, ebx
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0044fdb2
add ebp, 0x20c
mov esp, ebp
pop ebp
ret 4