Function at 0x40e533
Capabilities:
Set registry value

Disassembly:
push 0x40
mov eax, 0x465bcd
call fcn.00464982
mov dword [ebp - 0x44], ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test esi, esi
jne 0x40e556
xor eax, eax
jmp 0x40e782
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.00410690
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x28]
mov edx, eax
mov dword [esp], str._Protocol
call fcn.0040ba0a
pop ecx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0040acc1
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 0x47a6ec
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40e5f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xe4
push str.c:jenkinsworkspaceClientClientWindows_releaseclient_srcinstallwindowsIncludePBXProtocolInstaller.cpp
push 2
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.0040c45a
mov byte [ebp - 4], 3
mov edx, str.RegSetValueEx_fail_error_code:
push esi
push ecx
mov ecx, 0x490340
call fcn.0041044a
pop ecx
mov ecx, eax
call fcn.0040a220
lea ecx, [ebp - 0x44]
call fcn.0040c5f9
jmp 0x40e75a
push edi
push 0x47a6ec
push 1
push edi
push str.URL_Protocol
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40e633
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xeb
push str.c:jenkinsworkspaceClientClientWindows_releaseclient_srcinstallwindowsIncludePBXProtocolInstaller.cpp
push 2
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.0040c45a
mov byte [ebp - 4], 4
jmp 0x40e5d2
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 0x40e67b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xf2
push str.c:jenkinsworkspaceClientClientWindows_releaseclient_srcinstallwindowsIncludePBXProtocolInstaller.cpp
push 2
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.0040c45a
mov byte [ebp - 4], 5
mov edx, str.RegCreateKeyEx_fail_error_code:
jmp 0x40e5d7
mov eax, dword [ebp - 0x44]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x40e688
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
add eax, eax
push eax
push ecx
push 1
push edi
push 0x47a6ec
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40e6c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xf9
push str.c:jenkinsworkspaceClientClientWindows_releaseclient_srcinstallwindowsIncludePBXProtocolInstaller.cpp
push 2
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.0040c45a
mov byte [ebp - 4], 6
jmp 0x40e5d2
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 0x40e70c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x100
push str.c:jenkinsworkspaceClientClientWindows_releaseclient_srcinstallwindowsIncludePBXProtocolInstaller.cpp
push 2
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.0040c45a
mov byte [ebp - 4], 7
jmp 0x40e671
cmp dword [ebx + 0x14], 8
mov ecx, ebx
jb 0x40e716
mov ecx, dword [ebx]
mov eax, dword [ebx + 0x10]
add eax, eax
push eax
push ecx
push 1
push edi
push 0x47a6ec
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40e757
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x107
push str.c:jenkinsworkspaceClientClientWindows_releaseclient_srcinstallwindowsIncludePBXProtocolInstaller.cpp
push 2
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.0040c45a
mov byte [ebp - 4], 8
jmp 0x40e5d2
xor edi, edi
inc edi
lea ecx, [ebp - 0x28]
call fcn.0040acc1
cmp dword [ebp - 0x48], 0
je 0x40e771
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x4c], 0
je 0x40e780
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.0046493d
ret 0x14