Function at 0xb8ad70
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.00b90fd0
test eax, eax
je 0xb8ad9b
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x2fc], ecx
lea ecx, [ebp - 0x5c]
call fcn.00b93a10
lea edx, [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0x2fc]
push eax
call fcn.00b8a460
test eax, eax
jne 0xb8add4
mov dword [ebp - 0x318], 0
lea ecx, [ebp - 0x5c]
call fcn.00b93ce0
mov eax, dword [ebp - 0x318]
jmp 0xb8b1d1
call fcn.00b8efa0
lea ecx, [ebp - 0x270]
push ecx
push 0x40
lea edx, [ebp - 0x48]
push edx
push 0xc1de98
call fcn.00b932b0
push eax
call fcn.00b91280
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 0xb8b1b6
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 0xb8b17d
mov dword [ebp - 0x304], 1
lea edx, [ebp - 0x2f0]
push edx
push 0x40
lea eax, [ebp - 0x48]
push eax
push 0xc1de6c
call fcn.00b932b0
push eax
call fcn.00b91280
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 0xb8b15a
mov dword [ebp - 0x304], 0
lea ecx, [ebp - 0x2f0]
push ecx
push 0x40
lea edx, [ebp - 0x48]
push edx
push 0xc1de74
call fcn.00b932b0
push eax
call fcn.00b91280
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 0xb8b15a
mov dword [ebp - 0x304], 4
lea eax, [ebp - 0x2f0]
push eax
push 0x40
lea ecx, [ebp - 0x48]
push ecx
push 0xc1de84
call fcn.00b932b0
push eax
call fcn.00b91280
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 0xb8b15a
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.00b949c0
mov dword [ebp - 0x320], eax
mov ecx, dword [ebp - 0x320]
push ecx
push 0x105
lea edx, [ebp - 0x270]
push edx
call fcn.00ba8bd3
add esp, 0xc
lea eax, [ebp - 0x2f0]
push eax
push 0x40
lea ecx, [ebp - 0x48]
push ecx
push 0xc1de8c
call fcn.00b932b0
push eax
call fcn.00b91280
lea edx, [ebp - 0x270]
push edx
call fcn.00ba84db
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 0xb8b15a
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.00b932b0
push eax
call fcn.00b91280
lea edx, [ebp - 0x2f0]
push edx
push 0x105
lea eax, [ebp - 0x270]
push eax
call fcn.00ba8bd3
add esp, 0xc
push 0xc2f064
push 0x105
lea ecx, [ebp - 0x270]
push ecx
call fcn.00ba8bd3
add esp, 0xc
lea edx, [ebp - 0x2f0]
push edx
push 0x40
lea eax, [ebp - 0x48]
push eax
push 0xc1de98
call fcn.00b932b0
push eax
call fcn.00b91280
lea ecx, [ebp - 0x2f0]
push ecx
push 0x105
lea edx, [ebp - 0x270]
push edx
call fcn.00ba8bd3
add esp, 0xc
push 0xc2f064
push 0x105
lea eax, [ebp - 0x270]
push eax
call fcn.00ba8bd3
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x105
lea edx, [ebp - 0x270]
push edx
call fcn.00ba8bd3
add esp, 0xc
lea eax, [ebp - 0x270]
mov dword [ebp - 0x308], eax
lea ecx, [ebp - 0x270]
push ecx
call fcn.00ba84db
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 0xc1de34
call fcn.00b93460
mov dword [ebp - 0x310], eax
cmp dword [ebp - 0x310], 0
je 0xb8b15a
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 0xb8b144
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0xb8b15a
mov ecx, dword [ebp - 0x314]
push ecx
call fcn.00b8ad30
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.00b8ac90
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.00b93ce0
mov eax, dword [ebp - 0x31c]
mov esp, ebp
pop ebp
ret 0xc