Function at 0x100dd5d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10150a0b
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x1019a128]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push eax
push 0x201
push 0
push ebx
push ecx
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
je 0x100dd6a1
push str.GetRegKeyValue
mov edx, 4
lea ecx, [ebp - 0xc8]
call fcn.1000aed0
add esp, 4
mov esi, eax
mov dword [ebp - 4], 0
mov al, byte [esi + 0x48]
test al, al
je 0x100dd68f
mov edx, str.RegOpenKeyEx
mov ecx, esi
call fcn.10020800
mov al, byte [esi + 0x48]
test al, al
je 0x100dd68f
mov edx, ebx
mov ecx, esi
call fcn.100205a0
mov al, byte [esi + 0x48]
test al, al
je 0x100dd68f
mov edx, 0x1016dc00
mov ecx, esi
call fcn.10020800
mov al, byte [esi + 0x48]
test al, al
je 0x100dd68f
push edi
mov ecx, esi
call fcn.100201d0
lea ecx, [ebp - 0xc8]
call fcn.1000ad70
xor al, al
jmp 0x100dd740
mov edi, dword [esi + 4]
mov edx, edi
mov ecx, dword [esi]
sub edx, ecx
cmp edx, 0x7fff
jbe 0x100dd6ba
lea edi, [ecx + 0x7fff]
jmp 0x100dd6f2
jae 0x100dd6f5
mov eax, dword [esi + 8]
sub eax, ecx
cmp eax, 0x7fff
jae 0x100dd6da
push ecx
push 0x7fff
mov ecx, esi
call fcn.100ad740
mov edi, dword [esi + 4]
jmp 0x100dd6f5
mov ecx, 0x7fff
mov eax, edi
sub ecx, edx
push ecx
push 0
push eax
lea edi, [eax + ecx]
call fcn.10117ff0
add esp, 0xc
mov dword [esi + 4], edi
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push eax
push 0
sub edi, eax
push 0
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x1c]
push edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x100dd785
mov ebx, dword [esi + 4]
mov ecx, ebx
mov edx, dword [esi]
sub ecx, edx
mov edi, dword [ebp - 0x14]
cmp edi, ecx
jae 0x100dd75c
lea eax, [edx + edi]
mov dword [esi + 4], eax
mov edi, dword [ebp - 0x1c]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101157bc
mov esp, ebp
pop ebp
ret
jbe 0x100dd72f
mov eax, dword [esi + 8]
sub eax, edx
cmp edi, eax
jbe 0x100dd772
push ecx
push edi
mov ecx, esi
call fcn.100ad740
jmp 0x100dd72f
sub edi, ecx
push edi
push 0
push ebx
call fcn.10117ff0
add esp, 0xc
lea eax, [edi + ebx]
jmp 0x100dd72c
push str.GetRegKeyValue
mov edx, 4
lea ecx, [ebp - 0x170]
call fcn.1000aed0
add esp, 4
mov esi, eax
mov dword [ebp - 4], 1
mov al, byte [esi + 0x48]
test al, al
je 0x100dd7fd
mov edx, str.RegQueryValueEx
mov ecx, esi
call fcn.10020800
mov al, byte [esi + 0x48]
test al, al
je 0x100dd7fd
mov edx, edi
mov ecx, esi
call fcn.100205a0
mov al, byte [esi + 0x48]
test al, al
je 0x100dd7fd
mov edx, 0x1016dc00
mov ecx, esi
call fcn.10020800
cmp byte [esi + 0x48], 0
mov edi, dword [ebp - 0x1c]
je 0x100dd800
push edi
mov ecx, esi
call fcn.100201d0
lea ecx, [ebp - 0x170]
call fcn.1000ad70
jmp 0x100dd732
mov edi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x170]
call fcn.1000ad70
jmp 0x100dd732