Function at 0x446003
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x46700c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
cmp dword [esi + 4], 3
mov ebx, edi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ebx
jne 0x44626f
mov esi, dword [esi + 0xc]
test esi, esi
je 0x44626f
push esi
call fcn.00440bc3
test eax, eax
je 0x44626f
mov ecx, esi
push 2
lea edx, [ecx + 2]
pop ebx
mov ax, word [ecx]
add ecx, ebx
cmp ax, di
jne 0x446061
sub ecx, edx
sar ecx, 1
lea ebx, [ecx + 1]
xor ecx, ecx
push 2
pop edx
mov eax, ebx
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 - reloc.ADVAPI32.dll_TraceMessage], edi
test edi, edi
je 0x446269
mov edx, esi
mov eax, ebx
mov esi, edi
call fcn.0042c88c
push 0x41e9d8
push edi
call dword [sym.imp.msvcrt.dll_wcsstr]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x446261
xor eax, eax
push 0x4040a0
push edi
mov word [esi], ax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x4460db
mov ebx, 0x80000002
jmp 0x4460e8
push edi
mov eax, 0x80000002
call fcn.00444485
mov ebx, eax
add esi, 2
push 0x41e9d8
push esi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x446102
xor ecx, ecx
mov word [eax], cx
test esi, esi
je 0x446261
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x430]
jne 0x44610f
sub ecx, edx
sar ecx, 1
je 0x446261
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0x20019
xor ecx, ecx
push ecx
push esi
push ebx
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x446261
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov eax, 0x104
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
xor ecx, ecx
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push ecx
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push ecx
push dword [ebp - 0x420]
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 1
mov esi, ecx
call ebx
test eax, eax
jne 0x446255
mov edi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
xor eax, eax
inc esi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0x104
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0x208
cmp ax, word [ebp - 0x20c]
je 0x446218
cmp ax, word [ebp - 0x414]
je 0x446218
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 1
je 0x4461ea
push 2
pop eax
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
jne 0x446208
lea ecx, reloc.ADVAPI32.dll_TraceMessage
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x430]
jne 0x4461f3
sub ecx, edx
sar ecx, 1
je 0x446218
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 1
test edi, edi
je 0x44624f
inc dword [edi]
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
xor eax, eax
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push esi
push dword [ebp - 0x420]
call ebx
test eax, eax
je 0x4461ad
mov edi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov ebx, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004655f1
leave
ret 4