Function at 0x4d7240
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6491d5
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x6d3438]
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 - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x38], 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 0x4d72a6
mov eax, dword [esi]
cmp ecx, 3
jne 0x4d73b2
push ecx
push 0x663ab4
push eax
call fcn.0042b370
add esp, 0xc
test eax, eax
jne 0x4d73af
mov eax, dword [edi + 0x10]
lea ebx, [eax*2 + 2]
push ebx
call fcn.00608193
add esp, 4
mov esi, eax
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x1c], esi
jb 0x4d72e6
mov edi, dword [edi]
test ebx, ebx
je 0x4d7301
test esi, esi
je 0x4d737f
push ebx
test edi, edi
je 0x4d7374
push edi
push esi
call fcn.0060a360
add esp, 0xc
mov edi, 1
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x2c]
mov ecx, eax
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 8
jb 0x4d731e
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 dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4d771e
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 0x14], 8
jb 0x4d734f
mov ecx, dword [ecx]
push ecx
push eax
push str.Error___d__creating_registry_key:__s
push 0xab
push str.XMLUpdater::v2::SetRegistryKey
push str.E:BT3f715c85_ff0b_44ed_ac13_dd63d3f5c42aWebAdvisor_XmlUpdater_srcXmlUpdaterRegistryCommand.cpp
push 1
call fcn.004acee0
add esp, 0x1c
jmp 0x4d7793
push 0
push esi
call fcn.0060a8e0
add esp, 0xc
call fcn.0060e1be
mov dword [eax], 0x16
call fcn.0060e0c0
push str.memcpy_s_failed_in_SetRegistryKey
push 0x66
push str.XMLUpdater::v2::SetRegistryKey
push str.E:BT3f715c85_ff0b_44ed_ac13_dd63d3f5c42aWebAdvisor_XmlUpdater_srcXmlUpdaterRegistryCommand.cpp
push 1
call fcn.004acee0
add esp, 0x14
jmp 0x4d77a8
mov ecx, dword [esi + 0x10]
mov eax, esi
cmp ebx, 8
jb 0x4d73bb
mov eax, dword [esi]
cmp ecx, 3
jne 0x4d73d7
push ecx
push 0x6637a4
push eax
call fcn.0042b370
add esp, 0xc
test eax, eax
je 0x4d7651
push str.DWORD
push esi
call fcn.004390c0
add esp, 8
test al, al
jne 0x4d7651
push str.QWORD
push esi
call fcn.004390c0
add esp, 8
test al, al
je 0x4d74e0
mov byte [ebp - 4], 3
call fcn.0060e1be
cmp dword [edi + 0x14], 8
mov esi, eax
jb 0x4d7416
mov edi, dword [edi]
push 0xa
lea eax, [ebp - 0x24]
mov dword [esi], 0
push eax
push edi
call fcn.00618fab
add esp, 0xc
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], edx
cmp edi, dword [ebp - 0x24]
je 0x4d77f9
cmp dword [esi], 0x22
je 0x4d7803
jmp 0x4d747a
mov edi, 0xb
mov dword [ebp - 4], 0
lea ebx, [edi - 3]
push ebx
call fcn.00608193
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x4d74d0
call fcn.0060e1be
mov dword [eax], 0x16
call fcn.0060e0c0
push str.memcpy_s_failed_in_SetRegistryKey
push 0x90
push str.XMLUpdater::v2::SetRegistryKey
push str.E:BT3f715c85_ff0b_44ed_ac13_dd63d3f5c42aWebAdvisor_XmlUpdater_srcXmlUpdaterRegistryCommand.cpp
push 1
call fcn.004acee0
add esp, 0x14
xor al, al
jmp 0x4d77dd
mov eax, dword [ebp - 0x34]
mov dword [esi], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 4], eax
jmp 0x4d7306
push 0x665474
push esi
call fcn.004390c0
add esp, 8
test al, al
je 0x4d7624
mov ebx, dword [edi + 0x10]
inc ebx
shr ebx, 1
push ebx
call fcn.00608193
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 0x4d751a
mov ecx, dword [edi]
mov dword [ebp - 0x24], ecx
test ecx, ecx
je 0x4d75f8
xor eax, eax
mov dword [ebp - 0x28], eax
test ebx, ebx
je 0x4d75ee
nop
movzx eax, word [ecx]
mov edx, eax
mov dword [ebp - 0x20], edx
lea eax, [edx - 0x30]
cmp ax, 9
ja 0x4d7546
sub dl, 0x30
jmp 0x4d7564
lea eax, [edx - 0x61]
cmp ax, 5
ja 0x4d7554
sub dl, 0x57
jmp 0x4d7564
lea eax, [edx - 0x41]
cmp ax, 5
ja 0x4d75e7
sub dl, 0x37
cmp dl, 0xff
je 0x4d75e7
movzx eax, word [ecx + 2]
movzx ecx, ax
mov dword [ebp - 0x20], eax
lea eax, [ecx - 0x30]
cmp ax, 9
ja 0x4d7581
sub cl, 0x30
jmp 0x4d759b
lea eax, [ecx - 0x61]
cmp ax, 5
ja 0x4d758f
sub cl, 0x57
jmp 0x4d759b
lea eax, [ecx - 0x41]
cmp ax, 5
ja 0x4d75cd
sub cl, 0x37
cmp cl, 0xff
je 0x4d75cd
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 0x4d7530
mov edi, 3
jmp 0x4d7306
cmp word [ebp - 0x20], 0
jne 0x4d75f8
mov eax, dword [ebp - 0x28]
mov edi, 3
shl dl, 4
mov byte [eax + esi], dl
jmp 0x4d7306
cmp word [ebp - 0x20], 0
jne 0x4d75f8
mov edi, 3
jmp 0x4d7306
cmp dword [edi + 0x14], 8
jb 0x4d7600
mov edi, dword [edi]
push edi
push str.Unable_to_convert__s_to_hex
push 0x9a
push str.XMLUpdater::v2::SetRegistryKey
push str.E:BT3f715c85_ff0b_44ed_ac13_dd63d3f5c42aWebAdvisor_XmlUpdater_srcXmlUpdaterRegistryCommand.cpp
push 1
call fcn.004acee0
add esp, 0x18
jmp 0x4d77a8
cmp ebx, 8
jb 0x4d762b
mov esi, dword [esi]
push esi
push str.Unknown_registry_key_type:__s
push 0xa1
push str.XMLUpdater::v2::SetRegistryKey
push str.E:BT3f715c85_ff0b_44ed_ac13_dd63d3f5c42aWebAdvisor_XmlUpdater_srcXmlUpdaterRegistryCommand.cpp
push 1
call fcn.004acee0
add esp, 0x18
xor al, al
jmp 0x4d77dd
mov byte [ebp - 4], 1
call fcn.0060e1be
cmp dword [edi + 0x14], 8
mov esi, eax
jb 0x4d7664
mov edi, dword [edi]
push 0xa
lea eax, [ebp - 0x20]
mov dword [esi], 0
push eax
push edi
call fcn.00618f65
add esp, 0xc
mov dword [ebp - 0x34], eax
cmp edi, dword [ebp - 0x20]
je 0x4d780d
cmp dword [esi], 0x22
je 0x4d7817
jmp 0x4d76c2
mov edi, 4
mov dword [ebp - 4], 0
push edi
mov ebx, edi
call fcn.00608193
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x4d7714
call fcn.0060e1be
mov dword [eax], 0x16
call fcn.0060e0c0
push str.memcpy_s_failed_in_SetRegistryKey
push 0x7b
push str.XMLUpdater::v2::SetRegistryKey
push str.E:BT3f715c85_ff0b_44ed_ac13_dd63d3f5c42aWebAdvisor_XmlUpdater_srcXmlUpdaterRegistryCommand.cpp
push 1
call fcn.004acee0
add esp, 0x14
xor al, al
jmp 0x4d77dd
mov eax, dword [ebp - 0x34]
mov dword [esi], eax
jmp 0x4d7306
mov ecx, dword [ebp - 0x30]
mov eax, ecx
cmp dword [ecx + 0x14], 8
jb 0x4d772b
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 0x4d77b9
mov ebx, dword [ebp - 0x2c]
cmp dword [ebx + 0x14], 8
jb 0x4d774b
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x30]
push 0x68d90c
push eax
call fcn.004390c0
add esp, 8
test al, al
je 0x4d7767
mov eax, str._Default_
jmp 0x4d7772
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x14], 8
jb 0x4d7772
mov eax, dword [eax]
push ebx
push eax
push edi
push str.Error___d__setting_value___s__under_registry_key:__s
push 0xb3
push str.XMLUpdater::v2::SetRegistryKey
push str.E:BT3f715c85_ff0b_44ed_ac13_dd63d3f5c42aWebAdvisor_XmlUpdater_srcXmlUpdaterRegistryCommand.cpp
push 1
call fcn.004acee0
add esp, 0x20
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4d77a8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], 0
test esi, esi
je 0x4d77b5
push esi
call fcn.0060819c
add esp, 4
xor al, al
jmp 0x4d77dd
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4d77ce
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], 0
test esi, esi
je 0x4d77db
push esi
call fcn.0060819c
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.00608185
mov esp, ebp
pop ebp
ret
push str.invalid_stoull_argument
call fcn.005f34b1
push str.stoull_argument_out_of_range
call fcn.005f34f1
push str.invalid_stoul_argument
call fcn.005f34b1
push str.stoul_argument_out_of_range
call fcn.005f34f1
int3