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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4493a8
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x45a028]
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 esi, 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 esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x422557
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 0x422000
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x422000
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x22c]
lea ecx, [ebp - 0x248]
call fcn.00405f90
xor edi, edi
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 esi
mov dword [ebp - 0x2a4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x42240e
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 0x422502
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 0x4220f6
push ecx
lea esi, [ebp - 0x2bc]
call fcn.0041f610
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 0x4220e7
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 0x422156
mov eax, dword [ebp - 0x2f4]
cmp eax, 1
je 0x42213b
cmp eax, 2
jne 0x422156
cmp edi, ebx
je 0x4221bb
mov eax, dword [ebp - 0x2a0]
cmp eax, ebx
je 0x4221b6
test al, 1
jne 0x422156
shr eax, 1
cmp word [edi + eax*2 - 2], bx
je 0x4221bb
mov byte [ebp - 4], 2
cmp edi, ebx
je 0x422168
push edi
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
mov dword [ebp - 0x2bc], ebx
mov dword [ebp - 0x2b8], ebx
mov dword [ebp - 0x2b4], ebx
cmp esi, ebx
je 0x42218b
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 0x421fa2
mov edx, dword [ebp - 0x248]
push edx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
jmp 0x421fa2
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 0x4221e0
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea ecx, [ebp - 0x280]
call fcn.00405f90
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
mov word [ebp - 0x264], cx
push 4
mov eax, 0x44fe7c
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x250], 7
mov dword [ebp - 0x254], ebx
call fcn.00405f90
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 0x422270
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x422270
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x264]
call fcn.00409ba0
cmp dword [ebp - 0x250], 8
mov eax, dword [ebp - 0x264]
jae 0x4222a3
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
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x422305
mov eax, dword [ebp - 0x2e4]
cmp eax, 1
je 0x4222de
cmp eax, 2
jne 0x422305
cmp edi, ebx
je 0x42245f
mov eax, dword [ebp - 0x2a8]
cmp eax, ebx
je 0x42245a
test al, 1
jne 0x422305
shr eax, 1
cmp word [edi + eax*2 - 2], bx
je 0x42245f
mov byte [ebp - 4], 5
cmp dword [ebp - 0x250], 8
jb 0x422322
mov ecx, dword [ebp - 0x264]
push ecx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
lea edx, [ebp - 0x2d0]
push edx
push ecx
mov ecx, dword [ebp - 0x2ec]
lea edx, [ebp - 0x280]
call fcn.004180a0
add esp, 4
call fcn.00409160
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2d0]
cmp eax, ebx
je 0x42239c
mov esi, eax
cmp eax, dword [ebp - 0x2cc]
je 0x422392
jmp 0x422360
cmp dword [esi + 0x14], 8
jb 0x422378
mov eax, dword [esi]
push eax
call dword [sym.imp.mfc100u.dll_delete]
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 0x422360
push eax
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x26c], 8
mov dword [ebp - 0x2d0], ebx
mov dword [ebp - 0x2cc], ebx
mov dword [ebp - 0x2c8], ebx
jb 0x4223cb
mov edx, dword [ebp - 0x280]
push edx
call dword [sym.imp.mfc100u.dll_delete]
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 0x4223f6
push edi
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
mov edi, 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 edi, ebx
je 0x42242f
push edi
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 0x421fa2
mov ecx, dword [ebp - 0x248]
push ecx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
jmp 0x421fa2
xor eax, eax
mov word [edi], ax
xor ecx, ecx
mov eax, edi
mov dword [ebp - 0x288], 7
mov dword [ebp - 0x28c], ebx
mov word [ebp - 0x29c], cx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x422480
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea ecx, [ebp - 0x29c]
call fcn.00405f90
lea ecx, [ebp - 0x29c]
lea ebx, [ebp - 0x2d0]
mov byte [ebp - 4], 7
call fcn.00417ef0
mov ebx, 8
mov byte [ebp - 4], 6
cmp dword [ebp - 0x288], ebx
jb 0x4224d3
mov edx, dword [ebp - 0x29c]
push edx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
mov byte [ebp - 4], 5
cmp dword [ebp - 0x250], ebx
jb 0x4224ef
mov eax, dword [ebp - 0x264]
push eax
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
inc dword [ebp - 0x2a0]
mov esi, dword [ebp - 0x2a4]
xor ebx, ebx
jmp 0x422220
cmp esi, ebx
je 0x42250d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
cmp dword [ebp - 0x234], 8
jb 0x422529
mov edx, dword [ebp - 0x248]
push edx
call dword [sym.imp.mfc100u.dll_delete]
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 0x422553
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x422559
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.00441db6
mov esp, ebp
pop ebp
ret 4