Function at 0x444135
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4441c0
cmp eax, 0x41df28
je 0x4441c0
cmp dword [ebp + 0xc], eax
je 0x4441c0
push 2
mov edi, ebx
mov esi, ebx
pop ebx
cmp dword [ebp - 4], eax
jbe 0x4442ee
mov eax, dword [ebp - 0xc]
xor ecx, ecx
inc eax
mul ebx
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
test edi, edi
je 0x4441c0
mov eax, dword [ebp - 0x10]
add eax, ebx
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x4441c9
push edi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
lea eax, [eax*4 + 4]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x4441f9
push edi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
push ebx
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x4441bf
push dword [ebp - 0x18]
push 0xff
push eax
call sub.msvcrt.dll_memset
mov ecx, dword [ebp - 8]
add esp, 0xc
test ecx, ecx
je 0x44429c
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
add eax, 2
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push edi
lea eax, [ecx - 1]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x44429c
push 4
push 0x41df28
push edi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x44428f
cmp dword [ebp - 0x18], 1
je 0x444267
cmp dword [ebp - 0x18], 2
jne 0x444277
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x4442c4
lea eax, [edi + 8]
push eax
call dword [sym.imp.msvcrt.dll__wtoi]
mov esi, eax
mov eax, dword [ebp - 0x14]
pop ecx
mov ecx, dword [ebp - 8]
mov dword [eax + ecx*4], esi
jmp 0x444292
mov ecx, dword [ebp - 8]
dec ecx
mov dword [ebp - 8], ecx
jne 0x444215
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_free]
call ebx
pop ecx
mov ecx, dword [ebp - 0x14]
xor eax, eax
inc eax
cmp dword [ebp - 4], eax
jb 0x4442db
cmp dword [ecx + eax*4], esi
je 0x4442bc
inc eax
cmp eax, dword [ebp - 4]
jbe 0x4442b1
cmp eax, dword [ebp - 4]
ja 0x4442db
inc esi
jmp 0x4442a9
mov esi, dword [sym.imp.msvcrt.dll_free]
push ebx
call esi
push dword [ebp - 0x14]
call esi
pop ecx
pop ecx
mov eax, edi
jmp 0x4441c2
push ecx
call ebx
pop ecx
cmp esi, 0x1869f
jg 0x4441b8
push 2
pop ebx
cmp dword [ebp - 0xc], 0xe
push 8
pop eax
mov dword [ebp - 4], eax
jae 0x44432e
test edi, edi
je 0x444309
push edi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
mov eax, dword [ebp - 4]
pop ecx
xor ecx, ecx
add eax, 6
mul ebx
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
test edi, edi
je 0x4441c0
mov eax, dword [ebp - 4]
jmp 0x444332
test edi, edi
je 0x4442d4
push eax
push 0x41df28
push edi
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 4]
shr eax, 1
push reloc.ole32.dll_CoRegisterClassObject
lea eax, [edi + eax*2]
push eax
push esi
call dword [sym.imp.msvcrt.dll__itow]
add esp, 0x18
jmp 0x4442d4