Function at 0x103700b
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push edi
xor edi, edi
mov eax, 0x10129b0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x1037024
sub eax, ecx
push ebx
sar eax, 1
push esi
mov esi, dword [ebp + 0xc]
lea ecx, [eax + 0x105]
mov eax, dword [esi]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
cmp eax, edi
je 0x1037206
mov edx, dword [esi + 8]
cmp edx, edi
je 0x1037206
cmp word [eax], di
je 0x1037206
cmp word [edx], di
je 0x1037206
lea eax, [ecx + ecx]
push eax
call sym.spoolsv.exe_PrvDllAllocSplMem
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x10371fb
mov ebx, dword [0x10491bc]
jmp 0x10370a8
push dword [esi + 8]
mov dword [ebp - 0x28], ebx
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1037142
mov ebx, dword [ebx]
cmp ebx, edi
jne 0x103708f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
push edi
push 0x3001f
push edi
push edi
push edi
push dword [esi]
push dword [ebp + 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCreateKeyExW]
mov dword [ebp + 0xc], eax
cmp eax, edi
jne 0x1037212
mov ecx, dword [esi + 8]
mov eax, ecx
lea ebx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x10370db
sub eax, ebx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ecx
push 1
push edi
push 0x1023a80
push dword [ebp - 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
mov dword [ebp + 0xc], eax
cmp eax, edi
jne 0x1037212
push dword [ebp - 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov ebx, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push edi
push 0x10137b8
push dword [ebp + 8]
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
call ebx
mov dword [ebp + 0xc], eax
sub eax, edi
je 0x103714a
dec eax
dec eax
jne 0x103720d
jmp 0x1037185
mov dword [ebp + 0xc], edi
jmp 0x103727a
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
cmp eax, edi
je 0x10371f6
push eax
call sym.spoolsv.exe_PrvDllAllocSplMem
mov dword [ebp - 4], eax
cmp eax, edi
je 0x10371f6
lea ecx, [ebp - 0x10]
push ecx
push eax
push edi
push edi
push 0x10137b8
push dword [ebp + 8]
call ebx
mov dword [ebp + 0xc], eax
cmp eax, edi
jne 0x1037212
lea eax, [ebp - 0x20]
push eax
push dword [esi]
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.010337d5
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x103720d
push dword [ebp - 0x20]
push eax
push 7
push edi
push 0x10137b8
push dword [ebp + 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
mov dword [ebp + 0xc], eax
cmp eax, edi
jne 0x1037212
push dword [esi]
mov dword [ebp - 0x1c], 1
push 0x10129b0
push 0x10372a0
push dword [ebp - 0x24]
push dword [ebp - 0xc]
call fcn.0100f695
add esp, 0x14
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0xc]
push dword [esi + 8]
call fcn.01012a1d
cmp eax, edi
je 0x103720d
mov ecx, dword [ebp - 0x28]
mov dword [eax], edi
mov dword [ecx], eax
jmp 0x103720d
cmp dword [ebp + 0xc], edi
jne 0x1037212
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0xc], eax
jmp 0x103720d
mov dword [ebp + 0xc], 0x57
cmp dword [ebp + 0xc], edi
je 0x1037260
cmp dword [ebp - 0x18], 1
jne 0x103722f
push dword [esi]
push dword [ebp + 8]
call fcn.01033193
push edi
push edi
push dword [esi]
push dword [ebp + 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegDeleteKeyExW]
cmp dword [ebp - 0x1c], edi
je 0x1037260
cmp dword [ebp - 4], edi
je 0x1037252
push dword [ebp - 0x2c]
push dword [ebp - 4]
push 7
push edi
push 0x10137b8
push dword [ebp + 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
jmp 0x1037260
push 0x10137b8
push dword [ebp + 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegDeleteValueW]
cmp dword [ebp - 4], edi
je 0x103726d
push dword [ebp - 4]
call sym.spoolsv.exe_PrvDllFreeSplMem
cmp dword [ebp - 0x14], edi
je 0x103727a
push dword [ebp - 0x14]
call sym.spoolsv.exe_PrvDllFreeSplMem
pop esi
pop ebx
cmp dword [ebp - 0xc], edi
je 0x1037289
push dword [ebp - 0xc]
call sym.spoolsv.exe_PrvDllFreeSplMem
cmp dword [ebp - 8], edi
pop edi
je 0x1037298
push dword [ebp - 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
leave
ret 8