Function at 0x459888
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d330d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov dword [ebp - 0x1c], ecx
push str.GREG::SetValue
lea ecx, [ebp - 0x58]
call fcn.00404f76
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
push dword [eax + 8]
mov ecx, dword [ebp + 8]
call fcn.00459217
push 0
mov ecx, dword [ebp + 8]
call fcn.0045912a
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.0045913f
mov eax, dword [ebp - 0x1c]
add eax, 0xc
push eax
mov ecx, dword [ebp + 8]
call fcn.004591ab
mov eax, dword [ebp - 0x1c]
add eax, 0xc
push eax
mov eax, dword [ebp - 0x1c]
push dword [eax + 8]
mov ecx, dword [ebp - 0x1c]
call fcn.00456570
movzx eax, al
test eax, eax
je 0x459937
mov eax, dword [ebp - 0x1c]
add eax, 0xc
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x1c]
push dword [eax + 8]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
call fcn.00456277
mov byte [ebp - 0xf], al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004050e2
mov al, byte [ebp - 0xf]
jmp 0x459c22
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x15], 0
je 0x459b2a
push 0
mov eax, dword [ebp - 0x1c]
push dword [eax + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.00459c32
add esp, 0xc
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x2c]
call fcn.00405ab8
movsx eax, byte [eax]
test eax, eax
jne 0x459991
mov byte [ebp - 0x10], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004055b0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004050e2
mov al, byte [ebp - 0x10]
jmp 0x459c22
lea ecx, [ebp - 0x44]
call fcn.004054e3
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.004054e3
mov byte [ebp - 4], 3
push 0
push 0
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
call fcn.0044d79c
lea eax, [ebp - 0xe]
push eax
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x1c]
add eax, 0xc
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x15]
call fcn.004330be
movzx eax, al
test eax, eax
jne 0x459a1e
mov byte [ebp - 0x11], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.004055b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.004055b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004055b0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004050e2
mov al, byte [ebp - 0x11]
jmp 0x459c22
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x459a42
push str.__bKeyNotFound
push str.GREG
push 0xc8f
push str.D:projectsUTIL_srcgreg.cpp
call fcn.004044d6
add esp, 0x10
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x459a86
mov byte [ebp - 0x12], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.004055b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.004055b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004055b0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004050e2
mov al, byte [ebp - 0x12]
jmp 0x459c22
movzx eax, byte [ebp - 0xe]
test eax, eax
je 0x459aaa
push str.__bAccessDenied
push str.GREG
push 0xc91
push str.D:projectsUTIL_srcgreg.cpp
call fcn.004044d6
add esp, 0x10
movzx eax, byte [ebp - 0xe]
test eax, eax
je 0x459aee
mov byte [ebp - 0x13], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.004055b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.004055b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004055b0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004050e2
mov al, byte [ebp - 0x13]
jmp 0x459c22
mov byte [ebp - 0x14], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.004055b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.004055b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004055b0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004050e2
mov al, byte [ebp - 0x14]
jmp 0x459c22
mov eax, dword [ebp - 0x1c]
add eax, 0xc
push eax
mov eax, dword [ebp - 0x1c]
push dword [eax + 8]
mov ecx, dword [ebp - 0x1c]
call fcn.0044c140
movzx eax, al
test eax, eax
jne 0x459b5e
mov byte [ebp - 0x15], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004050e2
mov al, byte [ebp - 0x15]
jmp 0x459c22
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 4], 0
jne 0x459b7e
push 0xc98
push str.D:projectsUTIL_srcgreg.cpp
push str.m_hkey
call fcn.00403b39
add esp, 0xc
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 4], 0
jne 0x459b9f
mov byte [ebp - 0x16], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004050e2
mov al, byte [ebp - 0x16]
jmp 0x459c22
mov ecx, dword [ebp + 8]
call fcn.0044c32a
push eax
mov ecx, dword [ebp + 8]
call fcn.0044c319
push eax
mov ecx, dword [ebp + 8]
call fcn.0045a262
push eax
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00405b2a
push eax
mov eax, dword [ebp - 0x1c]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x459bf4
push 0xc9d
push str.D:projectsUTIL_srcgreg.cpp
push str.RegSetValueEx
push dword [ebp - 0x20]
call fcn.00403d51
add esp, 0x10
cmp dword [ebp - 0x20], 0
je 0x459c0f
mov byte [ebp - 0x17], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004050e2
mov al, byte [ebp - 0x17]
jmp 0x459c22
mov byte [ebp - 0x18], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004050e2
mov al, byte [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8