Function at 0x416e50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a54bc
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x4d8b40]
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 0x4c10b4
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x234], ebx
call fcn.00402670
push 0x207
lea ecx, [ebp - 0x223]
push ebx
mov dword [ebp - 4], ebx
push ecx
mov byte [ebp - 0x224], bl
call fcn.00465b60
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 0x416f0f
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 0x416f26
push 0x22
push str.SOFTWAREWow6432NodeClassesCLSID
jmp 0x416f2d
push 0x16
push str.SOFTWAREClassesCLSID
call fcn.00402900
call fcn.0044dc0d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x416f4c
push 0x80004005
call fcn.00402ae0
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.00407690
mov edi, dword [ebp - 0x22c]
mov eax, dword [edi - 0xc]
add esp, 0xc
push eax
push edi
lea ecx, [ebp - 0x228]
call fcn.00407720
mov edx, dword [ebp - 0x228]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x416fb4
push ebx
lea ecx, [ebp - 0x228]
call fcn.00402850
mov edx, dword [ebp - 0x228]
lea eax, [ebp - 0x230]
push eax
push 0x20019
push ebx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x234], eax
cmp eax, ebx
je 0x416fee
push 0x4cf13c
lea ecx, [ebp - 0x244]
push ecx
mov dword [ebp - 0x244], eax
call fcn.004679cb
lea edx, [ebp - 0x24c]
push edx
mov edx, dword [ebp - 0x230]
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x254]
push ecx
push ebx
push 0x4c10b4
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x234], eax
cmp eax, ebx
je 0x417037
mov dword [ebp - 0x250], eax
push 0x4cf13c
lea eax, [ebp - 0x250]
push eax
call fcn.004679cb
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.0042dfd0
test eax, eax
je 0x4170d9
mov edi, dword [ebp - 0x248]
test edi, edi
je 0x4170c0
lea esi, [ebp - 0x238]
lea ecx, [ebp - 0x240]
call fcn.00416e30
mov ebx, esi
mov byte [ebp - 4], 4
call fcn.00417180
push 0
mov ecx, esi
call fcn.004028a0
mov ecx, eax
mov edx, edi
nop
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x417090
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x238]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4170c0
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.0043fc36
mov edi, dword [ebp - 0x22c]
add esp, 4
xor eax, eax
jmp 0x4170df
mov eax, dword [ebp - 0x240]
push eax
call fcn.0043fc36
lea eax, [edi - 0x10]
add esp, 4
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417108
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x417119
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 0x41714c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x234]
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.0045f97b
mov esp, ebp
pop ebp
ret 4