Function at 0x1002b3eb
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101671b1
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x1020f334]
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 dword [ebp - 0x58], edx
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x54], eax
mov eax, dword [0x10219948]
test eax, eax
je 0x1002b434
cmp eax, 2
sete al
jmp 0x1002b43e
cmp byte [0x10219210], 0
setne al
test al, al
jne 0x1002b8f7
cmp dword [0x10219438], 0
jne 0x1002b8f7
mov dl, 1
call fcn.1002bc2e
test al, al
jne 0x1002b8f7
xor eax, eax
push ecx
mov esi, eax
mov dword [ebp - 0x5c], eax
push 0x102176d8
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x6c], eax
call fcn.1000d9b0
mov edi, dword [ebp - 0x54]
xor edx, edx
mov ecx, dword [ebp - 0x5c]
mov eax, edx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x64], eax
jmp 0x1002b494
xor edx, edx
cmp eax, 4
jge 0x1002b579
push ecx
push dword [ebx + 0x18]
lea eax, [ebp - 0x60]
mov byte [ebp - 0x4d], dl
push edx
mov edx, dword [ebx + 0x10]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x70], eax
call fcn.1002a7a4
push eax
lea ecx, [ebp - 0x74]
call fcn.1002ce6d
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x1002b4d6
and dword [ebp - 0x78], 0
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x54]
test edi, edi
jne 0x1002b565
mov eax, dword [ebp - 0x60]
lea ecx, [ebp - 0x5c]
push ecx
xor edx, edx
lea ecx, [ebp - 0x6c]
push edx
push ecx
push edx
push dword [ebx]
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov dword [ebp - 0x54], edi
test edi, edi
jne 0x1002b541
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
je 0x1002b568
push ecx
lea ecx, [ebp - 0x68]
call fcn.10005282
mov esi, dword [ebp - 0x68]
test al, al
jne 0x1002b523
push 8
pop edi
mov dword [ebp - 0x54], edi
jmp 0x1002b565
mov eax, dword [ebp - 0x60]
lea ecx, [ebp - 0x5c]
push ecx
push esi
lea ecx, [ebp - 0x6c]
push ecx
push 0
push dword [ebx]
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov dword [ebp - 0x54], edi
cmp edi, 0x3f2
je 0x1002b556
cmp edi, 0x3fa
je 0x1002b556
cmp edi, 6
jne 0x1002b565
mov ecx, dword [ebx + 0x10]
call fcn.1002a636
mov edi, dword [ebp - 0x54]
mov byte [ebp - 0x4d], 1
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x64]
inc eax
cmp byte [ebp - 0x4d], 0
mov dword [ebp - 0x64], eax
jne 0x1002b492
mov edx, dword [ebp + 8]
test edi, edi
jne 0x1002b766
test esi, esi
je 0x1002b766
movzx eax, word [ebx + 0x14]
and eax, 0xf
cmp dword [ebp - 0x6c], eax
jne 0x1002b5e5
dec eax
cmp eax, 1
ja 0x1002b73c
shr ecx, 1
xor eax, eax
cmp word [esi + ecx*2 - 2], ax
jne 0x1002b5e5
mov ecx, dword [ebp - 0x58]
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1002b5d8
test dx, dx
je 0x1002b5d4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1002b5d8
add eax, 4
add ecx, 4
test dx, dx
jne 0x1002b5b2
xor eax, eax
jmp 0x1002b5dd
sbb eax, eax
or eax, 1
test eax, eax
je 0x1002b8cb
mov esi, dword [ebp - 0x58]
xor ecx, ecx
mov eax, ecx
mov dword [ebp - 0x64], eax
cmp eax, 4
jge 0x1002b8c8
mov edx, dword [ebx + 0x10]
lea eax, [ebp - 0x60]
push ecx
push dword [ebx + 0x18]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x54]
push 4
mov byte [ebp - 0x4d], cl
push ecx
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
call fcn.1002a7a4
push eax
lea ecx, [ebp - 0x7c]
call fcn.1002ce6d
mov ecx, dword [ebp - 0x70]
test ecx, ecx
je 0x1002b633
xor eax, eax
mov dword [ebp - 0x70], eax
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x54]
test edi, edi
jne 0x1002b7fd
mov eax, dword [ebp - 0x60]
push dword [ebp + 8]
push esi
mov ecx, dword [eax + 8]
movzx eax, word [ebx + 0x14]
and eax, 0xf
push eax
xor eax, eax
push eax
push dword [ebx]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov dword [ebp - 0x54], edi
cmp edi, 0x3f2
je 0x1002b7ec
cmp edi, 0x3fa
je 0x1002b7ec
cmp edi, 6
je 0x1002b7ec
test edi, edi
je 0x1002b8b4
mov edx, dword [ebx + 0x10]
lea ecx, [ebp - 0x4c]
xor eax, eax
mov dword [ebp - 0x8c], 0x1019a90c
mov word [ebp - 0x80], ax
mov eax, dword [ebx]
mov dword [ebp - 0x94], eax
xor eax, eax
mov byte [ebp - 0x58], al
push dword [ebp - 0x58]
mov dword [ebp - 0x88], str.Win32ErrorCode
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x9c], 0x101971c0
mov dword [ebp - 0x98], str.RegistryValueName
mov word [ebp - 0x90], ax
call fcn.10029e68
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x34], 0x101971b0
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], str.KeyPath
call fcn.100092b6
xor eax, eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x34]
push eax
push str.Failed_to_write_registry_value.
push ecx
mov ecx, 0x16928cc
call fcn.1002ce9c
lea ecx, [ebp - 0x2c]
call fcn.1000860f
lea ecx, [ebp - 0x4c]
call fcn.1000860f
mov edx, str.OrapiWriteFail:_RegSetValueExW
jmp 0x1002b8a9
cmp ecx, edx
jne 0x1002b5e5
mov eax, dword [ebp - 0x58]
push ecx
push eax
push esi
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x1002b5e5
xor eax, eax
mov edi, eax
mov dword [ebp - 0x54], edi
jmp 0x1002b8cd
mov ecx, dword [ebx + 8]
cmp ecx, 0xcccccccc
je 0x1002b5e5
movzx eax, word [ebx + 0x14]
and eax, 0xf
jbe 0x1002b7df
cmp eax, 2
jbe 0x1002b7c5
cmp eax, 4
je 0x1002b7ac
cmp eax, 0xb
jne 0x1002b7df
cmp edx, 8
jne 0x1002b917
mov ecx, dword [ebp - 0x58]
mov eax, dword [ecx]
cmp eax, dword [ebx + 8]
jne 0x1002b5e5
mov eax, dword [ecx + 4]
cmp eax, dword [ebx + 0xc]
jmp 0x1002b754
cmp edx, 4
je 0x1002b7be
xor eax, eax
push eax
push 0x59948e
jmp 0x1002b91f
mov eax, dword [ebp - 0x58]
cmp dword [eax], ecx
jmp 0x1002b754
cmp edx, 2
jae 0x1002b7d7
xor eax, eax
push eax
push 0x59948d
jmp 0x1002b91f
cmp ecx, dword [ebp - 0x58]
jmp 0x1002b754
xor eax, eax
push eax
push 0x599491
jmp 0x1002b91f
mov ecx, dword [ebx + 0x10]
call fcn.1002a636
mov byte [ebp - 0x4d], 1
jmp 0x1002b8b1
mov eax, dword [ebx + 0x10]
lea ecx, [ebp - 0x4c]
push dword [eax]
call fcn.10009449
xor eax, eax
mov dword [ebp - 0xac], 0x1019a90c
mov word [ebp - 0xa0], ax
lea ecx, [ebp - 0x2c]
mov eax, dword [ebx]
mov dword [ebp - 0xb4], eax
xor eax, eax
mov word [ebp - 0xb0], ax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0xa8], str.Win32ErrorCode
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xbc], 0x101971c0
mov dword [ebp - 0xb8], str.RegistryValueName
mov dword [ebp - 0x34], 0x101971b0
mov dword [ebp - 0x30], str.KeyName
call fcn.100092b6
xor eax, eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0x34]
push eax
push str.Failed_to_open_registry_key.
push ecx
mov ecx, 0x16928cd
call fcn.1002ce9c
lea ecx, [ebp - 0x2c]
call fcn.1000860f
lea ecx, [ebp - 0x4c]
call fcn.1000860f
mov edx, str.OrapiWriteFail:_TryOpenKey_in_WriteValue
mov ecx, dword [ebp - 0x54]
call fcn.1002b3c3
mov edi, dword [ebp - 0x54]
mov eax, dword [ebp - 0x64]
inc eax
cmp byte [ebp - 0x4d], 0
push 0
mov dword [ebp - 0x64], eax
pop ecx
jne 0x1002b5ef
mov esi, dword [ebp - 0x68]
xor eax, eax
mov ecx, dword [ebp - 0x60]
test ecx, ecx
je 0x1002b8dc
mov dword [ebp - 0x60], eax
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0xc8]
call fcn.1000d98e
test esi, esi
je 0x1002b8f3
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov eax, edi
jmp 0x1002b8f9
xor eax, eax
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.100042bb
mov esp, ebp
pop ebp
ret 4
xor eax, eax
push eax
push 0x59948f
call fcn.10007fcb
int3