Function at 0x1002a050
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x768
mov eax, dword [0x10048024]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x750], ecx
call sym.Comn.dll_GetObjectSys
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x1c]
call eax
test eax, eax
je 0x1002a3b8
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x218]
push ecx
push 0
call fcn.10026050
add esp, 8
mov dword [ebp - 0xc], eax
mov word [ebp - 8], 0x2a
mov dword [ebp - 0x21c], 0
jmp 0x1002a0c2
mov edx, dword [ebp - 0x21c]
add edx, 1
mov dword [ebp - 0x21c], edx
cmp dword [ebp - 0x21c], 2
jge 0x1002a3ac
mov dword [ebp - 0x220], 0
jmp 0x1002a0ea
mov eax, dword [ebp - 0x220]
add eax, 1
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0x100
jge 0x1002a3a0
cmp dword [ebp - 0xc], 0
je 0x1002a12d
cmp dword [ebp - 0x218], 0
jne 0x1002a12d
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x220]
push edx
call fcn.10029ee0
add esp, 8
test eax, eax
je 0x1002a12d
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x214]
je 0x1002a12d
jmp 0x1002a0db
call sym.Comn.dll_CreateObjectPat
mov dword [ebp - 0x224], eax
mov ecx, dword [ebp - 0x220]
push ecx
mov edx, dword [ebp - 0x224]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x224]
mov edx, dword [eax + 4]
call edx
test eax, eax
je 0x1002a376
mov word [ebp - 0x628], 0
push 0x3fe
push 0
lea eax, [ebp - 0x626]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x63c]
push ecx
mov edx, dword [ebp - 0x224]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x224]
mov edx, dword [eax + 8]
call edx
test eax, eax
je 0x1002a26f
cmp dword [ebp - 0xc], 0
je 0x1002a1dc
cmp dword [ebp - 0x218], 0
jne 0x1002a1dc
mov eax, dword [ebp - 0x634]
xor ecx, ecx
mov dword [ebp - 0x758], eax
mov dword [ebp - 0x754], ecx
mov edx, dword [ebp - 0x210]
cmp edx, dword [ebp - 0x758]
jne 0x1002a1da
mov eax, dword [ebp - 0x20c]
cmp eax, dword [ebp - 0x754]
je 0x1002a1dc
jmp 0x1002a179
mov ecx, dword [ebp - 0x634]
xor edx, edx
push edx
push ecx
mov eax, dword [ebp - 0x220]
push eax
push 0x200
lea ecx, [ebp - 0x628]
push ecx
mov edx, dword [ebp - 0x750]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x750]
mov edx, dword [eax + 0x2c]
call edx
test eax, eax
je 0x1002a26a
lea eax, [ebp - 0x628]
push eax
call fcn.100269d0
add esp, 4
test eax, eax
je 0x1002a26a
mov ecx, dword [ebp - 0x224]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x224]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [ebp - 0x224]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x224]
mov eax, dword [edx]
call eax
lea ecx, [ebp - 0x628]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
mov eax, 1
jmp 0x1002a509
jmp 0x1002a179
mov dword [ebp - 0x62c], 0
lea ecx, [ebp - 0x62c]
push ecx
lea edx, [ebp - 0x63c]
push edx
mov eax, dword [ebp - 0x224]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x224]
mov eax, dword [edx + 0xc]
call eax
test eax, eax
je 0x1002a376
cmp dword [ebp - 0xc], 0
je 0x1002a2e3
cmp dword [ebp - 0x218], 0
jne 0x1002a2e3
mov ecx, dword [ebp - 0x634]
xor edx, edx
mov dword [ebp - 0x760], ecx
mov dword [ebp - 0x75c], edx
mov eax, dword [ebp - 0x210]
cmp eax, dword [ebp - 0x760]
jne 0x1002a2e1
mov ecx, dword [ebp - 0x20c]
cmp ecx, dword [ebp - 0x75c]
je 0x1002a2e3
jmp 0x1002a279
mov edx, dword [ebp - 0x62c]
xor eax, eax
push eax
push edx
mov ecx, dword [ebp - 0x220]
push ecx
push 0x200
lea edx, [ebp - 0x628]
push edx
mov eax, dword [ebp - 0x750]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x750]
mov eax, dword [edx + 0x2c]
call eax
test eax, eax
je 0x1002a371
lea ecx, [ebp - 0x628]
push ecx
call fcn.100269d0
add esp, 4
test eax, eax
je 0x1002a371
mov edx, dword [ebp - 0x224]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x224]
mov edx, dword [eax + 0x10]
call edx
mov eax, dword [ebp - 0x224]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x224]
mov eax, dword [edx]
call eax
lea ecx, [ebp - 0x628]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
mov eax, 1
jmp 0x1002a509
jmp 0x1002a279
mov ecx, dword [ebp - 0x224]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x224]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [ebp - 0x224]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x224]
mov eax, dword [edx]
call eax
jmp 0x1002a0db
mov dword [ebp - 0xc], 0
jmp 0x1002a0b3
xor eax, eax
jmp 0x1002a509
mov dword [ebp - 0x648], 0
lea ecx, [ebp - 0x648]
push ecx
push str.SystemSetup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [ebp - 0x640], eax
cmp dword [ebp - 0x640], 0
je 0x1002a429
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x764], eax
push 0x26e
push 0x1003d2b8
call fcn.10026ad0
add esp, 8
push eax
push str._s:_Failed_to_RegOpenKey.
mov edx, dword [ebp - 0x764]
push edx
mov eax, dword [ebp - 0x764]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
call edx
add esp, 0xc
xor eax, eax
jmp 0x1002a509
mov word [ebp - 0x748], 0
push 0xfe
push 0
lea eax, [ebp - 0x746]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x644], 0x80
mov dword [ebp - 0x74c], 0
lea ecx, [ebp - 0x644]
push ecx
lea edx, [ebp - 0x748]
push edx
lea eax, [ebp - 0x74c]
push eax
push 0
push 0x1003d2e0
mov ecx, dword [ebp - 0x648]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x640], eax
cmp dword [ebp - 0x640], 0
je 0x1002a4df
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x768], eax
push 0x279
push 0x1003d300
call fcn.10026ad0
add esp, 8
push eax
push str._s:_Failed_to_RegQueryValueEx.
mov edx, dword [ebp - 0x768]
push edx
mov eax, dword [ebp - 0x768]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
call edx
add esp, 0xc
mov eax, dword [ebp - 0x648]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1002a509
mov ecx, dword [ebp - 0x648]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x748]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
mov eax, 1
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1000f672
mov esp, ebp
pop ebp
ret 8