Function at 0x4957ba
Capabilities:
Set registry value

Disassembly:
push 0x78
mov eax, 0x4ab53b
call fcn.004a5429
mov edi, ecx
lea eax, [ebp - 0x74]
push eax
call fcn.00495e4b
xor ebx, ebx
mov ecx, eax
push 0x4153dc
mov dword [ebp - 4], ebx
call fcn.0043e4f4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
push ebx
push 1
mov esi, eax
call fcn.0043e8d8
test esi, esi
jne 0x49585a
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 0x495a33
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x495a33
push 0xff
push dword [ebp - 0x78]
mov ecx, edi
call fcn.0043e5c4
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.0043e8d8
lea eax, [edi + 0x1c]
mov edx, 0x430c70
push eax
lea ecx, [ebp - 0x74]
mov esi, ebx
call fcn.00494cd6
mov edx, eax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.00496e61
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 4
call fcn.0043e8d8
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [ebp - 0x58]
call fcn.00494959
cmp dword [ebp - 0x40], 8
mov eax, dword [ebp - 0x54]
jae 0x4958a6
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 0x495a20
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 0x430c18
lea ecx, [ebp - 0x2c]
call fcn.00444d2a
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 5
lea ebx, [edi + 0x54]
push eax
mov ecx, ebx
call fcn.00496139
mov ecx, dword [ebp - 0x34]
push 0
push 1
mov dword [eax], ecx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.0043e8d8
push 0x430c38
lea ecx, [ebp - 0x2c]
call fcn.00444d2a
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 6
push eax
mov ecx, ebx
call fcn.00496139
mov ecx, dword [ebp - 0x30]
push 0
push 1
mov dword [eax], ecx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.0043e8d8
mov ecx, dword [edi + 0x58]
mov eax, dword [ecx]
mov dword [ebp - 0x78], eax
cmp eax, ecx
je 0x495985
add eax, 0xc
cmp dword [eax + 0x18], 8
lea esi, [eax + 4]
jb 0x49595c
mov esi, dword [esi]
push 4
push eax
mov ecx, ebx
call fcn.00496139
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.00447549
mov eax, dword [ebp - 0x78]
cmp eax, dword [edi + 0x58]
jne 0x49594e
mov ecx, dword [edi + 0x4c]
mov eax, dword [ecx]
mov dword [ebp - 0x84], eax
cmp eax, ecx
je 0x495a12
lea ebx, [edi + 0x48]
lea esi, [eax + 0xc]
mov ecx, ebx
push esi
call fcn.004961e1
cmp dword [eax + 0x18], 8
lea ecx, [eax + 4]
mov dword [ebp - 0x78], ecx
jb 0x4959b3
mov ecx, dword [ecx]
mov dword [ebp - 0x78], ecx
push esi
mov ecx, ebx
call fcn.004961e1
cmp dword [eax + 0x18], 8
lea ecx, [eax + 4]
mov dword [ebp - 0x80], ecx
jb 0x4959cc
mov ecx, dword [ecx]
mov dword [ebp - 0x80], ecx
cmp dword [esi + 0x18], 8
lea ebx, [esi + 4]
jb 0x4959d7
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.00444dd6
mov eax, dword [ebp - 0x84]
lea ebx, [edi + 0x48]
cmp eax, dword [edi + 0x4c]
jne 0x495997
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.0043e8d8
mov eax, esi
call fcn.004a53d8
ret
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.0043e8d8
xor eax, eax
jmp 0x495a2d