Function at 0x27ad70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
mov byte [ebp - 0x2f5], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2fc], eax
call fcn.00280fd0
test eax, eax
je 0x27ad9b
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x2fc], ecx
lea ecx, [ebp - 0x5c]
call fcn.00283a10
lea edx, [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0x2fc]
push eax
call fcn.0027a460
test eax, eax
jne 0x27add4
mov dword [ebp - 0x318], 0
lea ecx, [ebp - 0x5c]
call fcn.00283ce0
mov eax, dword [ebp - 0x318]
jmp 0x27b1d1
call fcn.0027efa0
lea ecx, [ebp - 0x270]
push ecx
push 0x40
lea edx, [ebp - 0x48]
push edx
push 0x30de98
call fcn.002832b0
push eax
call fcn.00281280
lea eax, [ebp - 0x2f4]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x270]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x27b1b6
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x2f4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x27b17d
mov dword [ebp - 0x304], 1
lea edx, [ebp - 0x2f0]
push edx
push 0x40
lea eax, [ebp - 0x48]
push eax
push 0x30de6c
call fcn.002832b0
push eax
call fcn.00281280
push 4
lea ecx, [ebp - 0x304]
push ecx
push 4
push 0
lea edx, [ebp - 0x2f0]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x27b15a
mov dword [ebp - 0x304], 0
lea ecx, [ebp - 0x2f0]
push ecx
push 0x40
lea edx, [ebp - 0x48]
push edx
push 0x30de74
call fcn.002832b0
push eax
call fcn.00281280
push 4
lea eax, [ebp - 0x304]
push eax
push 4
push 0
lea ecx, [ebp - 0x2f0]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x27b15a
mov dword [ebp - 0x304], 4
lea eax, [ebp - 0x2f0]
push eax
push 0x40
lea ecx, [ebp - 0x48]
push ecx
push 0x30de84
call fcn.002832b0
push eax
call fcn.00281280
push 4
lea edx, [ebp - 0x304]
push edx
push 4
push 0
lea eax, [ebp - 0x2f0]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x27b15a
mov edx, 0x5c
mov word [ebp - 0x270], dx
mov eax, 0x3f
mov word [ebp - 0x26e], ax
mov ecx, 0x3f
mov word [ebp - 0x26c], cx
mov edx, 0x5c
mov word [ebp - 0x26a], dx
xor eax, eax
mov word [ebp - 0x268], ax
lea ecx, [ebp - 0x5c]
call fcn.002849c0
mov dword [ebp - 0x320], eax
mov ecx, dword [ebp - 0x320]
push ecx
push 0x105
lea edx, [ebp - 0x270]
push edx
call fcn.00298bd3
add esp, 0xc
lea eax, [ebp - 0x2f0]
push eax
push 0x40
lea ecx, [ebp - 0x48]
push ecx
push 0x30de8c
call fcn.002832b0
push eax
call fcn.00281280
lea edx, [ebp - 0x270]
push edx
call fcn.002984db
add esp, 4
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x270]
push ecx
push 1
push 0
lea edx, [ebp - 0x2f0]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x27b15a
mov ecx, 0x5c
mov word [ebp - 0x270], cx
xor edx, edx
mov word [ebp - 0x26e], dx
lea eax, [ebp - 0x2f0]
push eax
push 0x40
lea ecx, [ebp - 0x48]
push ecx
push str.02____t846__0U
call fcn.002832b0
push eax
call fcn.00281280
lea edx, [ebp - 0x2f0]
push edx
push 0x105
lea eax, [ebp - 0x270]
push eax
call fcn.00298bd3
add esp, 0xc
push 0x31f064
push 0x105
lea ecx, [ebp - 0x270]
push ecx
call fcn.00298bd3
add esp, 0xc
lea edx, [ebp - 0x2f0]
push edx
push 0x40
lea eax, [ebp - 0x48]
push eax
push 0x30de98
call fcn.002832b0
push eax
call fcn.00281280
lea ecx, [ebp - 0x2f0]
push ecx
push 0x105
lea edx, [ebp - 0x270]
push edx
call fcn.00298bd3
add esp, 0xc
push 0x31f064
push 0x105
lea eax, [ebp - 0x270]
push eax
call fcn.00298bd3
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x105
lea edx, [ebp - 0x270]
push edx
call fcn.00298bd3
add esp, 0xc
lea eax, [ebp - 0x270]
mov dword [ebp - 0x308], eax
lea ecx, [ebp - 0x270]
push ecx
call fcn.002984db
add esp, 4
movzx edx, ax
shl edx, 1
mov word [ebp - 0x30c], dx
movzx eax, word [ebp - 0x30c]
add eax, 2
mov word [ebp - 0x30a], ax
push 0
push 0x30de34
call fcn.00283460
mov dword [ebp - 0x310], eax
cmp dword [ebp - 0x310], 0
je 0x27b15a
lea ecx, [ebp - 0x30c]
push ecx
call dword [ebp - 0x310]
mov dword [ebp - 0x314], eax
xor edx, edx
cmp dword [ebp - 0x314], 0
setge dl
mov byte [ebp - 0x2f5], dl
movzx eax, byte [ebp - 0x2f5]
test eax, eax
je 0x27b144
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x27b15a
mov ecx, dword [ebp - 0x314]
push ecx
call fcn.0027ad30
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x300], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x300]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x300], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x2f4]
push edx
call fcn.0027ac90
add esp, 8
mov eax, dword [ebp - 0x2f4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x300]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
movzx edx, byte [ebp - 0x2f5]
mov dword [ebp - 0x31c], edx
lea ecx, [ebp - 0x5c]
call fcn.00283ce0
mov eax, dword [ebp - 0x31c]
mov esp, ebp
pop ebp
ret 0xc