Function at 0x462740
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4beb75
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4ff684]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], 0
mov ebx, dword [esi + 0x14]
mov eax, esi
mov ecx, dword [esi + 0x10]
mov dword [ebp - 4], 0
cmp ebx, 8
jb 0x4627a0
mov eax, dword [esi]
cmp ecx, 3
jne 0x4628ae
push ecx
push 0x4d8b1c
push eax
call fcn.00412aac
add esp, 0xc
test eax, eax
jne 0x4628ab
mov eax, dword [edi + 0x10]
lea ebx, [eax*2 + 2]
push ebx
call fcn.004892e3
add esp, 4
mov esi, eax
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x1c], esi
jb 0x4627e0
mov edi, dword [edi]
test ebx, ebx
je 0x4627fb
test esi, esi
je 0x46287b
push ebx
test edi, edi
je 0x462870
push edi
push esi
call fcn.0048af40
add esp, 0xc
mov edi, 1
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x30]
mov ecx, eax
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
jb 0x462818
mov ecx, dword [eax]
push 0
lea eax, [ebp - 0x18]
push eax
movzx eax, byte [ebp + 0x18]
push 0
push dword [ebp + 0x1c]
push eax
push 0
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x462c16
mov ecx, dword [ebp - 0x30]
cmp dword [ecx + 0x14], 8
jb 0x46284b
mov ecx, dword [ecx]
push ecx
push eax
push str.Error___d__creating_registry_key:__s
push 0x9b
push str.NWebAdvisor::NXmlUpdater::SetRegistryKey
push str.C:Jenkinsworkspacemer_WebAdvisor_XMLUpdater_master_srcXmlUpdaterRegistryCommand.cpp
push 1
call fcn.00449540
add esp, 0x1c
jmp 0x462ca5
push 0
push esi
call fcn.0048b4c0
add esp, 0xc
call fcn.0048e2de
mov dword [eax], 0x16
call fcn.0048e1a0
push str.memcpy_s_failed_in_NWebAdvisor::NXmlUpdater::SetRegistryKey
push 0x56
push str.NWebAdvisor::NXmlUpdater::SetRegistryKey
push str.C:Jenkinsworkspacemer_WebAdvisor_XMLUpdater_master_srcXmlUpdaterRegistryCommand.cpp
push 1
call fcn.00449540
add esp, 0x14
jmp 0x462cba
mov ecx, dword [esi + 0x10]
mov eax, esi
cmp ebx, 8
jb 0x4628b7
mov eax, dword [esi]
cmp ecx, 3
jne 0x4628d3
push ecx
push 0x4d8808
push eax
call fcn.00412aac
add esp, 0xc
test eax, eax
je 0x462b49
push str.DWORD
push esi
call fcn.00442340
add esp, 8
test al, al
jne 0x462b49
push str.QWORD
push esi
call fcn.00442340
add esp, 8
test al, al
je 0x4629d9
mov byte [ebp - 4], 3
call fcn.0048e2de
cmp dword [edi + 0x14], 8
mov esi, eax
jb 0x462912
mov edi, dword [edi]
push 0xa
lea eax, [ebp - 0x24]
mov dword [esi], 0
push eax
push edi
call fcn.0048f4c9
add esp, 0xc
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], edx
cmp edi, dword [ebp - 0x24]
je 0x462d0b
cmp dword [esi], 0x22
je 0x462d15
jmp 0x462973
mov edi, 0xb
mov dword [ebp - 4], 0
lea ebx, [edi - 3]
push ebx
call fcn.004892e3
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x4629c9
call fcn.0048e2de
mov dword [eax], 0x16
call fcn.0048e1a0
push str.memcpy_s_failed_in_NWebAdvisor::NXmlUpdater::SetRegistryKey
push 0x80
push str.NWebAdvisor::NXmlUpdater::SetRegistryKey
push str.C:Jenkinsworkspacemer_WebAdvisor_XMLUpdater_master_srcXmlUpdaterRegistryCommand.cpp
push 1
call fcn.00449540
add esp, 0x14
xor al, al
jmp 0x462cef
mov eax, dword [ebp - 0x34]
mov dword [esi], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 4], eax
jmp 0x462800
push 0x4da49c
push esi
call fcn.00442340
add esp, 8
test al, al
je 0x462b1c
mov ebx, dword [edi + 0x10]
inc ebx
shr ebx, 1
push ebx
call fcn.004892e3
add esp, 4
mov dword [ebp - 0x24], edi
cmp dword [edi + 0x14], 8
mov esi, eax
mov dword [ebp - 0x1c], esi
mov ecx, edi
jb 0x462a13
mov ecx, dword [edi]
mov dword [ebp - 0x24], ecx
test ecx, ecx
je 0x462af0
xor eax, eax
mov dword [ebp - 0x28], eax
test ebx, ebx
je 0x462ae6
movzx eax, word [ecx]
mov edx, eax
mov dword [ebp - 0x20], edx
lea eax, [edx - 0x30]
cmp ax, 9
ja 0x462a3e
sub dl, 0x30
jmp 0x462a5c
lea eax, [edx - 0x61]
cmp ax, 5
ja 0x462a4c
sub dl, 0x57
jmp 0x462a5c
lea eax, [edx - 0x41]
cmp ax, 5
ja 0x462adf
sub dl, 0x37
cmp dl, 0xff
je 0x462adf
movzx eax, word [ecx + 2]
movzx ecx, ax
mov dword [ebp - 0x20], eax
lea eax, [ecx - 0x30]
cmp ax, 9
ja 0x462a79
sub cl, 0x30
jmp 0x462a93
lea eax, [ecx - 0x61]
cmp ax, 5
ja 0x462a87
sub cl, 0x57
jmp 0x462a93
lea eax, [ecx - 0x41]
cmp ax, 5
ja 0x462ac5
sub cl, 0x37
cmp cl, 0xff
je 0x462ac5
mov eax, dword [ebp - 0x28]
and cl, 0xf
shl dl, 4
or cl, dl
mov byte [eax + esi], cl
inc eax
mov ecx, dword [ebp - 0x24]
add ecx, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
cmp eax, ebx
jb 0x462a28
mov edi, 3
jmp 0x462800
cmp word [ebp - 0x20], 0
jne 0x462af0
mov eax, dword [ebp - 0x28]
mov edi, 3
shl dl, 4
mov byte [eax + esi], dl
jmp 0x462800
cmp word [ebp - 0x20], 0
jne 0x462af0
mov edi, 3
jmp 0x462800
cmp dword [edi + 0x14], 8
jb 0x462af8
mov edi, dword [edi]
push edi
push str.Unable_to_convert__s_to_hex
push 0x8a
push str.NWebAdvisor::NXmlUpdater::SetRegistryKey
push str.C:Jenkinsworkspacemer_WebAdvisor_XMLUpdater_master_srcXmlUpdaterRegistryCommand.cpp
push 1
call fcn.00449540
add esp, 0x18
jmp 0x462cba
cmp ebx, 8
jb 0x462b23
mov esi, dword [esi]
push esi
push str.Unknown_registry_key_type:__s
push 0x91
push str.NWebAdvisor::NXmlUpdater::SetRegistryKey
push str.C:Jenkinsworkspacemer_WebAdvisor_XMLUpdater_master_srcXmlUpdaterRegistryCommand.cpp
push 1
call fcn.00449540
add esp, 0x18
xor al, al
jmp 0x462cef
mov byte [ebp - 4], 1
call fcn.0048e2de
cmp dword [edi + 0x14], 8
mov esi, eax
jb 0x462b5c
mov edi, dword [edi]
push 0xa
lea eax, [ebp - 0x20]
mov dword [esi], 0
push eax
push edi
call fcn.0048f49f
add esp, 0xc
mov dword [ebp - 0x34], eax
cmp edi, dword [ebp - 0x20]
je 0x462d1f
cmp dword [esi], 0x22
je 0x462d29
jmp 0x462bba
mov edi, 4
mov dword [ebp - 4], 0
push edi
mov ebx, edi
call fcn.004892e3
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x462c0c
call fcn.0048e2de
mov dword [eax], 0x16
call fcn.0048e1a0
push str.memcpy_s_failed_in_NWebAdvisor::NXmlUpdater::SetRegistryKey
push 0x6b
push str.NWebAdvisor::NXmlUpdater::SetRegistryKey
push str.C:Jenkinsworkspacemer_WebAdvisor_XMLUpdater_master_srcXmlUpdaterRegistryCommand.cpp
push 1
call fcn.00449540
add esp, 0x14
xor al, al
jmp 0x462cef
mov eax, dword [ebp - 0x34]
mov dword [esi], eax
jmp 0x462800
push 0x4ebcc8
push dword [ebp - 0x2c]
call fcn.00442340
add esp, 8
test al, al
je 0x462c31
mov eax, str._Default_
jmp 0x462c3e
mov ecx, dword [ebp - 0x2c]
mov eax, ecx
cmp dword [ecx + 0x14], 8
jb 0x462c3e
mov eax, dword [ecx]
push ebx
push esi
push edi
push 0
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x462ccb
mov ebx, dword [ebp - 0x30]
cmp dword [ebx + 0x14], 8
jb 0x462c5e
mov ebx, dword [ebx]
push 0x4ebcc8
push dword [ebp - 0x2c]
call fcn.00442340
add esp, 8
test al, al
je 0x462c79
mov eax, str._Default_
jmp 0x462c84
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x14], 8
jb 0x462c84
mov eax, dword [eax]
push ebx
push eax
push edi
push str.Error___d__setting_value___s__under_registry_key:__s
push 0xa3
push str.NWebAdvisor::NXmlUpdater::SetRegistryKey
push str.C:Jenkinsworkspacemer_WebAdvisor_XMLUpdater_master_srcXmlUpdaterRegistryCommand.cpp
push 1
call fcn.00449540
add esp, 0x20
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x462cba
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], 0
test esi, esi
je 0x462cc7
push esi
call fcn.004892ec
add esp, 4
xor al, al
jmp 0x462cef
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x462ce0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], 0
test esi, esi
je 0x462ced
push esi
call fcn.004892ec
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00488f07
mov esp, ebp
pop ebp
ret
push str.invalid_stoull_argument
call fcn.00473a07
push str.stoull_argument_out_of_range
call fcn.00473a47
push str.invalid_stoul_argument
call fcn.00473a07
push str.stoul_argument_out_of_range
call fcn.00473a47
int3