Function at 0x417a70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56eb5c
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x5d7f50]
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 0x5ad324
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x234], ebx
call fcn.00402770
push 0x207
lea ecx, [ebp - 0x223]
push ebx
mov dword [ebp - 4], ebx
push ecx
mov byte [ebp - 0x224], bl
call fcn.00543bb0
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 - 0x228], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x417b2f
lea edx, [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
lea ecx, [ebp - 0x22c]
cmp dword [ebp - 0x228], ebx
je 0x417b46
push 0x22
push str.SOFTWAREWow6432NodeClassesCLSID
jmp 0x417b4d
push 0x16
push str.SOFTWAREClassesCLSID
call fcn.00402a20
call fcn.0044b779
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x417b6c
push 0x80004005
call fcn.00402bc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x238], eax
push edi
lea ecx, [ebp - 0x238]
push str._sInprocServer32
push ecx
mov byte [ebp - 4], 2
call fcn.004078c0
mov edi, dword [ebp - 0x238]
mov eax, dword [edi - 0xc]
add esp, 0xc
push eax
push edi
lea ecx, [ebp - 0x22c]
call fcn.004078f0
mov edx, dword [ebp - 0x22c]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x417bd4
push ebx
lea ecx, [ebp - 0x22c]
call fcn.00402950
mov edx, dword [ebp - 0x22c]
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 0x417c0e
push 0x5c9e00
lea ecx, [ebp - 0x244]
push ecx
mov dword [ebp - 0x244], eax
call fcn.00543f24
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 0x5ad324
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x234], eax
cmp eax, ebx
je 0x417c57
mov dword [ebp - 0x250], eax
push 0x5c9e00
lea eax, [ebp - 0x250]
push eax
call fcn.00543f24
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.0042cf20
test eax, eax
je 0x417d10
mov ebx, dword [ebp - 0x248]
test ebx, ebx
je 0x417cfd
lea esi, [ebp - 0x228]
lea ecx, [ebp - 0x240]
call fcn.00417a50
mov ecx, esi
push ecx
mov byte [ebp - 4], 4
call fcn.00417db0
mov esi, dword [ebp - 0x228]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x417ccf
push 0
lea ecx, [ebp - 0x228]
call fcn.00402950
mov esi, dword [ebp - 0x228]
mov ecx, esi
mov edx, ebx
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x417cd3
lea eax, [esi - 0x10]
mov byte [ebp - 4], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417cfd
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.0043cd76
add esp, 4
xor eax, eax
jmp 0x417d16
mov eax, dword [ebp - 0x240]
push eax
call fcn.0043cd76
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 0x417d3f
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 0x417d50
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x22c]
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 0x417d83
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.0053c99c
mov esp, ebp
pop ebp
ret 4