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

Disassembly:
sub esp, 0xc30
mov eax, dword [esp + 0xc4c]
push edi
mov dword [esp + 0x20], eax
mov edi, ecx
mov eax, dword [esp + 0xc54]
push 0x3ff
push dword [esp + 0xc5c]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x834], 0
mov byte [esp + 0x434], 0
call fcn.004b9880
lea ecx, [esp + 0x34]
mov byte [esp + 0x433], 0
add esp, 0xc
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x445290
sub ecx, edx
je 0x4452a6
cmp byte [esp + ecx + 0x27], 0x5c
jne 0x4452a6
mov byte [esp + ecx + 0x27], al
lea eax, [esp + 4]
push eax
mov eax, dword [0x4e498c]
mov eax, dword [eax + 0xb0]
or eax, 9
push eax
push 0
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4452ff
push eax
push eax
push eax
push eax
lea eax, [esp + 0x28]
push eax
push 0
push 0
lea eax, [esp + 0x38]
push eax
push 0
push 0
push 0
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x44530e
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
add esp, 0xc30
ret 0x24
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xc48]
push ebx
mov ebx, dword [0x4e498c]
push ebp
mov ebp, dword [esp + 0xc40]
push esi
mov esi, dword [esp + 0xc50]
test eax, eax
je 0x445482
cmp ecx, 2
je 0x445482
mov dword [esp + 0x838], 0
lea ebp, [eax - 1]
mov dword [esp + 0x83c], 0
nop word [eax + eax]
push 0
push 0
lea eax, [esp + 0x83c]
mov dword [esp + 0x24], 0x400
push eax
push 0
lea eax, [esp + 0x2c]
mov byte [esp + 0x444], 0
push eax
lea eax, [esp + 0x448]
push eax
push ebp
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x44545a
lea eax, [esp + 0x2c]
mov dword [ebx + 0x14], eax
mov ecx, dword [edi + 0x14]
cmp byte [ecx], 0x77
jne 0x4453d9
nop dword [eax]
mov ecx, dword [ecx + 0x14]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0xc48]
push 2
call fcn.0043dc90
mov ecx, dword [edi + 0x14]
mov esi, eax
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], esi
cmp edx, ecx
je 0x4453b0
jmp 0x4453f6
lea eax, [esp + 0x14]
push eax
push dword [esp + 0xc48]
push 3
call fcn.0043dc90
mov edx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0x18], esi
test edx, edx
je 0x445425
cmp esi, 6
jne 0x445464
cmp edx, edi
je 0x445433
mov eax, dword [esp + 0xc4c]
mov dword [eax], edx
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 0xc30
ret 0x24
cmp esi, 1
je 0x445433
cmp esi, 6
jne 0x445678
mov esi, dword [esp + 0xc50]
test esi, esi
je 0x445452
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.00444740
test al, al
jne 0x445674
add dword [ebx + 8], 1
adc dword [ebx + 0xc], 0
test ebp, ebp
je 0x445474
dec ebp
jmp 0x445360
cmp edx, edi
jne 0x445403
mov eax, dword [esp + 0xc48]
mov byte [eax], 1
jmp 0x44540c
mov ebp, dword [esp + 0xc44]
mov ecx, dword [esp + 0xc54]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x445691
cmp ecx, 1
jne 0x4454a1
cmp byte [esp + 0xc58], 0
je 0x445691
mov dword [esp + 0x834], 0xfffffffe
lea ecx, [esp + 0x838]
mov dword [esp + 0x1c], 0x400
push ecx
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
dec eax
push ecx
lea ecx, [esp + 0x448]
mov dword [esp + 0x34], eax
push ecx
push eax
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x445649
cmp dword [esp + 0xc54], 1
je 0x4455a6
lea eax, [esp + 0x2c]
mov dword [ebx + 0x14], eax
mov ecx, dword [edi + 0x14]
cmp byte [ecx], 0x77
jne 0x445527
mov ecx, dword [ecx + 0x14]
lea eax, [esp + 0x14]
push eax
push ebp
push 2
call fcn.0043dc90
mov ecx, dword [edi + 0x14]
mov esi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], esi
cmp eax, ecx
je 0x445504
jmp 0x44553e
lea eax, [esp + 0x14]
push eax
push ebp
push 3
call fcn.0043dc90
mov esi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], esi
test eax, eax
je 0x445571
cmp esi, 6
jne 0x44565d
cmp eax, edi
je 0x44557f
mov ecx, dword [esp + 0xc4c]
mov dword [ecx], eax
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 0xc30
ret 0x24
cmp esi, 1
je 0x44557f
cmp esi, 6
jne 0x445678
mov esi, dword [esp + 0xc50]
test esi, esi
je 0x44559e
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.00444740
test al, al
jne 0x445674
add dword [ebx + 8], 1
adc dword [ebx + 0xc], 0
cmp byte [esp + 0xc58], 0
je 0x445649
cmp byte [esp + 0x34], 0
lea eax, [esp + 0x434]
push eax
mov ecx, 0x4d0335
mov eax, 0x4d652c
cmove eax, ecx
push eax
lea eax, [esp + 0x3c]
push eax
push str._s_s_s
lea eax, [esp + 0x850]
push 0x400
push eax
call fcn.0049a540
mov ecx, dword [esp + 0xc64]
lea eax, [esp + 0x858]
add esp, 0x18
push eax
push dword [esp + 0xc64]
push dword [esp + 0xc64]
push dword [esp + 0xc64]
push dword [esp + 0xc64]
push esi
push ecx
push dword [esp + 0xc64]
mov ecx, edi
push ebp
call fcn.00445230
mov esi, eax
cmp esi, 1
jne 0x445678
mov eax, dword [esp + 0xc48]
cmp byte [eax], 0
jne 0x445691
mov eax, dword [esp + 0xc4c]
cmp dword [eax], 0
jne 0x445691
mov eax, dword [esp + 0x20]
test eax, eax
je 0x445691
mov esi, dword [esp + 0xc50]
jmp 0x4454ac
cmp eax, edi
jne 0x44554f
mov eax, dword [esp + 0xc48]
mov byte [eax], 1
jmp 0x445558
mov esi, dword [esp + 0x18]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 0xc30
ret 0x24
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
add esp, 0xc30
ret 0x24