Function at 0x1007cfd2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd80
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x268], eax
mov edi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x1007d372
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
test edi, edi
je 0x1007d33e
cmp word [edi], 0
je 0x1007d33e
call fcn.10084962
mov dword [ebp - 0x39], 0x19
mov byte [ebp - 0x21], 1
push 0
push 0
lea eax, [ebp - 0x268]
mov edx, edi
call fcn.10067b32
mov eax, dword [ebp - 0x268]
push eax
call fcn.1007cd32
mov edx, eax
lea ecx, [ebp - 0x39]
pop eax
call fcn.1007cd96
mov ebx, eax
call fcn.1007c72e
test al, al
je 0x1007d2f4
push 0xf003f
push 0
push 0
call dword [0x100a5758]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1007d09d
push 0
push 0
push 0
call dword [0x100a5758]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1007d2f4
push 0x1ff
push edi
mov eax, dword [ebp - 4]
push eax
call dword [0x100a575c]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1007d0fc
lea eax, [ebp - 0x58]
push eax
push 1
mov eax, dword [ebp - 8]
push eax
call dword [0x100a574c]
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 8]
push eax
call dword [0x100a5750]
test eax, eax
je 0x1007d0e8
cmp dword [ebp - 0x54], 1
je 0x1007d0ec
xor eax, eax
jmp 0x1007d0ee
mov al, 1
neg al
sbb esi, esi
mov eax, dword [ebp - 8]
push eax
call dword [0x100a5748]
mov eax, dword [ebp - 4]
push eax
call dword [0x100a5748]
test esi, esi
jne 0x1007d2f4
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
lea edx, [ebp - 0x26c]
mov eax, dword [0x100a3d8c]
call fcn.1006ab16
mov eax, dword [ebp - 0x26c]
call fcn.1006788a
push eax
push SysFreeString
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x1007d2f4
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push edi
push SysFreeString
call sub.ADVAPI32.dll_RegOpenKeyExW
test eax, eax
je 0x1007d2c0
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push edi
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegCreateKeyExW
test eax, eax
jne 0x1007d2da
mov dword [ebp - 4], 1
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
lea edx, [ebp - 0x270]
mov eax, dword [0x100a3d7c]
call fcn.1006ab16
mov eax, dword [ebp - 0x270]
call fcn.1006788a
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.ADVAPI32.dll_RegSetValueExA
test eax, eax
jne 0x1007d29a
lea eax, [ebp - 0x262]
push eax
push 0x1007d38e
lea edx, [ebp - 0x278]
mov eax, dword [0x100a3d90]
call fcn.1006ab16
push dword [ebp - 0x278]
push 0x1007d38e
lea edx, [ebp - 0x27c]
mov eax, dword [0x100a3d8c]
call fcn.1006ab16
push dword [ebp - 0x27c]
push 0x1007d38e
lea eax, [ebp - 0x274]
mov edx, 5
call fcn.1006774a
mov eax, dword [ebp - 0x274]
call fcn.1006788a
push eax
call fcn.10074e5e
push edi
lea eax, [ebp - 0x262]
push eax
call sub.KERNEL32.dll_lstrcatW
lea eax, [ebp - 0x262]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
call sub.KERNEL32.dll_lstrlenW
add eax, eax
mov word [ebp - 0x1c], ax
mov ax, word [ebp - 0x1c]
add ax, 2
mov word [ebp - 0x1a], ax
xor edx, edx
mov eax, dword [0x100a3c64]
call fcn.1006eb96
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x1007d293
lea eax, [ebp - 0x1c]
push eax
call dword [ebp - 0x14]
call fcn.1007cfae
push eax
call sub.KERNEL32.dll_SetLastError
call sub.KERNEL32.dll_GetLastError
test eax, eax
sete al
neg al
sbb esi, esi
jmp 0x1007d29a
push 0x78
call sub.KERNEL32.dll_SetLastError
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
push eax
call sub.ADVAPI32.dll_RegCloseKey
mov edx, edi
mov eax, dword [ebp - 0xc]
call fcn.1007cf22
mov eax, dword [ebp - 0x20]
push eax
call sub.KERNEL32.dll_SetLastError
jmp 0x1007d2da
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
push eax
call sub.ADVAPI32.dll_RegCloseKey
mov eax, dword [ebp - 0x20]
push eax
call sub.KERNEL32.dll_SetLastError
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegCloseKey
mov eax, dword [ebp - 0x20]
push eax
call sub.KERNEL32.dll_SetLastError
mov eax, esi
cmp eax, 1
sbb eax, eax
neg eax
test al, bl
je 0x1007d33e
mov byte [ebp - 0x21], 0
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x20], eax
push 0
push 0
lea eax, [ebp - 0x280]
mov edx, edi
call fcn.10067b32
mov eax, dword [ebp - 0x280]
push eax
call fcn.1007cd32
mov edx, eax
lea ecx, [ebp - 0x39]
pop eax
call fcn.1007cd96
mov eax, dword [ebp - 0x20]
push eax
call sub.KERNEL32.dll_SetLastError
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1007d379
lea eax, [ebp - 0x280]
call fcn.10067a0a
lea eax, [ebp - 0x27c]
mov edx, 5
call fcn.1006745a
lea eax, [ebp - 0x268]
call fcn.10067a0a
ret