Function at 0x40e1c3
Capabilities:
Set registry value

Disassembly:
push 0x40
mov eax, 0x46265b
call fcn.00461432
mov dword [ebp - 0x44], ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test esi, esi
jne 0x40e1e6
xor eax, eax
jmp 0x40e412
xor edi, edi
lea ecx, [ebp - 0x40]
push eax
mov edx, str.URL:
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], edi
call fcn.004104e6
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x28]
mov edx, eax
mov dword [esp], str._Protocol
call fcn.0040b71c
pop ecx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0040a991
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
add eax, eax
push eax
push ecx
push 1
push edi
push 0x4764dc
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40e288
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xe4
push str.C:zoomcodeEP_2017Client_srcinstallwindowsIncludePBXProtocolInstaller.cpp
push 2
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.0040c17a
mov byte [ebp - 4], 3
mov edx, str.RegSetValueEx_fail_error_code:
push esi
push ecx
mov ecx, 0x48b250
call fcn.004102a0
pop ecx
mov ecx, eax
call fcn.00409ec1
lea ecx, [ebp - 0x44]
call fcn.0040c319
jmp 0x40e3ea
push edi
push 0x4764dc
push 1
push edi
push str.URL_Protocol
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40e2c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xeb
push str.C:zoomcodeEP_2017Client_srcinstallwindowsIncludePBXProtocolInstaller.cpp
push 2
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.0040c17a
mov byte [ebp - 4], 4
jmp 0x40e262
push edi
lea eax, [ebp - 0x48]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
push str.DefaultIcon
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40e30b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xf2
push str.C:zoomcodeEP_2017Client_srcinstallwindowsIncludePBXProtocolInstaller.cpp
push 2
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.0040c17a
mov byte [ebp - 4], 5
mov edx, str.RegCreateKeyEx_fail_error_code:
jmp 0x40e267
mov eax, dword [ebp - 0x44]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x40e318
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
add eax, eax
push eax
push ecx
push 1
push edi
push 0x4764dc
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40e359
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xf9
push str.C:zoomcodeEP_2017Client_srcinstallwindowsIncludePBXProtocolInstaller.cpp
push 2
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.0040c17a
mov byte [ebp - 4], 6
jmp 0x40e262
push edi
lea eax, [ebp - 0x4c]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
push str.shellopencommand
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40e39c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x100
push str.C:zoomcodeEP_2017Client_srcinstallwindowsIncludePBXProtocolInstaller.cpp
push 2
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.0040c17a
mov byte [ebp - 4], 7
jmp 0x40e301
cmp dword [ebx + 0x14], 8
mov ecx, ebx
jb 0x40e3a6
mov ecx, dword [ebx]
mov eax, dword [ebx + 0x10]
add eax, eax
push eax
push ecx
push 1
push edi
push 0x4764dc
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40e3e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x107
push str.C:zoomcodeEP_2017Client_srcinstallwindowsIncludePBXProtocolInstaller.cpp
push 2
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.0040c17a
mov byte [ebp - 4], 8
jmp 0x40e262
xor edi, edi
inc edi
lea ecx, [ebp - 0x28]
call fcn.0040a991
cmp dword [ebp - 0x48], 0
je 0x40e401
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x4c], 0
je 0x40e410
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.004613ed
ret 0x14