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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10050098
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x10067068]
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 0x10030e82
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 0x10030930
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10030930
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x22c]
lea esi, [ebp - 0x248]
call fcn.1000cf60
xor esi, esi
mov dword [ebp - 0x2d8], ebx
lea eax, [ebp - 0x2a4]
push eax
push SysReAllocString
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 0x10030d46
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 0x10030e2d
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 0x10030a26
push ecx
lea esi, [ebp - 0x2bc]
call fcn.10029360
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 0x10030a17
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 0x10030a86
mov eax, dword [ebp - 0x2f4]
cmp eax, 1
je 0x10030a6b
cmp eax, 2
jne 0x10030a86
cmp edi, ebx
je 0x10030aeb
mov eax, dword [ebp - 0x2a0]
cmp eax, ebx
je 0x10030ae6
test al, 1
jne 0x10030a86
shr eax, 1
cmp word [edi + eax*2 - 2], bx
je 0x10030aeb
mov byte [ebp - 4], 2
cmp edi, ebx
je 0x10030a98
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 0x10030abb
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 0x100308d2
mov edx, dword [ebp - 0x248]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x100308d2
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 0x10030b10
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [ebp - 0x280]
call fcn.1000cf60
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.1000cf60
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 0x10030ba0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10030ba0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x264]
call fcn.10011b20
mov eax, dword [ebp - 0x264]
mov esi, 8
cmp dword [ebp - 0x250], esi
jae 0x10030bd7
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 0x10030c3f
mov eax, dword [ebp - 0x2e4]
cmp eax, 1
je 0x10030c18
cmp eax, 2
jne 0x10030c3f
cmp edi, ebx
je 0x10030d97
mov eax, dword [ebp - 0x2a8]
cmp eax, ebx
je 0x10030d92
test al, 1
jne 0x10030c3f
shr eax, 1
cmp word [edi + eax*2 - 2], bx
je 0x10030d97
mov byte [ebp - 4], 5
cmp dword [ebp - 0x250], esi
jb 0x10030c5b
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.100312d0
add esp, 4
call fcn.1001cee0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2d0]
cmp eax, ebx
je 0x10030cd5
mov esi, eax
cmp eax, dword [ebp - 0x2cc]
je 0x10030cc6
cmp dword [esi + 0x14], 8
jb 0x10030cac
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 0x10030c94
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 0x10030d03
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 0x10030d2e
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 0x10030d67
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 0x100308d2
mov ecx, dword [ebp - 0x248]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x100308d2
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 0x10030db5
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [ebp - 0x29c]
call fcn.1000cf60
mov ecx, esi
lea ebx, [ebp - 0x2d0]
mov byte [ebp - 4], 7
call fcn.10028aa0
mov esi, 8
mov byte [ebp - 4], 6
cmp dword [ebp - 0x288], esi
jb 0x10030e04
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 0x10030e20
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 0x10030b50
cmp esi, ebx
je 0x10030e38
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
cmp dword [ebp - 0x234], 8
jb 0x10030e54
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 0x10030e7e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x10030e84
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.10048188
mov esp, ebp
pop ebp
ret 4