Function at 0x6c378417
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x74
push 0x6c378d20
call fcn.6c371338
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x68], 1
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x60], ebx
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jne 0x6c378464
mov esi, 0xc0000bbd
jmp 0x6c378c0d
mov dword [eax + 0xc], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x10], ebx
cmp dword [ebp + 8], ebx
jne 0x6c37847e
mov dword [ebp - 0x3c], 0x80000002
jmp 0x6c37849a
lea eax, [ebp - 0x3c]
push eax
push 0x80000002
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov esi, eax
cmp esi, ebx
jne 0x6c378c0d
push 0x820
push 0x146
push 0x6c37276c
call fcn.6c375051
mov dword [ebp - 0x38], eax
cmp eax, ebx
jne 0x6c3784bf
mov esi, 0xc0000bbb
jmp 0x6c378c0d
add eax, 0x208
mov dword [ebp - 0x48], eax
add eax, 0x208
mov dword [ebp - 0x50], eax
add eax, 0x208
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x34]
push eax
push 0x20019
push ebx
push dword [str._7l]
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x6c378c0d
mov dword [ebp - 0x1c], 4
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [0x6c3a7460]
push dword [ebp - 0x34]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call edi
mov esi, eax
cmp esi, ebx
jne 0x6c378c0d
cmp dword [ebp - 0x20], 4
jne 0x6c378c0d
mov dword [ebp - 0x1c], 4
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [0x6c3a7464]
push dword [ebp - 0x34]
call edi
mov esi, eax
cmp esi, ebx
jne 0x6c378c0d
cmp dword [ebp - 0x20], 4
jne 0x6c378c0d
mov eax, dword [ebp - 0x7c]
cmp dword [ebp - 0x28], eax
jae 0x6c378571
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
lea eax, [eax*4 + 4]
mov dword [ebp - 0x4c], eax
push 4
pop esi
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [0x6c3a7468]
push dword [ebp - 0x34]
call edi
cmp eax, ebx
jne 0x6c3785a5
cmp dword [ebp - 0x20], esi
je 0x6c3785ac
mov dword [ebp - 0x64], 0x10000
mov dword [ebp - 0x5c], ebx
lea eax, [ebp - 0x5c]
push eax
push ebx
lea eax, [ebp - 0x60]
push eax
push 0x24
mov esi, dword [sym.imp.ntdll.dll_RtlGetThreadPreferredUILanguages]
call esi
cmp eax, ebx
je 0x6c3785cd
cmp eax, 0xc0000023
jne 0x6c378611
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
jbe 0x6c378611
add eax, eax
push eax
push 0x183
mov edi, 0x6c37276c
push edi
call fcn.6c375051
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x5c]
push ecx
push eax
lea eax, [ebp - 0x60]
push eax
push 0x24
call esi
cmp eax, ebx
jl 0x6c378600
cmp dword [ebp - 0x60], ebx
jne 0x6c378611
push dword [ebp - 0x58]
push 0x189
push edi
call fcn.6c3750c2
mov dword [ebp - 0x58], ebx
xor eax, eax
mov edi, 0x10000
cmp dword [ebp - 0x64], edi
setne al
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x20]
push dword [ebp + 8]
call fcn.6c37802b
mov esi, eax
cmp esi, ebx
jne 0x6c378772
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x44]
cmp ecx, edx
je 0x6c378662
mov eax, 0x3ff
and edx, eax
and ecx, eax
cmp cx, dx
jne 0x6c378669
cmp dx, 9
jne 0x6c378669
mov dword [ebp - 0x30], 1
cmp dword [ebp - 0x64], edi
jne 0x6c37876d
push dword [0x6c3a74c4]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call edi
mov esi, eax
push dword [str._7l]
call edi
lea eax, [esi + eax + 0x10]
mov dword [ebp - 0x1c], eax
add eax, eax
push eax
push 0x1a5
push 0x6c37276c
call fcn.6c375051
mov esi, eax
mov dword [ebp - 0x70], esi
cmp esi, ebx
je 0x6c3784b5
push dword [ebp - 0x40]
push dword [0x6c3a74c4]
push dword [str._7l]
push 0x6c3727b0
push dword [ebp - 0x1c]
push esi
call fcn.6c377fcc
add esp, 0x18
lea eax, [ebp - 0x24]
push eax
push 0x20019
push ebx
push esi
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp dword [ebp - 0x30], ebx
jne 0x6c3787ef
cmp esi, ebx
jne 0x6c378c0d
push dword [0x6c3a74c4]
call edi
mov esi, eax
push dword [str._7l]
call edi
lea eax, [esi + eax + 0x10]
mov dword [ebp - 0x1c], eax
add eax, eax
push eax
push 0x1b1
push 0x6c37276c
call fcn.6c375051
mov esi, eax
mov dword [ebp - 0x74], esi
cmp esi, ebx
je 0x6c3784b5
push dword [0x6c3a7454]
push dword [0x6c3a74c4]
push dword [str._7l]
push 0x6c37271c
push dword [ebp - 0x1c]
push esi
call fcn.6c377fcc
add esp, 0x18
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push ebx
push esi
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
jmp 0x6c3787ef
mov dword [ebp - 0x68], ebx
jmp 0x6c3787ef
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x24]
push eax
push 0x80000060
push dword [ebp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
call edi
mov esi, eax
mov dword [ebp - 0x6c], esi
cmp esi, ebx
jne 0x6c3787bb
lea eax, [ebp - 0x2c]
push eax
push 0x80000050
push dword [ebp + 8]
call edi
mov esi, eax
mov dword [ebp - 0x6c], esi
cmp esi, ebx
je 0x6c3787bb
cmp dword [ebp - 0x24], 0x80000060
je 0x6c3787bb
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xfffffffe
jmp 0x6c3787e4
cmp esi, ebx
jne 0x6c378c0d
mov dword [ebp - 0x30], ebx
cmp esi, ebx
jne 0x6c378c0d
mov esi, 0x104
cmp dword [ebp - 0x68], ebx
jne 0x6c37888b
push dword [ebp - 0x40]
push dword [0x6c3a746c]
mov edi, 0x6c3727a0
push edi
push esi
push dword [ebp - 0x38]
call fcn.6c377fcc
push dword [ebp - 0x40]
push dword [0x6c3a7470]
push edi
push esi
push dword [ebp - 0x48]
call fcn.6c377fcc
push dword [ebp - 0x44]
push dword [0x6c3a746c]
push edi
push esi
push dword [ebp - 0x50]
call fcn.6c377fcc
push dword [ebp - 0x44]
push dword [0x6c3a7470]
push edi
push esi
push dword [ebp - 0x54]
call fcn.6c377fcc
add esp, 0x50
cmp dword [ebp + 8], ebx
jne 0x6c378867
mov dword [ebp - 0x24], 0x80000004
jmp 0x6c378883
lea eax, [ebp - 0x24]
push eax
push 0x80000004
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov esi, eax
cmp esi, ebx
jne 0x6c378c0d
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
jmp 0x6c3788c7
push dword [0x6c3a7458]
push esi
push dword [ebp - 0x38]
call fcn.6c3738f9
push dword [0x6c3a745c]
push esi
push dword [ebp - 0x48]
call fcn.6c3738f9
push dword [0x6c3a7458]
push esi
push dword [ebp - 0x50]
call fcn.6c3738f9
push dword [0x6c3a745c]
push esi
push dword [ebp - 0x54]
call fcn.6c3738f9
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp - 0x38]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, ebx
jne 0x6c378c0d
mov eax, dword [ebp - 0x1c]
add eax, 4
mov dword [ebp + 8], eax
cmp eax, 4
jae 0x6c378902
mov esi, 0x216
jmp 0x6c378c0d
cmp dword [ebp - 0x30], ebx
jne 0x6c37893a
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp - 0x50]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, ebx
jne 0x6c378c0d
mov eax, dword [ebp - 0x1c]
add eax, 4
mov dword [ebp - 0x44], eax
cmp eax, 4
jb 0x6c3788f8
jmp 0x6c37893d
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp - 0x48]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, ebx
jne 0x6c378c0d
mov edi, dword [ebp - 0x1c]
add edi, 4
mov dword [ebp - 0x84], edi
cmp edi, 4
jb 0x6c3788f8
cmp dword [ebp - 0x30], ebx
jne 0x6c3789ad
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp - 0x54]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, ebx
jne 0x6c378c0d
mov eax, dword [ebp - 0x1c]
add eax, 4
mov dword [ebp - 0x68], eax
cmp eax, 4
jb 0x6c3788f8
jmp 0x6c3789b0
mov dword [ebp - 0x68], edi
mov eax, dword [ebp - 0x4c]
add eax, edi
add eax, dword [ebp + 8]
push eax
push 0x23c
mov edi, 0x6c37276c
push edi
call fcn.6c375051
mov esi, dword [ebp + 0xc]
mov dword [esi + 0xc], eax
cmp eax, ebx
je 0x6c3784b5
cmp dword [ebp - 0x30], ebx
je 0x6c3789e1
mov dword [esi + 0x14], eax
jmp 0x6c378a03
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x68]
add eax, ecx
add eax, dword [ebp - 0x44]
push eax
push 0x246
push edi
call fcn.6c375051
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x6c3784b5
mov eax, dword [ebp - 0x28]
inc eax
push eax
push 0x24d
push edi
call fcn.6c375051
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x6c3784b5
mov esi, dword [esi + 0xc]
mov dword [ebp - 0x30], esi
mov eax, dword [ebp - 0x4c]
lea edi, [esi + eax]
mov eax, dword [ebp + 8]
lea ecx, [edi + eax]
mov dword [ebp - 0x40], ecx
add eax, 0xfffffffc
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp - 0x38]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, ebx
jne 0x6c378c0d
mov eax, dword [ebp - 0x84]
add eax, 0xfffffffc
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp - 0x48]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, ebx
jne 0x6c378c0d
mov esi, edi
cmp word [edi], bx
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
je 0x6c378ad2
push 0xa
push ebx
push esi
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
mov dword [ebp + 8], eax
cmp eax, ebx
jbe 0x6c378ac6
cmp eax, dword [ebp - 0x28]
ja 0x6c378ac6
push esi
call edi
lea esi, [esi + eax*2 + 2]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp + 8]
mov dword [ecx + eax*4], esi
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x18]
mov byte [eax + ecx], bl
push esi
call edi
lea esi, [esi + eax*2 + 2]
cmp word [esi], bx
jne 0x6c378a94
mov esi, dword [ebp - 0x40]
jmp 0x6c378b11
push 0xa
push ebx
push esi
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
mov dword [ebp + 8], eax
cmp eax, ebx
jbe 0x6c378b0a
cmp eax, dword [ebp - 0x28]
ja 0x6c378b0a
push esi
call edi
lea esi, [esi + eax*2 + 2]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp + 8]
mov dword [ecx + eax*4], esi
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x18]
mov byte [eax + ecx], 1
push esi
call edi
lea esi, [esi + eax*2 + 2]
cmp word [esi], bx
jne 0x6c378ad7
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 0x14]
mov dword [ebp - 0x30], edi
mov eax, dword [ebp - 0x4c]
add edi, eax
mov eax, dword [ebp - 0x44]
lea ecx, [edi + eax]
mov dword [ebp - 0x40], ecx
add eax, 0xfffffffc
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp - 0x50]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, ebx
jne 0x6c378c0d
mov eax, dword [ebp - 0x68]
add eax, 0xfffffffc
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp - 0x54]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, ebx
je 0x6c378bb7
jmp 0x6c378c0d
push 0xa
push ebx
push edi
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
mov dword [ebp + 8], eax
cmp eax, ebx
jbe 0x6c378bac
cmp eax, dword [ebp - 0x28]
ja 0x6c378bac
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2 + 2]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 8]
mov dword [eax + ecx*4], edi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2 + 2]
cmp word [edi], bx
jne 0x6c378b7f
mov edi, dword [ebp - 0x40]
jmp 0x6c378bf9
push 0xa
push ebx
push edi
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
mov dword [ebp + 8], eax
cmp eax, ebx
jbe 0x6c378bee
cmp eax, dword [ebp - 0x28]
ja 0x6c378bee
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2 + 2]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 8]
mov dword [eax + ecx*4], edi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2 + 2]
cmp word [edi], bx
jne 0x6c378bc1
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x1c], ecx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x78], eax
push dword [ebp - 0x58]
push 0x2b8
mov edi, 0x6c37276c
push edi
call fcn.6c3750c2
push dword [ebp - 0x38]
push 0x2b9
push edi
call fcn.6c3750c2
push dword [ebp - 0x70]
push 0x2ba
push edi
call fcn.6c3750c2
push dword [ebp - 0x74]
push 0x2bb
push edi
call fcn.6c3750c2
cmp dword [ebp - 0x34], ebx
je 0x6c378c5e
cmp dword [ebp - 0x34], 0xffffffff
je 0x6c378c5e
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
je 0x6c378c84
cmp eax, 0xffffffff
je 0x6c378c84
cmp eax, dword [ebp - 0x24]
je 0x6c378c84
cmp eax, 0x80000004
je 0x6c378c84
cmp eax, 0x80000050
je 0x6c378c84
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x6c378cac
cmp eax, 0xffffffff
je 0x6c378cac
cmp eax, 0x80000004
je 0x6c378cac
cmp eax, 0x80000060
je 0x6c378cac
cmp eax, 0x80000050
je 0x6c378cac
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
je 0x6c378cc6
cmp eax, 0xffffffff
je 0x6c378cc6
cmp eax, 0x80000002
je 0x6c378cc6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x6c378d14
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x6c378d14
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x6c378ce9
cmp eax, dword [esi + 0xc]
je 0x6c378ce9
push eax
push 0x2ce
push edi
call fcn.6c3750c2
push dword [esi + 0xc]
push 0x2d0
push edi
call fcn.6c3750c2
mov dword [esi + 0x14], ebx
mov dword [esi + 0xc], ebx
push dword [esi + 0x18]
push 0x2d3
push edi
call fcn.6c3750c2
mov dword [esi + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x78]
call fcn.6c37137d
ret 8