Function at 0x449380
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b850
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x602c90]
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 0x4493dd
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.00405370
add eax, 0x10
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], ebx
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00405370
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 0x4494c3
push str.HKEY_LOCAL_MACHINE
push edi
call fcn.00560268
add esp, 8
cmp eax, ebx
je 0x44944e
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jle 0x44944e
mov dword [ebp - 0x18], reloc.OLEAUT32.dll_SysReAllocString
cmp dword [edi - 0xc], ebx
jl 0x4494c3
push str.HKEY_USERS
push edi
call fcn.00560268
add esp, 8
cmp eax, ebx
je 0x449475
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x449475
mov dword [ebp - 0x18], SysReAllocStringLen
cmp dword [edi - 0xc], ebx
jl 0x4494c3
push str.HKEY_CURRENT_CONFIG
push edi
call fcn.00560268
add esp, 8
cmp eax, ebx
je 0x44949c
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x44949c
mov dword [ebp - 0x18], VariantCopyInd
cmp dword [edi - 0xc], ebx
jl 0x4494c3
push str.HKEY_CLASSES_ROOT
push edi
call fcn.00560268
add esp, 8
cmp eax, ebx
je 0x4494c3
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x4494c3
mov dword [ebp - 0x18], SysReAllocStringLen
push 0x5c20fc
push 0x5c44fc
lea ecx, [ebp - 0x14]
call fcn.00404af0
push 0x5c20fc
push 0x5c64e8
lea ecx, [ebp - 0x14]
call fcn.00404af0
push 0x5c232c
push str.HKEY_CURRENT_USER_
lea ecx, [ebp - 0x14]
call fcn.00404af0
push 0x5c232c
push str.HKEY_LOCAL_MACHINE_
lea ecx, [ebp - 0x14]
call fcn.00404af0
push 0x5c232c
push str.HKEY_USERS_
lea ecx, [ebp - 0x14]
call fcn.00404af0
push 0x5c232c
push str.HKEY_CURRENT_CONFIG_
lea ecx, [ebp - 0x14]
call fcn.00404af0
push 0x5c232c
push str.HKEY_CLASSES_ROOT_
lea ecx, [ebp - 0x14]
call fcn.00404af0
mov ebx, dword [ebp - 0x14]
push 0x5c
push ebx
call fcn.00560aaf
add esp, 8
test eax, eax
jne 0x449558
or edi, 0xffffffff
jmp 0x44955e
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.00405020
push edi
xor edi, edi
push edi
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00405020
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 0x4495af
call fcn.004022b0
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.00421ff0
test eax, eax
jne 0x449749
call fcn.0047977b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4495e8
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 0x44960e
call fcn.004022b0
push eax
lea ecx, [ebp - 0x28]
call fcn.00401d80
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 0x4496ec
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x28]
test edx, edx
jns 0x44965c
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 0x449679
push edx
lea ecx, [ebp - 0x24]
call fcn.00402250
mov esi, dword [ebp - 0x24]
push edi
lea edx, [ebp - 0x48]
push edx
lea edi, [ebp - 0x1c]
call fcn.004220a0
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0055ffac
add esp, 8
test eax, eax
js 0x449652
cmp eax, dword [esi - 8]
jg 0x449652
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [esi - 0x10]
push eax
call fcn.00405370
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.00405100
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 0x4496e6
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 0x4496fd
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 0x449723
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 0x449743
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 0x44975d
call fcn.004022b0
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 0x449777
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x449785
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 0x4497a8
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 0x4497cb
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 0x4497eb
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 0x449811
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