Function at 0x445878
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ecx, ecx
push esi
push edi
mov dword [ebp - 0x14], ecx
mov ebx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], 0x80004005
cmp dword [ebp + 8], ecx
je 0x445a8e
cmp dword [ebp + 0xc], ecx
je 0x445a8e
lea esi, [eax + 1]
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
mov edi, eax
pop ecx
mov dword [ebp - 0xc], edi
test edi, edi
je 0x445a8e
mov edx, dword [ebp + 8]
mov eax, esi
mov esi, edi
call fcn.0042c88c
mov esi, dword [sym.imp.msvcrt.dll_wcschr]
push 0x2c
push edi
call esi
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x445a7f
push 2
pop ecx
push 0x20
pop edx
xor eax, eax
mov word [edi], ax
add edi, ecx
cmp dx, word [edi]
je 0x4458f5
push 0x2c
push edi
call esi
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x44595e
push 2
pop ecx
push 0x20
pop edx
xor eax, eax
mov word [esi], ax
add esi, ecx
cmp dx, word [esi]
je 0x445914
push 0x2c
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x445943
push 2
pop ecx
push 0x20
pop edx
xor eax, eax
mov word [ebx], ax
add ebx, ecx
cmp dx, word [ebx]
je 0x445937
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x14]
jne 0x445948
sub ecx, edx
sar ecx, 1
jne 0x44595e
xor eax, eax
mov esi, eax
push 0x4040a0
push dword [ebp - 0xc]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x445979
mov eax, 0x80000002
jmp 0x445986
push dword [ebp - 0xc]
mov eax, 0x80000001
call fcn.00444485
lea ecx, [ebp - 4]
push ecx
push 1
xor ecx, ecx
push ecx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x445a7f
xor ecx, ecx
push 2
pop edx
mov eax, 0x104
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
mov edi, eax
pop ecx
mov dword [ebp - 8], 0x208
test edi, edi
je 0x445a76
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp + 8]
push eax
xor eax, eax
push eax
push esi
push dword [ebp - 4]
mov dword [ebp + 8], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x445a6a
cmp dword [ebp + 8], 1
je 0x445a49
push 2
pop eax
cmp dword [ebp + 8], eax
je 0x445a49
push 4
pop eax
cmp dword [ebp + 8], eax
jne 0x445a6a
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
xor ebx, ebx
push ebx
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x445a6a
push dword [ebp - 0x14]
mov eax, 0x104
push 0x41d1dc
mov ecx, edi
call fcn.0042c95b
pop ecx
pop ecx
test eax, eax
js 0x445a6a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], ebx
mov dword [eax], edi
jmp 0x445a76
xor esi, esi
mov dword [ebp - 0x10], esi
test ebx, ebx
je 0x445a63
push edi
call fcn.004402ab
push ebx
mov eax, 0x104
call fcn.0042c8f1
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov edi, esi
test edi, edi
je 0x445a76
push edi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xc]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
mov eax, dword [ebp - 0x10]
pop ecx
jmp 0x445a93
mov eax, 0x8007000e
pop edi
pop esi
pop ebx
leave
ret 8