Function at 0x498961
Capabilities:
Set registry value

Disassembly:
push 0x78
mov eax, 0x4adc50
call fcn.004a7f93
mov edi, ecx
lea eax, [ebp - 0x74]
push eax
call fcn.00498ff7
xor ebx, ebx
mov ecx, eax
push 0x415fa8
mov dword [ebp - 4], ebx
call fcn.0043fd25
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
push ebx
push 1
mov esi, eax
call fcn.004400ed
test esi, esi
jne 0x498a01
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x3c]
inc esi
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
jne 0x498bda
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x498bda
push 0xff
push dword [ebp - 0x78]
mov ecx, edi
call fcn.0043fdf3
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
push ebx
push esi
call fcn.004400ed
lea eax, [edi + 0x1c]
mov edx, 0x431180
push eax
lea ecx, [ebp - 0x74]
mov esi, ebx
call fcn.00497e98
mov edx, eax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.00499ff2
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 4
call fcn.004400ed
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [ebp - 0x58]
call fcn.00497b1d
cmp dword [ebp - 0x40], 8
mov eax, dword [ebp - 0x54]
jae 0x498a4d
lea eax, [ebp - 0x54]
push ebx
lea ecx, [ebp - 0x7c]
push ecx
push ebx
push 0x20006
push ebx
push ebx
push ebx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x498bc7
lea esi, [edi + 0x38]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push 0x431124
lea ecx, [ebp - 0x2c]
call fcn.00446442
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 5
lea ebx, [edi + 0x54]
push eax
mov ecx, ebx
call fcn.004992e0
mov ecx, dword [ebp - 0x34]
push 0
push 1
mov dword [eax], ecx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.004400ed
push 0x431144
lea ecx, [ebp - 0x2c]
call fcn.00446442
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 6
push eax
mov ecx, ebx
call fcn.004992e0
mov ecx, dword [ebp - 0x30]
push 0
push 1
mov dword [eax], ecx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.004400ed
mov ecx, dword [edi + 0x58]
mov eax, dword [ecx]
mov dword [ebp - 0x78], eax
cmp eax, ecx
je 0x498b2c
add eax, 0xc
cmp dword [eax + 0x18], 8
lea esi, [eax + 4]
jb 0x498b03
mov esi, dword [esi]
push 4
push eax
mov ecx, ebx
call fcn.004992e0
push eax
push 4
push 0
push esi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x78]
call fcn.00448bac
mov eax, dword [ebp - 0x78]
cmp eax, dword [edi + 0x58]
jne 0x498af5
mov ecx, dword [edi + 0x4c]
mov eax, dword [ecx]
mov dword [ebp - 0x84], eax
cmp eax, ecx
je 0x498bb9
lea ebx, [edi + 0x48]
lea esi, [eax + 0xc]
mov ecx, ebx
push esi
call fcn.00499386
cmp dword [eax + 0x18], 8
lea ecx, [eax + 4]
mov dword [ebp - 0x78], ecx
jb 0x498b5a
mov ecx, dword [ecx]
mov dword [ebp - 0x78], ecx
push esi
mov ecx, ebx
call fcn.00499386
cmp dword [eax + 0x18], 8
lea ecx, [eax + 4]
mov dword [ebp - 0x80], ecx
jb 0x498b73
mov ecx, dword [ecx]
mov dword [ebp - 0x80], ecx
cmp dword [esi + 0x18], 8
lea ebx, [esi + 4]
jb 0x498b7e
mov ebx, dword [ebx]
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x80]
push 1
push 0
push ebx
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x84]
call fcn.004464ec
mov eax, dword [ebp - 0x84]
lea ebx, [edi + 0x48]
cmp eax, dword [edi + 0x4c]
jne 0x498b3e
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
inc esi
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.004400ed
mov eax, esi
call fcn.004a7f42
ret
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.004400ed
xor eax, eax
jmp 0x498bd4