Function at 0x1000a3a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
push ebx
lea ecx, [ebp - 0xb0]
sub esp, 0xdc
call fcn.10009b80
test eax, eax
mov ebx, eax
js 0x1000a50f
mov eax, dword [esi + 0x10]
mov dword [esp + 0x34], eax
movzx eax, byte [esi + 0xf]
mov dword [esp + 0x30], eax
movzx eax, byte [esi + 0xe]
mov dword [esp + 0x2c], eax
movzx eax, byte [esi + 0xd]
mov dword [esp + 0x28], eax
movzx eax, byte [esi + 0xc]
mov dword [esp + 0x24], eax
movzx eax, byte [esi + 0xb]
mov dword [esp + 0x20], eax
movzx eax, byte [esi + 0xa]
mov dword [esp + 0x1c], eax
movzx eax, byte [esi + 9]
mov dword [esp + 0x18], eax
movzx eax, byte [esi + 8]
mov dword [esp + 0x14], eax
movzx eax, word [esi + 6]
mov dword [esp + 0x10], eax
movzx eax, word [esi + 4]
mov dword [esp + 0xc], eax
mov eax, dword [esi]
lea esi, [ebp - 0xac]
mov dword [esp + 4], str._08X__04X__04X__02X_02X__02X_02X_02X_02X_02X_02X__d
mov dword [esp], esi
mov dword [esp + 8], eax
call dword [sym.imp.user32.dll_wsprintfW]
mov eax, dword [ebp + 8]
movzx eax, word [eax]
cmp ax, 0x1f
je 0x1000a540
cmp ax, 0x41
je 0x1000a580
cmp ax, 0x13
jne 0x1000a520
mov dword [esp + 0x14], 4
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 4
add eax, 8
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov eax, dword [ebp - 0xb0]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov edi, eax
mov eax, dword [ebp - 0xb0]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test byte [0x10015114], 8
je 0x1000a50f
mov eax, esi
shr eax, 0x10
test eax, eax
je 0x1000a610
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x100181e1
test edx, edx
jne 0x1000a4e3
mov eax, esi
call fcn.10007310
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Writing__s_returned__lu_n
mov dword [esp + 8], str.MMDevice_SetPropValue
mov dword [esp + 4], 0x10015114
mov dword [esp], 3
call fcn.10007550
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x10015114], 1
jne 0x1000a628
xor edi, edi
mov ebx, 0x80070057
jmp 0x1000a495
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
cmp word [edx], 0
je 0x1000a658
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x1000a558
sub eax, edx
add eax, 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
jmp 0x1000a475
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0xb0]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov edi, eax
test byte [0x10015114], 8
je 0x1000a495
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], str.Blob__p__lu_n
mov dword [esp + 8], str.MMDevice_SetPropValue
mov dword [esp + 4], 0x10015114
mov dword [esp], 3
mov dword [esp + 0x10], eax
call fcn.10007550
jmp 0x1000a495
mov dword [esp + 4], esi
mov dword [esp], 0x10018276
call fcn.100072b0
jmp 0x1000a4e3
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Unhandled_type__u_n
mov dword [esp + 8], str.MMDevice_SetPropValue
mov dword [esp + 4], 0x10015114
mov dword [esp], 0
call fcn.10007550
jmp 0x1000a52d
mov eax, 2
jmp 0x1000a566