Function at 0x44ccf4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407088
xor eax, eax
push ebp
push 0x44cf9a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.004070a0
lea eax, [ebp - 8]
call fcn.00407090
mov edx, eax
lea eax, [ebp - 4]
call fcn.0044c3f0
mov eax, dword [ebp - 4]
call fcn.0044e0f0
mov ebx, eax
test ebx, ebx
je 0x44cf77
xor eax, eax
mov dword [ebp - 0x10], eax
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.0040712c
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExW_1
mov eax, dword [ebp - 0x10]
cmp eax, 7
ja case.0x44cd7a.5
jmp dword [eax*4 + 0x44cd81]
mov eax, esi
xor edx, edx
call fcn.004070a0
jmp case.0x44cd7a.5
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0040712c
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExW_1
mov eax, dword [ebp - 0x18]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x118]
call fcn.0040851c
lea edx, [ebp - 0x118]
mov eax, esi
call fcn.004073fc
jmp case.0x44cd7a.5
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0040712c
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, dword [ebp - 0x14]
shr edx, 1
mov eax, esi
call fcn.00407414
mov eax, dword [esi]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x44ce3b
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle case.0x44cd7a.5
lea eax, [ebp - 0x14]
push eax
mov eax, esi
call fcn.00407a18
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0040712c
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExW_1
mov eax, dword [esi]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x44ce79
sub eax, 4
mov eax, dword [eax]
mov edx, eax
dec edx
mov eax, esi
call fcn.00407414
jmp case.0x44cd7a.5
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0040712c
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, dword [ebp - 0x14]
add edx, edx
mov eax, esi
call fcn.00407414
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, dword [ebp - 0x14]
call fcn.00406c64
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x44cede
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x44cede
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
call fcn.004064bc
test eax, eax
je 0x44cee7
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle case.0x44cd7a.5
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
call fcn.00406a68
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0040712c
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExW_1
mov edi, dword [ebp - 0x14]
cmp edi, 1
jl case.0x44cd7a.5
mov eax, esi
call fcn.00407a18
mov edx, edi
add edx, edx
lea eax, [eax + edx*2 - 2]
push eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + edi - 1]
and al, 0xf0
movzx eax, al
shr eax, 4
movzx eax, word [eax*2 + 0x49f2c8]
pop edx
mov word [edx], ax
mov eax, esi
call fcn.00407a18
mov edx, edi
add edx, edx
lea eax, [eax + edx*2 - 4]
push eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + edi - 1]
and al, 0xf
movzx eax, al
movzx eax, word [eax*2 + 0x49f2c8]
pop edx
mov word [edx], ax
dec edi
test edi, edi
jne 0x44cf17
push ebx
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44cfa1
lea eax, [ebp - 0xc]
call fcn.004062a0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407098
ret