Function at 0x67fc26
Capabilities:
Set registry value

Disassembly:
push 0x14
mov eax, 0x6a1b68
call fcn.0049be25
mov dword [ebp - 0x18], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
cmp dword [ebp + 0x14], ebx
jne 0x67fc49
mov dword [ebp + 0x14], reloc.OLEAUT32.dll_SysReAllocString
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push esi
call fcn.004514db
push esi
push str.writeValue:_Value_Data:__s
mov byte [ebp - 4], 1
call fcn.006778de
mov edi, dword [ebp + 0x10]
pop ecx
pop ecx
cmp edi, 4
jne 0x67fc87
push esi
call fcn.0051427b
push edi
push str.writeValue:__REG_DWORD____sizeOfInputData:__d
mov dword [ebp - 0x20], eax
call fcn.006778de
add esp, 0xc
jmp 0x67fcda
cmp edi, 1
je 0x67fcb8
cmp edi, 2
je 0x67fcb8
cmp edi, 3
je 0x67fcb8
cmp edi, 7
jne 0x67fcda
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x67fc9e
sub esi, ecx
sar esi, 1
lea eax, [esi + 1]
push eax
push str.writeValue:__Data_type_is_REG_MULTI_SZ:__d
jmp 0x67fcd3
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x67fcbb
sub esi, ecx
sar esi, 1
lea eax, [esi + 1]
push eax
push str.writeValue:__Data_type_is_REG_SZ_or_REG_EXPAND_SZ_or_REG_BINARY:__d
call fcn.006778de
pop ecx
pop ecx
mov eax, dword [ebp - 0x10]
mov dl, bl
mov ecx, ebx
mov esi, dword [eax - 0xc]
test esi, esi
jle 0x67fd2d
add ecx, ecx
mov dword [ebp - 0x1c], ecx
cmp word [ecx + eax], 0xa
jne 0x67fd11
test dl, dl
jne 0x67fd0b
push esi
lea ecx, [ebp - 0x10]
mov byte [ebp + 0xf], 1
call fcn.00451c69
mov dl, byte [ebp + 0xf]
mov ecx, dword [ebp - 0x1c]
xor edi, edi
mov word [ecx + eax], di
add ecx, 2
sar ecx, 1
cmp ecx, esi
jl 0x67fce8
mov edi, dword [ebp + 0x10]
test dl, dl
je 0x67fd2a
push esi
lea ecx, [ebp - 0x10]
call fcn.00451c41
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
mov eax, dword [eax - 0xc]
push ebx
mov dword [ebp + 0x10], eax
lea ecx, [esi + 4]
call fcn.00451c69
push eax
push dword [ebp + 0x14]
mov ecx, esi
call fcn.0067f812
mov esi, eax
test esi, esi
je 0x67fd5b
push esi
push str.writeValue:__WriteValue_failure_during_key_creation___d
jmp 0x67fe1a
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push ecx
cmp dword [eax + 0x10], ebx
je 0x67fd6e
push 0xf013f
jmp 0x67fd73
push 0xf003f
push ebx
push dword [eax + 4]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x67fe14
push ebx
push str.writeValue:__Key_found_..._:__d
call fcn.006778de
push str.writeValue:__After_addRegistryKey_method_in_writeValue_method__
call fcn.006778de
add esp, 0xc
cmp edi, 4
jne 0x67fdb5
mov eax, dword [ebp - 0x20]
mov dword [ebp + 0x14], eax
lea eax, [ebp + 0x14]
push edi
push eax
push edi
jmp 0x67fdc6
push ebx
lea ecx, [ebp - 0x10]
call fcn.00451c69
mov ecx, dword [ebp + 0x10]
add ecx, ecx
push ecx
push eax
push edi
push ebx
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jne 0x67fdfc
push ebx
push str.Error_while_set_reg_value_:__d
call fcn.006778de
pop ecx
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str._________End_Of_writeValue_Method_________
call fcn.006778de
pop ecx
jmp 0x67fe23
push esi
push str.writeValue:__Function_WriteValue_failure_:_d
call fcn.006778de
pop ecx
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x67fe21
push esi
push str.writeValue:__Key_open_failure___d
call fcn.006778de
pop ecx
pop ecx
mov ebx, esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0044ec01
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0044ec01
mov eax, ebx
call fcn.0049bdee
ret 0x10