Function at 0x40a519
Capabilities:
Set registry value

Disassembly:
push 0x40
mov eax, 0x472517
call fcn.00470dac
mov dword [ebp - 0x44], ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test esi, esi
jne 0x40a53c
xor eax, eax
jmp 0x40a768
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.004077a4
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x28]
mov edx, eax
mov dword [esp], str._Protocol
call fcn.0040776b
pop ecx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.004042cc
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 0x4863a4
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40a5de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xf5
push str.c:jenkinsworkspaceClientClientWindows_releasewin_common_srcinstallerIncludePBXProtocolInstaller.cpp
push 2
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.0040808d
mov byte [ebp - 4], 3
mov edx, str.RegSetValueEx_fail_error_code:
push esi
push ecx
mov ecx, 0x49f450
call fcn.0040c787
pop ecx
mov ecx, eax
call fcn.00406084
lea ecx, [ebp - 0x44]
call fcn.0040822b
jmp 0x40a740
push edi
push 0x4863a4
push 1
push edi
push str.URL_Protocol
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40a619
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xfc
push str.c:jenkinsworkspaceClientClientWindows_releasewin_common_srcinstallerIncludePBXProtocolInstaller.cpp
push 2
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.0040808d
mov byte [ebp - 4], 4
jmp 0x40a5b8
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 0x40a661
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x103
push str.c:jenkinsworkspaceClientClientWindows_releasewin_common_srcinstallerIncludePBXProtocolInstaller.cpp
push 2
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.0040808d
mov byte [ebp - 4], 5
mov edx, str.RegCreateKeyEx_fail_error_code:
jmp 0x40a5bd
mov eax, dword [ebp - 0x44]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x40a66e
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
add eax, eax
push eax
push ecx
push 1
push edi
push 0x4863a4
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40a6af
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10a
push str.c:jenkinsworkspaceClientClientWindows_releasewin_common_srcinstallerIncludePBXProtocolInstaller.cpp
push 2
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.0040808d
mov byte [ebp - 4], 6
jmp 0x40a5b8
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 0x40a6f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x111
push str.c:jenkinsworkspaceClientClientWindows_releasewin_common_srcinstallerIncludePBXProtocolInstaller.cpp
push 2
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.0040808d
mov byte [ebp - 4], 7
jmp 0x40a657
cmp dword [ebx + 0x14], 8
mov ecx, ebx
jb 0x40a6fc
mov ecx, dword [ebx]
mov eax, dword [ebx + 0x10]
add eax, eax
push eax
push ecx
push 1
push edi
push 0x4863a4
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40a73d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x118
push str.c:jenkinsworkspaceClientClientWindows_releasewin_common_srcinstallerIncludePBXProtocolInstaller.cpp
push 2
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.0040808d
mov byte [ebp - 4], 8
jmp 0x40a5b8
xor edi, edi
inc edi
lea ecx, [ebp - 0x28]
call fcn.004042cc
cmp dword [ebp - 0x48], 0
je 0x40a757
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x4c], 0
je 0x40a766
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.00470d5b
ret 0x14