Function at 0x1118dc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1145a5c
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x115f604]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x128], ebx
push ebx
push 0x1062428
lea eax, [ebp - 0x120]
push eax
push 0x10623a8
lea ecx, [ebp - 0x11c]
push 2
push ecx
mov byte [ebp - 4], 1
call fcn.01075110
add esp, 0x18
cmp dword [edi + 0x30], ebx
mov byte [ebp - 4], 2
jne 0x1118e72
mov dword [ebp - 0x120], 0x48862
call fcn.01127f00
test al, al
je 0x1119035
push 0x1061670
push 0x1062328
push ebx
call fcn.01128b70
add esp, 0xc
jmp 0x1119035
lea edx, [ebp - 0x138]
push edx
mov ecx, edi
call fcn.01118a40
cmp eax, ebx
mov dword [ebp - 0x120], eax
jl 0x1119035
lea eax, [ebp - 0x12c]
push eax
call fcn.0112deb0
mov eax, dword [eax]
push 0x20006
push 0x10622d0
push eax
lea ecx, [ebp - 0x128]
call fcn.01071d80
mov esi, eax
mov eax, dword [ebp - 0x12c]
cmp eax, ebx
je 0x1118ec5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 2
jne 0x1118f37
lea ecx, [ebp - 0x124]
push ecx
call fcn.0112deb0
mov eax, dword [eax]
lea edx, [ebp - 0x13c]
push edx
lea ecx, [ebp - 0x12c]
push ecx
push ebx
push 0x20006
push ebx
push ebx
push ebx
push 0x10622d0
push eax
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x1118f24
mov ecx, dword [ebp - 0x128]
xor eax, eax
cmp ecx, ebx
je 0x1118f18
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x128], edx
mov esi, eax
mov eax, dword [ebp - 0x124]
cmp eax, ebx
je 0x1118f37
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x1118f80
jle 0x1118f49
and esi, 0xffff
or esi, 0x80070000
mov dword [ebp - 0x120], esi
call fcn.01127f00
test al, al
je 0x1119035
mov eax, dword [ebp - 0x120]
push eax
push 0x10622d0
push 0x1011450
push 0x1062250
push ebx
call fcn.01128b70
add esp, 0x14
jmp 0x1119035
lea ecx, [ebp - 0x124]
push ecx
mov ecx, dword [edi + 0x30]
call fcn.0109b7e0
mov edx, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
mov eax, dword [eax]
push edx
mov edx, dword [ebp - 0x128]
push ecx
push 3
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 0x124]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1118fd4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
je 0x1119035
jle 0x1118fe6
and esi, 0xffff
or esi, 0x80070000
mov dword [ebp - 0x120], esi
call fcn.01127f00
test al, al
je 0x1119035
lea ecx, [ebp - 0x124]
push ecx
mov ecx, dword [edi + 0x30]
call fcn.0109b7e0
mov edx, dword [ebp - 0x120]
mov eax, dword [eax]
push edx
push 0x10622d0
push eax
push 0x10621e0
push 0x1062160
push ebx
mov byte [ebp - 4], 3
call fcn.01128b70
add esp, 0x18
lea ecx, [ebp - 0x124]
call fcn.0111cdb0
mov esi, dword [ebp - 0x120]
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 1
call fcn.01075230
mov eax, dword [ebp - 0x128]
cmp eax, ebx
je 0x111905b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x134]
cmp eax, ebx
je 0x111906c
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.010840d6
mov esp, ebp
pop ebp
ret