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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x697e42
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x816078]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x80], edi
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x70], eax
cmp byte [0x82951d], al
jne 0x435e0d
cmp dword [0x829518], eax
jne 0x435e0d
mov dl, 1
call fcn.004364bd
test al, al
jne 0x435e0d
xor eax, eax
push ecx
mov esi, eax
mov dword [ebp - 0x7c], eax
push 0x829ab8
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x94], eax
call fcn.00422bbb
mov edx, dword [ebx + 0x10]
lea eax, [ebp - 0x78]
xor ecx, ecx
mov dword [ebp - 0x8c], eax
push ecx
push dword [ebx + 0x18]
mov dword [ebp - 0x78], ecx
lea eax, [ebp - 0x70]
push ecx
push ecx
lea ecx, [ebp - 0xa0]
mov byte [ebp - 0x74], 1
mov dword [ebp - 0x88], eax
call fcn.00434ef7
push eax
lea ecx, [ebp - 0x8c]
call fcn.00437595
lea ecx, [ebp - 0x9c]
call fcn.00438188
cmp dword [ebp - 0x70], esi
jne 0x435b88
lea eax, [ebp - 0x7c]
xor ecx, ecx
push eax
push ecx
lea eax, [ebp - 0x94]
push eax
push ecx
push dword [ebx]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov dword [ebp - 0x70], edi
test edi, edi
jne 0x435a2d
mov ecx, dword [ebp - 0x7c]
test ecx, ecx
je 0x435ae6
push ecx
lea ecx, [ebp - 0x84]
call fcn.004319a9
mov esi, dword [ebp - 0x84]
test al, al
je 0x435add
lea eax, [ebp - 0x7c]
push eax
push esi
lea eax, [ebp - 0x94]
push eax
xor eax, eax
push eax
push dword [ebx]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov dword [ebp - 0x70], edi
cmp edi, 0x3f2
je 0x435a46
cmp edi, 0x3fa
je 0x435a46
cmp edi, 6
jne 0x435ae3
mov eax, dword [ebx + 0x10]
xor ecx, ecx
movzx eax, word [eax + 6]
and eax, 0x1f
shl eax, 4
mov dword [eax + 0x816b40], ecx
cmp byte [ebp - 0x74], cl
je 0x435a6e
cmp dword [ebp - 0x78], ecx
je 0x435a6e
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0xb8]
call fcn.00422b96
push ecx
push 0x829ab8
lea ecx, [ebp - 0xb8]
call fcn.00422bbb
mov edx, dword [ebx + 0x10]
lea eax, [ebp - 0x78]
xor ecx, ecx
mov dword [ebp - 0x8c], eax
push ecx
push dword [ebx + 0x18]
mov dword [ebp - 0x78], ecx
lea eax, [ebp - 0x70]
push ecx
push ecx
lea ecx, [ebp - 0xa0]
mov byte [ebp - 0x74], 1
mov dword [ebp - 0x88], eax
call fcn.00434ef7
push eax
lea ecx, [ebp - 0x8c]
call fcn.00437595
lea ecx, [ebp - 0x9c]
call fcn.00438188
mov edi, dword [ebp - 0x70]
test edi, edi
je 0x4359c6
jmp 0x435ae3
push 8
pop edi
mov dword [ebp - 0x70], edi
mov ecx, dword [ebp - 0x7c]
test edi, edi
jne 0x435b85
test esi, esi
je 0x435b85
movzx eax, word [ebx + 0x14]
and eax, 0xf
cmp dword [ebp - 0x94], eax
jne 0x435c56
dec eax
cmp eax, 1
ja 0x435b5b
shr ecx, 1
xor eax, eax
cmp word [esi + ecx*2 - 2], ax
jne 0x435c56
mov ecx, dword [ebp - 0x80]
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x435b49
test dx, dx
je 0x435b45
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x435b49
add eax, 4
add ecx, 4
test dx, dx
jne 0x435b23
xor eax, eax
jmp 0x435b4e
sbb eax, eax
or eax, 1
test eax, eax
je 0x435d32
jmp 0x435c56
cmp ecx, dword [ebp + 8]
jne 0x435c56
push ecx
push dword [ebp - 0x80]
push esi
call fcn.0064f9ea
add esp, 0xc
test eax, eax
jne 0x435c56
xor eax, eax
mov edi, eax
mov dword [ebp - 0x70], edi
jmp 0x435d32
mov edi, dword [ebp - 0x80]
mov ecx, dword [ebx + 8]
cmp ecx, 0xcccccccc
je 0x435c56
movzx eax, word [ebx + 0x14]
and eax, 0xf
jbe 0x435bfa
cmp eax, 2
jbe 0x435be0
cmp eax, 4
je 0x435bc9
cmp eax, 0xb
jne 0x435bfa
cmp dword [ebp + 8], 8
jne 0x435e2d
cmp dword [edi], ecx
jne 0x435c56
mov eax, dword [edi + 4]
cmp eax, dword [ebx + 0xc]
jmp 0x435b73
cmp dword [ebp + 8], 4
je 0x435bdc
xor eax, eax
push eax
push 0x59948e
jmp 0x435e35
cmp dword [edi], ecx
jmp 0x435b73
cmp dword [ebp + 8], 2
jae 0x435bf3
xor eax, eax
push eax
push 0x59948d
jmp 0x435e35
cmp ecx, edi
jmp 0x435b73
xor eax, eax
push eax
push 0x599491
jmp 0x435e35
push dword [ebp + 8]
movzx eax, word [ebx + 0x14]
push dword [ebp - 0x80]
and eax, 0xf
push eax
xor eax, eax
push eax
push dword [ebx]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov dword [ebp - 0x70], edi
cmp edi, 0x3f2
je 0x435c41
cmp edi, 0x3fa
je 0x435c41
cmp edi, 6
jne 0x435d64
mov eax, dword [ebx + 0x10]
movzx eax, word [eax + 6]
and eax, 0x1f
shl eax, 4
xor ecx, ecx
mov dword [eax + 0x816b40], ecx
mov edx, dword [ebx + 0x10]
lea eax, [ebp - 0x78]
push ecx
push dword [ebx + 0x18]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x70]
push 4
push ecx
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x88], eax
call fcn.00434ef7
push eax
lea ecx, [ebp - 0x8c]
call fcn.00437595
lea ecx, [ebp - 0x9c]
call fcn.00438188
mov edi, dword [ebp - 0x70]
test edi, edi
je 0x435c07
mov eax, dword [ebx + 0x10]
lea ecx, [ebp - 0x44]
push dword [eax]
call fcn.0040d412
mov eax, dword [ebx]
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0xac], 0x6dbe44
mov dword [ebp - 0xa8], str.Win32ErrorCode
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0x20], vtable.Mso::Logging::StructuredObject_wchar_t_const___1_.0
mov dword [ebp - 0x1c], str.RegistryValueName
mov dword [ebp - 0x6c], vtable.Mso::Logging::StructuredObject_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____0_.0
mov dword [ebp - 0x68], str.KeyName
call fcn.0040d3df
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x6c]
push eax
push str.Failed_to_open_registry_key.
push ecx
mov ecx, 0x16928cd
call fcn.004375cd
lea ecx, [ebp - 0x64]
call fcn.0040d475
lea ecx, [ebp - 0x44]
call fcn.0040d475
mov edx, str.OrapiWriteFail:_TryOpenKey_in_WriteValue
mov ecx, dword [ebp - 0x70]
call fcn.004358ca
mov edi, dword [ebp - 0x70]
cmp byte [ebp - 0x74], 0
je 0x435d47
cmp dword [ebp - 0x78], 0
je 0x435d47
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0xb8]
call fcn.00422b96
test esi, esi
je 0x435d5d
push esi
call fcn.0064e37d
pop ecx
mov eax, edi
jmp 0x435e0f
test edi, edi
je 0x435d32
mov eax, dword [ebx]
lea ecx, [ebp - 0x2c]
mov edx, dword [ebx + 0x10]
mov dword [ebp - 0x88], eax
xor eax, eax
mov byte [ebp - 0x84], al
push dword [ebp - 0x84]
mov dword [ebp - 0xa0], 0x6dbe44
mov dword [ebp - 0x9c], str.Win32ErrorCode
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x90], vtable.Mso::Logging::StructuredObject_wchar_t_const___1_.0
mov dword [ebp - 0x8c], str.RegistryValueName
call fcn.004346af
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x4c], vtable.Mso::Logging::StructuredObject_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____0_.0
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x48], str.KeyPath
call fcn.0040d3df
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x4c]
push eax
push str.Failed_to_write_registry_value.
push ecx
mov ecx, 0x16928cc
call fcn.004375cd
lea ecx, [ebp - 0x44]
call fcn.0040d475
lea ecx, [ebp - 0x2c]
call fcn.0040d475
mov edx, str.OrapiWriteFail:_RegSetValueExW
jmp 0x435d27
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 - 0x14]
xor ecx, ebp
call fcn.0064c681
mov esp, ebp
pop ebp
ret 4
xor eax, eax
push eax
push 0x59948f
call fcn.00422704
int3