Function at 0x1007e512
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd94
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x1007e892
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
test ebx, ebx
je 0x1007e867
cmp word [ebx], 0
je 0x1007e867
xor eax, eax
mov dword [ebp - 0x2c], eax
call fcn.1006f70e
test eax, eax
je 0x1007e591
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
jmp 0x1007e597
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x24]
lea edx, [ebp - 4]
lea eax, [ebp - 0x2c]
call fcn.1007eec2
test al, al
je 0x1007e867
call fcn.10084962
mov word [ebp - 0x236], 0x5c
mov word [ebp - 0x234], 0x3f
mov word [ebp - 0x232], 0x3f
mov word [ebp - 0x230], 0x5c
mov word [ebp - 0x22e], 0
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x236]
push eax
call sub.KERNEL32.dll_lstrcatW
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push 0
lea edx, [ebp - 0x250]
mov eax, dword [0x100a3d8c]
call fcn.1006ab16
mov eax, dword [ebp - 0x250]
call fcn.1006788a
push eax
push SysFreeString
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x1007e867
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ebx
mov eax, dword [ebp - 0x14]
push eax
call sub.ADVAPI32.dll_RegCreateKeyExW
test eax, eax
jne 0x1007e847
mov dword [ebp - 8], 1
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 4
lea eax, [ebp - 0x24a]
push eax
lea edx, [ebp - 0x254]
mov eax, dword [0x100a3d88]
call fcn.1006ab16
mov eax, dword [ebp - 0x254]
call fcn.1006788a
push eax
call fcn.10074e5e
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
lea edx, [ebp - 0x258]
mov eax, dword [0x100a3d7c]
call fcn.1006ab16
mov eax, dword [ebp - 0x258]
call fcn.1006788a
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.ADVAPI32.dll_RegSetValueExA
test eax, eax
jne 0x1007e831
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
lea edx, [ebp - 0x25c]
mov eax, dword [0x100a3d80]
call fcn.1006ab16
mov eax, dword [ebp - 0x25c]
call fcn.1006788a
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.ADVAPI32.dll_RegSetValueExA
test eax, eax
jne 0x1007e831
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
lea edx, [ebp - 0x260]
mov eax, dword [0x100a3d84]
call fcn.1006ab16
mov eax, dword [ebp - 0x260]
call fcn.1006788a
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.ADVAPI32.dll_RegSetValueExA
test eax, eax
jne 0x1007e831
lea eax, [ebp - 0x236]
push eax
call sub.KERNEL32.dll_lstrlenW
add eax, eax
add eax, 2
push eax
lea eax, [ebp - 0x236]
push eax
push 1
push 0
lea eax, [ebp - 0x24a]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.ADVAPI32.dll_RegSetValueExW
test eax, eax
jne 0x1007e831
lea eax, [ebp - 0x236]
push eax
push 0x1007e8ae
lea edx, [ebp - 0x268]
mov eax, dword [0x100a3d90]
call fcn.1006ab16
push dword [ebp - 0x268]
push 0x1007e8ae
lea edx, [ebp - 0x26c]
mov eax, dword [0x100a3d8c]
call fcn.1006ab16
push dword [ebp - 0x26c]
push 0x1007e8ae
lea eax, [ebp - 0x264]
mov edx, 5
call fcn.1006774a
mov eax, dword [ebp - 0x264]
call fcn.1006788a
push eax
call fcn.10074e5e
push ebx
lea eax, [ebp - 0x236]
push eax
call sub.KERNEL32.dll_lstrcatW
lea esi, [ebp - 0x236]
mov dword [ebp - 0x1c], esi
push esi
call sub.KERNEL32.dll_lstrlenW
add eax, eax
mov word [ebp - 0x20], ax
mov ax, word [ebp - 0x20]
add ax, 2
mov word [ebp - 0x1e], ax
xor edx, edx
mov eax, dword [0x100a3c60]
call fcn.1006eb96
mov esi, eax
test esi, esi
je 0x1007e82a
lea eax, [ebp - 0x20]
push eax
call esi
call fcn.1007cfae
push eax
call sub.KERNEL32.dll_SetLastError
call sub.KERNEL32.dll_GetLastError
test eax, eax
sete al
neg al
sbb edi, edi
jmp 0x1007e831
push 0x78
call sub.KERNEL32.dll_SetLastError
call sub.KERNEL32.dll_GetLastError
mov esi, eax
mov eax, dword [ebp - 0x18]
push eax
call sub.ADVAPI32.dll_RegCloseKey
push esi
call sub.KERNEL32.dll_SetLastError
call sub.KERNEL32.dll_GetLastError
mov esi, eax
mov edx, ebx
mov eax, dword [ebp - 0x14]
call fcn.1007cf22
mov eax, dword [ebp - 0x14]
push eax
call sub.ADVAPI32.dll_RegCloseKey
push esi
call sub.KERNEL32.dll_SetLastError
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1007e899
lea eax, [ebp - 0x26c]
mov edx, 8
call fcn.1006745a
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.1006745a
ret