Function at 0x43cb80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c5b0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x5ebdb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.IsWow64Process
xor ebx, ebx
push str.kernel32
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x43cbdd
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov esi, dword [ebp - 0x20]
mov eax, dword [edi]
neg esi
sbb esi, esi
sub eax, 0x10
and esi, 0xffffff00
push eax
add esi, 0x200
call fcn.00405320
add eax, 0x10
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], ebx
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00405320
lea edi, [eax + 0x10]
add esp, 8
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], SysReAllocStringLen
cmp dword [edi - 0xc], ebx
jl 0x43ccc3
push str.HKEY_LOCAL_MACHINE
push edi
call fcn.0055125b
add esp, 8
cmp eax, ebx
je 0x43cc4e
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jle 0x43cc4e
mov dword [ebp - 0x18], reloc.OLEAUT32.dll_SysReAllocString
cmp dword [edi - 0xc], ebx
jl 0x43ccc3
push str.HKEY_USERS
push edi
call fcn.0055125b
add esp, 8
cmp eax, ebx
je 0x43cc75
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x43cc75
mov dword [ebp - 0x18], SysReAllocStringLen
cmp dword [edi - 0xc], ebx
jl 0x43ccc3
push str.HKEY_CURRENT_CONFIG
push edi
call fcn.0055125b
add esp, 8
cmp eax, ebx
je 0x43cc9c
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x43cc9c
mov dword [ebp - 0x18], VariantCopyInd
cmp dword [edi - 0xc], ebx
jl 0x43ccc3
push str.HKEY_CLASSES_ROOT
push edi
call fcn.0055125b
add esp, 8
cmp eax, ebx
je 0x43ccc3
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x43ccc3
mov dword [ebp - 0x18], SysReAllocStringLen
push 0x5b097c
push 0x5b4d60
lea ecx, [ebp - 0x14]
call fcn.00404aa0
push 0x5b097c
push 0x5b38c8
lea ecx, [ebp - 0x14]
call fcn.00404aa0
push 0x5b0bc8
push str.HKEY_CURRENT_USER_
lea ecx, [ebp - 0x14]
call fcn.00404aa0
push 0x5b0bc8
push str.HKEY_LOCAL_MACHINE_
lea ecx, [ebp - 0x14]
call fcn.00404aa0
push 0x5b0bc8
push str.HKEY_USERS_
lea ecx, [ebp - 0x14]
call fcn.00404aa0
push 0x5b0bc8
push str.HKEY_CURRENT_CONFIG_
lea ecx, [ebp - 0x14]
call fcn.00404aa0
push 0x5b0bc8
push str.HKEY_CLASSES_ROOT_
lea ecx, [ebp - 0x14]
call fcn.00404aa0
mov ebx, dword [ebp - 0x14]
push 0x5c
push ebx
call fcn.00551821
add esp, 8
test eax, eax
jne 0x43cd58
or edi, 0xffffffff
jmp 0x43cd5e
sub eax, ebx
sar eax, 1
mov edi, eax
mov eax, dword [ebx - 0xc]
sub eax, edi
dec eax
push eax
lea ecx, [edi + 1]
push ecx
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x14]
call fcn.00404fd0
push edi
xor edi, edi
push edi
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00404fd0
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx - 0xc]
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push eax
push ecx
call edi
test eax, eax
jne 0x43cdaf
call fcn.004022c0
mov ecx, dword [ebp - 0x18]
or esi, 0x20019
push esi
push eax
push ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x2c], esi
call fcn.0041cb50
test eax, eax
jne 0x43cf49
call fcn.0046aab1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x43cde8
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx - 0xc]
push eax
push ecx
call edi
test eax, eax
jne 0x43ce0e
call fcn.004022c0
push eax
lea ecx, [ebp - 0x28]
call fcn.00401d90
lea ecx, [ebp - 0x1c]
push ecx
xor edi, edi
push edi
lea edx, [ebp - 0x34]
push edx
mov bl, 6
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x48]
push edi
push eax
push ecx
mov dword [ebp - 0x1c], 0x104
mov dword [ebp - 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x43ceec
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x28]
test edx, edx
jns 0x43ce5c
push 0x80070057
call fcn.00401090
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x43ce79
push edx
lea ecx, [ebp - 0x24]
call fcn.00402260
mov esi, dword [ebp - 0x24]
push edi
lea edx, [ebp - 0x48]
push edx
lea edi, [ebp - 0x1c]
call fcn.0041cc00
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00550f9f
add esp, 8
test eax, eax
js 0x43ce52
cmp eax, dword [esi - 8]
jg 0x43ce52
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [esi - 0x10]
push eax
call fcn.00405320
lea edi, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x34], edi
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x34]
push edx
mov byte [ebp - 4], 7
call fcn.004050b0
lea eax, [edi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43cee6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 0xd], 1
xor edi, edi
mov eax, dword [ebp - 0x48]
cmp eax, edi
je 0x43cefd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x48], edi
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov dword [ebp - 0x44], edi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43cf23
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43cf43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebx - 0xc]
push eax
push ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x43cf5d
call fcn.004022c0
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x3c]
push ecx
push esi
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43cf77
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x43cf85
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43cfa8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43cfcb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43cfeb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43d011
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4