Function at 0x4dc598
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 7
push 0
push 0
dec ecx
jne 0x4dc5a1
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4dc9b0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp + 0xc]
call fcn.00408008
lea eax, [ebp - 4]
mov edx, edi
call fcn.00408050
cmp dword [ebp - 4], 0
je 0x4dc612
mov eax, 1
mov edx, dword [ebp - 4]
dec eax
test edx, edx
je 0x4dc5f2
cmp eax, dword [edx - 4]
jb 0x4dc5f7
call fcn.00405fc0
inc eax
cmp word [edx + eax*2 - 2], 0x5c
jne 0x4dc612
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00408dd8
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.0040895c
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4dc988
xor ecx, ecx
push ebp
push 0x4dc981
push dword fs:[ecx]
mov dword fs:[ecx], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push 0
mov eax, dword [ebp - 0x14]
call fcn.0040895c
mov esi, eax
push esi
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4dc96a
mov edx, dword [ebp - 0x1c]
sar edx, 1
jns 0x4dc679
adc edx, 0
mov eax, ebx
call fcn.00408ae8
cmp dword [ebx], 0
je 0x4dc6e9
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebx]
call fcn.0040895c
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push esi
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, dword [ebx]
mov eax, edx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4dc6b4
sub eax, 4
mov eax, dword [eax]
mov ecx, dword [ebx]
dec eax
test ecx, ecx
je 0x4dc6c0
cmp eax, dword [ecx - 4]
jb 0x4dc6c5
call fcn.00405fc0
inc eax
cmp word [ecx + eax*2 - 2], 0
jne 0x4dc6e9
mov eax, edx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4dc6df
sub eax, 4
mov eax, dword [eax]
mov edx, eax
dec edx
mov eax, ebx
call fcn.00408ae8
cmp dword [ebx], 0
je 0x4dc96a
mov eax, 1
mov edx, dword [ebx]
dec eax
test edx, edx
je 0x4dc703
cmp eax, dword [edx - 4]
jb 0x4dc708
call fcn.00405fc0
inc eax
cmp word [edx + eax*2 - 2], 0x40
jne 0x4dc96a
lea eax, [ebp - 0xc]
mov edx, 0x2800
call fcn.00408ae8
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x4dc72e
sub esi, 4
mov esi, dword [esi]
lea eax, [ebp - 0xc]
call fcn.00408208
mov edx, 1
dec edx
test eax, eax
je 0x4dc745
cmp edx, dword [eax - 4]
jb 0x4dc74a
call fcn.00405fc0
inc edx
lea eax, [eax + edx*2 - 2]
mov edx, esi
add edx, edx
xor ecx, ecx
call fcn.004052b4
cmp dword [0x69bf68], 0
je 0x4dc7fa
lea eax, [ebp - 8]
mov edx, dword [ebx]
call fcn.00408050
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x4dc77d
sub esi, 4
mov esi, dword [esi]
push 0
test esi, esi
jns 0x4dc788
call fcn.00405fc0
push esi
mov eax, dword [ebp - 0xc]
call fcn.0040895c
push eax
mov eax, dword [ebp - 8]
call fcn.0040895c
push eax
call dword [0x69bf68]
test eax, 0x80000000
sete al
neg al
sbb eax, eax
test eax, eax
je 0x4dc7c4
mov eax, dword [ebp - 0xc]
call fcn.0040895c
mov edx, eax
mov eax, ebx
call fcn.004089bc
jmp 0x4dc7f0
mov edx, dword [ebx]
mov eax, 0x4dc9cc
call fcn.00408efc
test eax, eax
jle 0x4dc7f0
push ebx
mov edx, dword [ebx]
mov eax, 0x4dc9cc
call fcn.00408efc
mov edx, eax
inc edx
mov eax, dword [ebx]
mov ecx, 0x7fffffff
call fcn.00408d90
call fcn.00407404
jmp 0x4dc988
mov edx, dword [ebx]
mov eax, 0x4dc9dc
call fcn.00408efc
mov esi, eax
test esi, esi
jne 0x4dc810
mov al, 1
jmp 0x4dc827
mov eax, dword [ebx]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4dc821
sub eax, 4
mov eax, dword [eax]
dec eax
cmp esi, eax
setge al
test al, al
je 0x4dc82f
mov al, 1
jmp 0x4dc84d
lea eax, [esi + 1]
mov edx, dword [ebx]
dec eax
test edx, edx
je 0x4dc83e
cmp eax, dword [edx - 4]
jb 0x4dc843
call fcn.00405fc0
inc eax
cmp word [edx + eax*2 - 2], 0x2d
setne al
test al, al
je 0x4dc85b
call fcn.00407404
jmp 0x4dc988
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
sub ecx, 2
mov eax, dword [ebx]
mov edx, 2
call fcn.00408d90
lea eax, [ebp - 0x2c]
push eax
lea edx, [esi + 2]
mov eax, dword [ebx]
mov ecx, 0x7fffffff
call fcn.00408d90
mov eax, dword [ebp - 0x2c]
or edx, 0xffffffff
call fcn.00441e40
mov esi, eax
test esi, esi
jge 0x4dc89e
call fcn.00407404
jmp 0x4dc988
lea ecx, [ebp - 0x3c]
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.004db630
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.00441578
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.00442988
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.00441578
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x10]
call fcn.00408050
mov eax, dword [ebp - 0x10]
call fcn.0040895c
push eax
call sub.kernel32.dll_LoadLibraryW
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4dc8f8
call fcn.00407404
jmp 0x4dc988
xor edx, edx
push ebp
push 0x4dc963
push dword fs:[edx]
mov dword fs:[edx], esp
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x4dc912
sub edi, 4
mov edi, dword [edi]
push edi
mov eax, dword [ebp - 0xc]
call fcn.0040895c
push eax
push esi
mov eax, dword [ebp - 0x24]
push eax
call sub.user32.dll_LoadStringW_1
mov eax, dword [ebp - 0xc]
call fcn.0040895c
mov edx, eax
lea eax, [ebp - 0xc]
call fcn.004089bc
cmp dword [ebp - 0xc], 0
je 0x4dc948
mov eax, ebx
mov edx, dword [ebp - 0xc]
call fcn.00408008
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dc96a
mov eax, dword [ebp - 0x24]
xor edx, edx
mov dword [ebp - 0x24], edx
call fcn.004060e0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dc988
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dc9b7
lea eax, [ebp - 0x3c]
mov edx, 5
call fcn.00407c88
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00407c88
ret