Function at 0x103bd25
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x864
mov eax, dword [0x1049108]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x854], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x850], eax
mov eax, dword [ebp + 0x14]
xor edi, edi
push 0x848
mov dword [ebp - 0x85c], eax
lea eax, [ebp - 0x84c]
push edi
push eax
mov dword [ebp - 0x860], esi
mov dword [ebp - 0x864], edi
call sub.msvcrt.dll_memset
add esp, 0xc
cmp esi, edi
mov esi, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov dword [ebp - 0x844], edi
mov dword [ebp - 0x840], edi
mov dword [ebp - 0x838], edi
mov dword [ebp - 0x830], 1
mov ebx, 0x2001f
je 0x103bddb
lea eax, [ebp - 0x858]
push eax
push ebx
push edi
push dword [ebp - 0x860]
push 0x80000003
call esi
mov dword [ebp - 0x854], eax
cmp eax, edi
jne 0x103bf6b
mov eax, dword [ebp - 0x858]
mov dword [ebp - 0x864], eax
jmp 0x103bde7
mov eax, dword [ebp - 0x854]
mov dword [ebp - 0x858], eax
lea ecx, [ebp - 0x844]
push ecx
push ebx
push edi
push 0x100e5d0
push eax
mov dword [ebp - 0x84c], eax
call esi
mov dword [ebp - 0x854], eax
cmp eax, edi
jne 0x103bf6b
lea eax, [ebp - 0x848]
push eax
push ebx
push edi
push 0x100e640
push dword [ebp - 0x858]
call esi
mov dword [ebp - 0x854], eax
cmp eax, edi
jne 0x103bf6b
lea eax, [ebp - 0x840]
push eax
push 0x20006
push edi
push 0x100e6b0
push dword [ebp - 0x858]
call esi
mov dword [ebp - 0x854], eax
cmp eax, edi
jne 0x103bf6b
cmp dword [ebp + 0x18], edi
jne 0x103beb9
push dword [ebp - 0x85c]
call fcn.0100ecd6
mov esi, eax
cmp esi, edi
jne 0x103be85
push dword [ebp - 0x850]
push dword [ebp - 0x844]
call fcn.0103c342
mov dword [ebp - 0x85c], eax
lea eax, [ebp - 0x85c]
push eax
push esi
push edi
push dword [ebp - 0x850]
lea eax, [ebp - 0x84c]
push eax
mov dword [ebp - 0x830], edi
call fcn.0100f46c
push 1
lea eax, [ebp - 0x84c]
push eax
call fcn.010112c6
jmp 0x103bf6b
push dword [ebp - 0x850]
mov ebx, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegDeleteValueW]
push dword [ebp - 0x844]
call ebx
push dword [ebp - 0x850]
push dword [ebp - 0x840]
call ebx
push dword [ebp - 0x850]
lea eax, [ebp - 0x84c]
push eax
call fcn.0103bc11
test eax, eax
jne 0x103bf21
push 0x10111c0
push dword [ebp - 0x848]
call ebx
push 4
lea eax, [ebp - 0x85c]
push eax
push 4
push edi
push 0x1023b98
push dword [ebp - 0x848]
mov dword [ebp - 0x85c], edi
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
lea eax, [ebp - 0x860]
push eax
push 0x20006
push edi
push 0x103bfc8
push dword [ebp - 0x858]
call esi
test eax, eax
jne 0x103bf59
push dword [ebp - 0x850]
push dword [ebp - 0x860]
call ebx
push dword [ebp - 0x860]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
push edi
push dword [ebp - 0x850]
push dword [ebp - 0x858]
call sym.spoolsv.exe_PrvbSetDevModePerUser
mov esi, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
cmp dword [ebp - 0x844], edi
je 0x103bf81
push dword [ebp - 0x844]
call esi
cmp dword [ebp - 0x848], edi
je 0x103bf91
push dword [ebp - 0x848]
call esi
cmp dword [ebp - 0x840], edi
je 0x103bfa1
push dword [ebp - 0x840]
call esi
cmp dword [ebp - 0x864], edi
je 0x103bfb1
push dword [ebp - 0x864]
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x854]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100327d
leave
ret 0x14