Function at 0x1002c860
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004d7d8
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x10063068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2d4], eax
mov dword [ebp - 0x2ec], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x1fe
mov dword [ebp - 0x304], eax
lea eax, [ebp - 0x22a]
xor edx, edx
push ebx
push eax
mov dword [ebp - 0x300], ebx
mov dword [ebp - 0x2fc], ebx
mov word [ebp - 0x22c], dx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [ebp - 0x2ac], ebx
mov dword [ebp - 0x2c0], 0x200
mov edi, dword [ebp - 0x2d4]
lea ecx, [ebp - 0x30c]
push ecx
mov ecx, dword [ebp - 0x2ac]
push ebx
push ebx
push ebx
lea edx, [ebp - 0x2c0]
push edx
lea eax, [ebp - 0x22c]
push eax
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x1002ce92
xor edx, edx
lea eax, [ebp - 0x22c]
mov word [ebp - 0x248], dx
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], ebx
lea edx, [eax + 2]
jmp 0x1002c940
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1002c940
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x22c]
lea esi, [ebp - 0x248]
call fcn.1000a770
xor esi, esi
mov dword [ebp - 0x2d8], ebx
lea eax, [ebp - 0x2a4]
push eax
push SysReAllocStringLen
push ebx
lea ecx, [ebp - 0x22c]
push ecx
mov byte [ebp - 4], 2
push edi
mov dword [ebp - 0x2a4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x1002cd56
mov esi, dword [ebp - 0x2a4]
push ebx
push ebx
lea edx, [ebp - 0x2e8]
push edx
lea eax, [ebp - 0x2f8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
mov dword [ebp - 0x2e0], esi
mov dword [ebp - 0x2dc], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
cmp edi, ebx
jne 0x1002ce3d
mov ecx, dword [ebp - 0x2e8]
xor edi, edi
xor eax, eax
mov dword [ebp - 0x2a8], ecx
mov dword [ebp - 0x2bc], edi
mov dword [ebp - 0x2b8], eax
mov dword [ebp - 0x2b4], ebx
cmp ecx, ebx
jbe 0x1002ca36
push ecx
lea esi, [ebp - 0x2bc]
call fcn.100270f0
mov edi, dword [ebp - 0x2bc]
mov ecx, dword [ebp - 0x2b8]
mov esi, dword [ebp - 0x2a8]
mov eax, edi
sub eax, ecx
add eax, esi
je 0x1002ca27
push eax
push ebx
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [edi + esi]
mov esi, dword [ebp - 0x2a4]
mov dword [ebp - 0x2b8], eax
sub eax, edi
lea edx, [ebp - 0x2a0]
push edx
push edi
lea ecx, [eax + eax]
mov dword [ebp - 0x2f0], eax
lea eax, [ebp - 0x2f4]
push eax
push ebx
push str.page
mov byte [ebp - 4], 3
push esi
mov dword [ebp - 0x2a0], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x1002ca96
mov eax, dword [ebp - 0x2f4]
cmp eax, 1
je 0x1002ca7b
cmp eax, 2
jne 0x1002ca96
cmp edi, ebx
je 0x1002cafb
mov eax, dword [ebp - 0x2a0]
cmp eax, ebx
je 0x1002caf6
test al, 1
jne 0x1002ca96
shr eax, 1
cmp word [edi + eax*2 - 2], bx
je 0x1002cafb
mov byte [ebp - 4], 2
cmp edi, ebx
je 0x1002caa8
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x2bc], ebx
mov dword [ebp - 0x2b8], ebx
mov dword [ebp - 0x2b4], ebx
cmp esi, ebx
je 0x1002cacb
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2e0], ebx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x234], 8
mov dword [ebp - 0x2dc], ebx
jb 0x1002c8e2
mov edx, dword [ebp - 0x248]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x1002c8e2
xor ecx, ecx
mov word [edi], cx
xor eax, eax
mov word [ebp - 0x280], ax
mov eax, edi
mov dword [ebp - 0x26c], 7
mov dword [ebp - 0x270], ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1002cb20
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [ebp - 0x280]
call fcn.1000a770
mov dword [ebp - 0x2d0], ebx
mov dword [ebp - 0x2cc], ebx
mov dword [ebp - 0x2c8], ebx
mov byte [ebp - 4], 5
mov dword [ebp - 0x2a0], ebx
lea esp, [esp]
xor ecx, ecx
push 4
mov eax, str.rule
lea esi, [ebp - 0x264]
mov dword [ebp - 0x250], 7
mov dword [ebp - 0x254], ebx
mov word [ebp - 0x264], cx
call fcn.1000a770
push 0xa
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x2a0]
push edx
push eax
call dword [sym.imp.MSVCR100.dll__itow]
lea eax, [ebp - 0x28]
add esp, 0xc
lea edx, [eax + 2]
jmp 0x1002cbb0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1002cbb0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x264]
call fcn.1000a640
mov eax, dword [ebp - 0x264]
mov esi, 8
cmp dword [ebp - 0x250], esi
jae 0x1002cbe7
lea eax, [ebp - 0x264]
mov ecx, dword [ebp - 0x2f0]
lea edx, [ecx + ecx]
lea ecx, [ebp - 0x2a8]
push ecx
push edi
mov dword [ebp - 0x2a8], edx
lea edx, [ebp - 0x2e4]
push edx
push ebx
push eax
mov eax, dword [ebp - 0x2a4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x1002cc4f
mov eax, dword [ebp - 0x2e4]
cmp eax, 1
je 0x1002cc28
cmp eax, 2
jne 0x1002cc4f
cmp edi, ebx
je 0x1002cda7
mov eax, dword [ebp - 0x2a8]
cmp eax, ebx
je 0x1002cda2
test al, 1
jne 0x1002cc4f
shr eax, 1
cmp word [edi + eax*2 - 2], bx
je 0x1002cda7
mov byte [ebp - 4], 5
cmp dword [ebp - 0x250], esi
jb 0x1002cc6b
mov edx, dword [ebp - 0x264]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea eax, [ebp - 0x2d0]
push eax
push ecx
mov ecx, dword [ebp - 0x2ec]
lea edx, [ebp - 0x280]
call fcn.1002d2d0
add esp, 4
call fcn.1001ad90
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2d0]
cmp eax, ebx
je 0x1002cce5
mov esi, eax
cmp eax, dword [ebp - 0x2cc]
je 0x1002ccd6
cmp dword [esi + 0x14], 8
jb 0x1002ccbc
mov eax, dword [esi]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov eax, dword [ebp - 0x2d0]
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], cx
add esi, 0x1c
cmp esi, dword [ebp - 0x2cc]
jne 0x1002cca4
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, 8
mov byte [ebp - 4], 3
mov dword [ebp - 0x2d0], ebx
mov dword [ebp - 0x2cc], ebx
mov dword [ebp - 0x2c8], ebx
cmp dword [ebp - 0x26c], esi
jb 0x1002cd13
mov edx, dword [ebp - 0x280]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [ebp - 0x26c], 7
mov dword [ebp - 0x270], ebx
mov word [ebp - 0x280], ax
mov byte [ebp - 4], 2
cmp edi, ebx
je 0x1002cd3e
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, dword [ebp - 0x2e0]
mov dword [ebp - 0x2bc], ebx
mov dword [ebp - 0x2b8], ebx
mov dword [ebp - 0x2b4], ebx
inc dword [ebp - 0x2ac]
mov dword [ebp - 0x2c0], 0x200
cmp esi, ebx
je 0x1002cd77
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2e0], ebx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x234], 8
mov dword [ebp - 0x2dc], ebx
jb 0x1002c8e2
mov ecx, dword [ebp - 0x248]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x1002c8e2
xor ecx, ecx
mov word [edi], cx
xor edx, edx
mov eax, edi
mov word [ebp - 0x29c], dx
mov dword [ebp - 0x288], 7
mov dword [ebp - 0x28c], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1002cdc5
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [ebp - 0x29c]
call fcn.1000a770
mov ecx, esi
lea ebx, [ebp - 0x2d0]
mov byte [ebp - 4], 7
call fcn.10026b00
mov esi, 8
mov byte [ebp - 4], 6
cmp dword [ebp - 0x288], esi
jb 0x1002ce14
mov eax, dword [ebp - 0x29c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov byte [ebp - 4], 5
cmp dword [ebp - 0x250], esi
jb 0x1002ce30
mov ecx, dword [ebp - 0x264]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
inc dword [ebp - 0x2a0]
xor ebx, ebx
jmp 0x1002cb60
cmp esi, ebx
je 0x1002ce48
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
cmp dword [ebp - 0x234], 8
jb 0x1002ce64
mov edx, dword [ebp - 0x248]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov word [ebp - 0x248], ax
mov eax, dword [ebp - 0x2d4]
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], ebx
cmp eax, ebx
je 0x1002ce8e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x1002ce94
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10045a28
mov esp, ebp
pop ebp
ret 4