Function at 0x1089bd0
Capabilities:
Set registry value

Disassembly:
push 0x78
mov eax, 0x10a2e4f
call fcn.01004469
lea eax, [ebp - 0x84]
push eax
mov esi, ecx
call fcn.0100eda9
xor edi, edi
push 0x1004fe8
mov ecx, eax
mov dword [ebp - 4], edi
call fcn.0100c0b8
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x84]
inc bl
call fcn.0100b890
test bl, bl
je 0x1089c76
lea ecx, [ebp - 0x2c]
call fcn.0100c293
xor ebx, ebx
lea eax, [ebp - 0x3c]
inc ebx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
jne 0x1089d84
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x1089d84
push 0xff
push dword [ebp - 0x5c]
mov ecx, esi
call fcn.0100bf4a
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
or dword [ebp - 4], 0xffffffff
push edi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0100b890
lea eax, [esi + 0x1c]
push eax
lea eax, [ebp - 0x84]
push 0x1054ec0
push eax
xor ebx, ebx
call fcn.0100eec6
push 0x1054ea4
push eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 4], 2
call fcn.0108858c
add esp, 0x18
push edi
push 1
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 4
call fcn.0100b890
push 0xffffffffffffffff
push edi
push esi
lea ecx, [ebp - 0x58]
call fcn.0100ef2c
cmp dword [ebp - 0x40], 8
mov eax, dword [ebp - 0x54]
jae 0x1089cd0
lea eax, [ebp - 0x54]
push edi
lea ecx, [ebp - 0x64]
push ecx
push edi
push 0x20006
push edi
push edi
push edi
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1089e50
lea ebx, [esi + 0x38]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x34]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push 0x1021728
lea ecx, [ebp - 0x2c]
call fcn.0100bef1
lea eax, [ebp - 0x2c]
lea ebx, [esi + 0x54]
push eax
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.0108971a
mov ecx, dword [ebp - 0x34]
push edi
mov dword [eax], ecx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.0100b890
push 0x102d4cc
lea ecx, [ebp - 0x2c]
call fcn.0100bef1
lea eax, [ebp - 0x2c]
push eax
mov ecx, ebx
mov byte [ebp - 4], 6
call fcn.0108971a
mov ecx, dword [ebp - 0x30]
push edi
mov dword [eax], ecx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.0100b890
mov ecx, dword [esi + 0x58]
mov eax, dword [ecx]
mov dword [ebp - 0x60], eax
cmp eax, ecx
je 0x1089dc5
add eax, 0xc
cmp dword [eax + 0x18], 8
jb 0x1089d95
mov ecx, dword [eax + 4]
jmp 0x1089d98
push edi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0100b890
xor eax, eax
jmp 0x1089e5d
lea ecx, [eax + 4]
push 4
mov dword [ebp - 0x5c], ecx
push eax
mov ecx, ebx
call fcn.0108971a
push eax
push 4
push edi
push dword [ebp - 0x5c]
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x60]
call fcn.0103b7e7
mov eax, dword [ebp - 0x60]
cmp eax, dword [esi + 0x58]
jne 0x1089d76
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
mov dword [ebp - 0x68], eax
cmp eax, ecx
je 0x1089e44
lea ebx, [eax + 0xc]
push ebx
lea ecx, [esi + 0x48]
call fcn.0108969c
cmp dword [eax + 0x18], 8
jb 0x1089de8
mov eax, dword [eax + 4]
jmp 0x1089deb
add eax, 4
push ebx
lea ecx, [esi + 0x48]
mov dword [ebp - 0x60], eax
call fcn.0108969c
cmp dword [eax + 0x18], 8
jb 0x1089e02
mov eax, dword [eax + 4]
jmp 0x1089e05
add eax, 4
cmp dword [ebx + 0x18], 8
mov dword [ebp - 0x5c], eax
jb 0x1089e13
mov ebx, dword [ebx + 4]
jmp 0x1089e16
add ebx, 4
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x5c]
push 1
push edi
push ebx
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x68]
call fcn.0103db43
mov eax, dword [ebp - 0x68]
cmp eax, dword [esi + 0x4c]
jne 0x1089dd1
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
inc ebx
push edi
push 1
lea ecx, [ebp - 0x58]
call fcn.0100b890
mov eax, ebx
call fcn.010044a6
ret