Function at 0x6e90da20
Capabilities:
Query or enumerate registry value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
mov eax, ecx
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x68
mov edx, dword [ecx]
mov ebx, dword [eax + 0xc]
test byte [0x6e928bf8], 8
mov dword [ebp - 0x30], edx
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x34], edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x3c], eax
jne 0x6e90dc08
mov eax, dword [ebp - 0x2c]
test bl, 1
mov dword [eax], 0
je 0x6e90db18
mov eax, dword [ebp - 0x30]
mov esi, dword [eax]
mov eax, dword [ebp - 0x34]
mov edx, esi
call fcn.6e90c3d0
xor ecx, ecx
mov edx, 0x20019
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp], 0x80000002
mov edi, eax
mov dword [esp + 4], edi
lea eax, [ebp - 0x24]
mov dword [esp + 0x10], eax
call sub.advapi32.dll_RegOpenKeyExA
sub esp, 0x14
test eax, eax
mov ebx, eax
je 0x6e90dc68
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], ebx
xor ebx, ebx
mov dword [esp], edi
call sym.crypt32.dll_CryptMemFree
sub esp, 4
test byte [0x6e928bf8], 8
je 0x6e90dbf4
mov ecx, 0x6e928bf8
mov eax, 0x6e931482
mov dword [esp + 0x10], ebx
mov edx, str.CryptGetOIDFunctionAddress
mov dword [esp + 4], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp], 3
call fcn.6e90be90
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x18
mov dword [ebp - 0x38], ecx
mov edi, dword [ebp - 0x30]
lea eax, [edi + 4]
mov dword [esp], eax
lea esi, [edi + 0x1c]
mov dword [ebp - 0x40], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x38]
mov eax, dword [edi + 0x1c]
movzx edi, word [ebp - 0x34]
mov edx, ecx
shr edx, 0x10
lea ebx, [eax - 0x10]
sub esp, 4
cmp esi, eax
je 0x6e90dbc3
mov dword [ebp - 0x38], ecx
jmp 0x6e90db5a
mov eax, dword [ebx + 0x10]
lea ebx, [eax - 0x10]
cmp esi, eax
je 0x6e90dbc0
cmp dword [ebx + 4], edi
jne 0x6e90db50
test edx, edx
mov eax, dword [ebx + 8]
je 0x6e90dba8
mov ecx, eax
shr ecx, 0x10
je 0x6e90db50
mov dword [ebp - 0x44], edx
mov edx, dword [ebp - 0x38]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.ucrtbase.dll__stricmp]
mov edx, dword [ebp - 0x44]
test eax, eax
jne 0x6e90db50
mov eax, dword [ebx + 0xc]
mov ebx, 1
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x38]
mov dword [esi], eax
mov eax, dword [ebp - 0x3c]
mov dword [eax], 0
jmp 0x6e90dbc5
cmp dword [ebp - 0x38], eax
je 0x6e90db87
mov eax, dword [ebx + 0x10]
lea ebx, [eax - 0x10]
cmp esi, eax
jne 0x6e90db5a
mov esi, esi
lea edi, [edi]
mov ecx, dword [ebp - 0x38]
xor ebx, ebx
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x38]
mov eax, dword [eax]
sub esp, 4
test eax, eax
je 0x6e90da72
test byte [0x6e928bf8], 8
jne 0x6e90dad9
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x18
mov dword [ebp - 0x38], ecx
mov eax, ecx
mov edi, str.CryptGetOIDFunctionAddress
call fcn.6e90bf80
mov esi, dword [ebp - 0x3c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 8], edi
mov dword [esp], 3
mov dword [esp + 0x24], esi
mov esi, dword [ebp - 0x2c]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x20], esi
mov esi, str.__p___d___s___08x___p___p__n
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x10], eax
mov eax, 0x6e928bf8
mov dword [esp + 4], eax
call fcn.6e90be90
mov ecx, dword [ebp - 0x38]
jmp 0x6e90da60
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
mov dword [esp + 0x14], eax
lea edx, [ebp - 0x20]
xor eax, eax
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, 0x6e931479
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0xc], edx
mov dword [esp], eax
call sub.advapi32.dll_RegQueryValueExA
lea edx, [ebp - 0x20]
sub esp, 0x18
test eax, eax
je 0x6e90dd21
mov dword [ebp - 0x30], esi
cmp eax, 0xea
je 0x6e90dd21
mov dword [esp + 0xc], edx
lea eax, [ebp - 0x1c]
mov edx, 0x6e931260
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.advapi32.dll_RegQueryValueExW
sub esp, 0x18
test eax, eax
je 0x6e90dd72
cmp eax, 0xea
je 0x6e90dd72
mov edx, dword fs:[0x18]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 0x30]
cmp esi, eax
je 0x6e90dd0e
mov dword [esp], eax
call sym.crypt32.dll_CryptMemFree
sub esp, 4
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
sub esp, 4
jmp 0x6e90dac1
cmp dword [ebp - 0x20], 1
mov dword [ebp - 0x30], esi
jne 0x6e90dcb1
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym.crypt32.dll_CryptMemAlloc
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x30], eax
sub esp, 4
mov dword [esp + 0x10], eax
mov eax, 0x6e931479
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp], eax
call sub.advapi32.dll_RegQueryValueExA
lea edx, [ebp - 0x20]
sub esp, 0x18
jmp 0x6e90dcb1
cmp dword [ebp - 0x20], 1
jne 0x6e90dcf2
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym.crypt32.dll_CryptMemAlloc
mov dword [ebp - 0x34], eax
sub esp, 4
test eax, eax
je 0x6e90dcfc
mov dword [esp + 0x10], eax
lea ecx, [ebp - 0x1c]
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, 0x6e931260
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x14], ecx
mov dword [esp], eax
call sub.advapi32.dll_RegQueryValueExW
sub esp, 0x18
test eax, eax
je 0x6e90dde4
mov edx, dword fs:[0x18]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call sym.crypt32.dll_CryptMemFree
sub esp, 4
jmp 0x6e90dcfc
mov eax, dword [ebp - 0x34]
xor ebx, ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
mov edx, eax
je 0x6e90ddd1
mov dword [esp], edx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], edx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov edx, dword [ebp - 0x38]
push ecx
test eax, eax
push ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
je 0x6e90de4f
mov dword [esp], 0xc
mov dword [ebp - 0x2c], edx
call sym.crypt32.dll_CryptMemAlloc
push edx
test eax, eax
mov edx, dword [ebp - 0x2c]
je 0x6e90de5e
mov dword [eax], edx
mov ecx, dword [ebp - 0x3c]
mov ebx, 1
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [ecx], eax
jmp 0x6e90ddd1
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_FreeLibrary]
push eax
jmp 0x6e90ddd1
mov eax, dword [ebp - 0x3c]
mov dword [eax], 0
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_FreeLibrary]
push eax
jmp 0x6e90ddd1