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

Disassembly:
push 0x164
mov eax, 0x4628f7
call fcn.00461432
mov dword [ebp - 0x158], ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x168]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
push 0x216
mov dword [ebp - 0x160], eax
xor eax, eax
push str.C:zoomcodeEP_2017Client_srcinstallwindowsIncludePBXProtocolInstaller.cpp
push eax
mov dword [ebp - 0x164], eax
call fcn.0040c17a
and dword [ebp - 4], 0
mov edx, str.Start_ResetDefaultProtocolHandler...
mov ecx, 0x48b250
call fcn.004102a0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x168]
call fcn.0040c319
push esi
mov edx, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociations_
lea ecx, [ebp - 0x154]
call fcn.004104e6
xor esi, esi
lea ecx, [ebp - 0x13c]
inc esi
mov edx, eax
mov dword [ebp - 4], esi
mov dword [esp], str.UserChoice
call fcn.0040b71c
pop ecx
push esi
push edi
push ebx
push eax
mov byte [ebp - 4], 2
call fcn.0040fd8c
lea ecx, [ebp - 0x13c]
mov esi, eax
call fcn.0040a991
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x154]
call fcn.0040a991
test esi, esi
je 0x40f389
xor eax, eax
mov dword [ebp - 0x110], 7
mov edi, 0x4764dc
mov word [ebp - 0x124], ax
xor ebx, ebx
lea ecx, [ebp - 0x124]
push edi
mov dword [ebp - 0x114], ebx
call fcn.0040aa0b
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x10c]
xor eax, eax
mov dword [ebp - 0xfc], ebx
push str.Progid
mov dword [ebp - 0xf8], 7
mov word [ebp - 0x10c], ax
call fcn.0040aa0b
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xf4]
xor eax, eax
mov dword [ebp - 0xe4], ebx
push edi
mov dword [ebp - 0xe0], 7
mov word [ebp - 0xf4], ax
call fcn.0040aa0b
push 1
push ecx
mov ecx, dword [ebp - 0x158]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0xf4]
mov byte [ebp - 4], 5
push eax
push esi
call fcn.0040fe5a
neg eax
push 8
sbb al, al
inc al
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0xe0]
pop edi
cmp eax, edi
jb 0x40f220
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0xf4]
call fcn.004031ab
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0xe4], ebx
mov word [ebp - 0xf4], ax
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0xe0], 7
cmp eax, edi
jb 0x40f258
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x10c]
call fcn.004031ab
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
xor eax, eax
mov word [ebp - 0x10c], ax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0xfc], ebx
mov dword [ebp - 0xf8], 7
cmp eax, edi
jb 0x40f294
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x124]
call fcn.004031ab
pop ecx
pop ecx
cmp byte [ebp - 0x158], 0
jne 0x40f382
push 0xc8
lea eax, [ebp - 0xdc]
mov dword [ebp - 0x15c], ebx
push ebx
push eax
call fcn.0045a980
add esp, 0xc
mov dword [ebp - 0x16c], 0xc6
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x15c]
push eax
push ebx
push str.Progid
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f30b
cmp dword [ebp - 0x15c], 1
jne 0x40f30b
mov ecx, dword [ebp - 0x160]
lea eax, [ebp - 0xdc]
push eax
call fcn.00410178
test eax, eax
je 0x40f382
mov eax, dword [ebp - 0x160]
mov ecx, eax
cmp dword [eax + 0x14], edi
jb 0x40f31a
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
add eax, eax
push eax
push ecx
push 1
push ebx
push str.Progid
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x40f378
push 0x230
push str.C:zoomcodeEP_2017Client_srcinstallwindowsIncludePBXProtocolInstaller.cpp
push 2
lea ecx, [ebp - 0x170]
call fcn.0040c17a
push edi
push ecx
mov edx, str.RegSetValueEx_fail_error_code:
mov dword [ebp - 4], 6
mov ecx, 0x48b250
call fcn.004102a0
pop ecx
mov ecx, eax
call fcn.00409fbf
lea ecx, [ebp - 0x170]
call fcn.0040c319
mov dword [ebp - 0x164], 1
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x164]
call fcn.004613ed
ret 0x10