Function at 0x40f970
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54462c
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x5960c0]
xor eax, ebp
mov dword [ebp - 0x18], 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 edi, ecx
xor ebx, ebx
push 0x5722cf
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x234], ebx
call fcn.00401ea0
push 0x207
lea ecx, [ebp - 0x223]
push ebx
mov dword [ebp - 4], ebx
push ecx
mov byte [ebp - 0x224], bl
call fcn.00521f30
add esp, 0xc
push str.IsWow64Process
mov byte [ebp - 4], 1
push str.kernel32
mov dword [ebp - 0x24c], 0x208
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x22c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x40fa2f
lea edx, [ebp - 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
lea ecx, [ebp - 0x228]
cmp dword [ebp - 0x22c], ebx
je 0x40fa46
push 0x22
push str.SOFTWAREWow6432NodeClassesCLSID
jmp 0x40fa4d
push 0x16
push str.SOFTWAREClassesCLSID
call fcn.00402150
push 0x16
push str.SOFTWAREClassesCLSID
lea ecx, [ebp - 0x228]
call fcn.00402150
call fcn.004219a6
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40fa7e
push 0x80004005
call fcn.00402210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x22c], eax
push edi
lea ecx, [ebp - 0x22c]
push str._sInprocServer32
push ecx
mov byte [ebp - 4], 2
call fcn.004055d0
mov ecx, dword [ebp - 0x22c]
mov eax, dword [ecx - 0xc]
add esp, 0xc
push eax
push ecx
lea ecx, [ebp - 0x228]
call fcn.00401b30
mov edx, dword [ebp - 0x228]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40fae6
push ebx
lea ecx, [ebp - 0x228]
call fcn.00402080
mov edx, dword [ebp - 0x228]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x230]
push eax
push 0x20019
push ebx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov dword [ebp - 0x234], eax
cmp eax, ebx
je 0x40fb68
mov edx, dword [ebp - 0x228]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40fb32
push ebx
lea ecx, [ebp - 0x228]
call fcn.00402080
mov edx, dword [ebp - 0x228]
lea ecx, [ebp - 0x230]
push ecx
push 0x20119
push ebx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov dword [ebp - 0x234], eax
cmp eax, ebx
je 0x40fb68
push 0x58a844
lea edx, [ebp - 0x244]
push edx
mov dword [ebp - 0x244], eax
call fcn.005222e2
lea eax, [ebp - 0x24c]
push eax
mov eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x254]
push edx
push ebx
push 0x5722cf
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
mov dword [ebp - 0x234], edi
cmp edi, ebx
je 0x40fbb3
push 0x58a844
lea ecx, [ebp - 0x250]
push ecx
mov dword [ebp - 0x250], edi
call fcn.005222e2
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x23c], ebx
lea ebx, [ebp - 0x224]
lea esi, [ebp - 0x240]
mov byte [ebp - 4], 3
call fcn.00413750
test eax, eax
je 0x40fc6d
mov ebx, dword [ebp - 0x248]
test ebx, ebx
je 0x40fc5a
lea esi, [ebp - 0x238]
lea ecx, [ebp - 0x240]
call fcn.0040a500
mov edx, esi
push edx
mov byte [ebp - 4], 4
call fcn.0040a520
mov esi, dword [ebp - 0x238]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x40fc2b
push 0
lea ecx, [ebp - 0x238]
call fcn.00402080
mov esi, dword [ebp - 0x238]
mov ecx, esi
mov edx, ebx
nop
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x40fc30
lea eax, [esi - 0x10]
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fc5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x240]
push ecx
call fcn.0041aff6
add esp, 4
xor eax, eax
jmp 0x40fc73
mov eax, dword [ebp - 0x240]
push eax
call fcn.0041aff6
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fcb0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40fcb0
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x40fcc1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
mov dword [ebp - 0x230], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fcf4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 - 0x18]
xor ecx, ebp
call fcn.0051ac68
mov esp, ebp
pop ebp
ret 4