Function at 0x40e4d3
Capabilities:
Set registry value

Disassembly:
push 0x40
mov eax, 0x46535d
call fcn.00464112
mov dword [ebp - 0x44], ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test esi, esi
jne 0x40e4f6
xor eax, eax
jmp 0x40e722
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.00410630
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x28]
mov edx, eax
mov dword [esp], str._Protocol
call fcn.0040b9aa
pop ecx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0040ac61
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 0x47a6bc
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40e598
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xe4
push str.C:jenkinsworkspacezoomciWindows_releaseclient_srcinstallwindowsIncludePBXProtocolInstaller.cpp
push 2
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.0040c3fa
mov byte [ebp - 4], 3
mov edx, str.RegSetValueEx_fail_error_code:
push esi
push ecx
mov ecx, 0x490320
call fcn.004103ea
pop ecx
mov ecx, eax
call fcn.0040a1c0
lea ecx, [ebp - 0x44]
call fcn.0040c599
jmp 0x40e6fa
push edi
push 0x47a6bc
push 1
push edi
push str.URL_Protocol
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40e5d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xeb
push str.C:jenkinsworkspacezoomciWindows_releaseclient_srcinstallwindowsIncludePBXProtocolInstaller.cpp
push 2
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.0040c3fa
mov byte [ebp - 4], 4
jmp 0x40e572
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 0x40e61b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xf2
push str.C:jenkinsworkspacezoomciWindows_releaseclient_srcinstallwindowsIncludePBXProtocolInstaller.cpp
push 2
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.0040c3fa
mov byte [ebp - 4], 5
mov edx, str.RegCreateKeyEx_fail_error_code:
jmp 0x40e577
mov eax, dword [ebp - 0x44]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x40e628
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
add eax, eax
push eax
push ecx
push 1
push edi
push 0x47a6bc
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40e669
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xf9
push str.C:jenkinsworkspacezoomciWindows_releaseclient_srcinstallwindowsIncludePBXProtocolInstaller.cpp
push 2
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.0040c3fa
mov byte [ebp - 4], 6
jmp 0x40e572
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 0x40e6ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x100
push str.C:jenkinsworkspacezoomciWindows_releaseclient_srcinstallwindowsIncludePBXProtocolInstaller.cpp
push 2
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.0040c3fa
mov byte [ebp - 4], 7
jmp 0x40e611
cmp dword [ebx + 0x14], 8
mov ecx, ebx
jb 0x40e6b6
mov ecx, dword [ebx]
mov eax, dword [ebx + 0x10]
add eax, eax
push eax
push ecx
push 1
push edi
push 0x47a6bc
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40e6f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x107
push str.C:jenkinsworkspacezoomciWindows_releaseclient_srcinstallwindowsIncludePBXProtocolInstaller.cpp
push 2
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.0040c3fa
mov byte [ebp - 4], 8
jmp 0x40e572
xor edi, edi
inc edi
lea ecx, [ebp - 0x28]
call fcn.0040ac61
cmp dword [ebp - 0x48], 0
je 0x40e711
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x4c], 0
je 0x40e720
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.004640cd
ret 0x14