Function at 0x1001c390
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101200c0
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x34]
push esi
xor esi, esi
cmp ebx, esi
push edi
je 0x1001c778
push ebx
call fcn.10062cc2
add esp, 4
test eax, eax
je 0x1001c778
mov edi, dword [esp + 0x40]
cmp edi, esi
je 0x1001c778
push edi
call fcn.10062cc2
add esp, 4
test eax, eax
je 0x1001c778
cmp dword [esp + 0x44], esi
je 0x1001c778
cmp dword [esp + 0x48], esi
je 0x1001c778
mov eax, dword [0x10127994]
push ebp
mov dword [esp + 0x2c], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x44], eax
push edi
lea ecx, [esp + 0x48]
push str.SYSTEMCurrentControlSetControlClass_s
push ecx
mov dword [esp + 0x44], esi
call fcn.100309a0
mov edx, dword [0x10127994]
add esp, 0xc
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x10]
push eax
push str._sProperties
push ecx
mov byte [esp + 0x44], 1
call fcn.100309a0
add esp, 0xc
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], esi
push esi
push edx
push esi
push 0x20019
push esi
push esi
push esi
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x1001c54a
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push esi
push edx
push esi
push str.Security
push eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, eax
test ebp, ebp
jne 0x1001c52f
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x4c]
cmp eax, ecx
jne 0x1001c52f
cmp dword [esp + 0x20], 3
jne 0x1001c52f
push eax
call fcn.100629b7
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1001c52b
mov ecx, dword [esp + 0x18]
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ebx
push ecx
push ebp
push str.Security
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, eax
test ebp, ebp
jne 0x1001c522
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x4c]
cmp ecx, eax
jne 0x1001c520
mov edi, dword [esp + 0x48]
mov esi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x1001c520
mov esi, 1
jmp 0x1001c522
xor esi, esi
push ebx
call fcn.10062976
add esp, 4
mov ebx, dword [esp + 0x40]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
mov dword [esp + 0x1c], 0
jne 0x1001c71a
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x14]
push esi
push edx
push esi
push 0xf003f
push esi
push esi
push esi
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebp, eax
test ebp, ebp
jne 0x1001c6bb
push ebx
call fcn.10062cc2
mov edx, dword [esp + 0x18]
add esp, 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [eax + eax + 2]
push ecx
push ebx
push 1
push ebp
push str.Class
push edx
call edi
test eax, eax
je 0x1001c5bf
mov ecx, dword [0x10171568]
test ecx, ecx
je 0x1001c5bf
push eax
push str.CSetDeviceSDDL::SetDevSDDL_RegSetValueExW_Class_Fail__err__lu_
push 0x101477d8
push 1
push 0x10170cd4
call fcn.10060b60
add esp, 0x14
mov edx, dword [esp + 0x14]
mov eax, dword [0x101477d4]
lea ecx, [esp + 0x28]
push 4
push ecx
push 1
push 0
push str.NoDisplayClass
push edx
mov dword [esp + 0x40], eax
call edi
test eax, eax
je 0x1001c607
mov ecx, dword [0x10171568]
test ecx, ecx
je 0x1001c607
push eax
push str.CSetDeviceSDDL::SetDevSDDL_RegSetValueExW_NoDisplayClass_Fail__err__lu_
push 0x101477d8
push 1
push 0x10170cd4
call fcn.10060b60
add esp, 0x14
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x28]
push 4
push eax
push 1
push 0
push str.NoUseClass
push ecx
call edi
test eax, eax
je 0x1001c646
mov ecx, dword [0x10171568]
test ecx, ecx
je 0x1001c646
push eax
push str.CSetDeviceSDDL::SetDevSDDL_RegSetValueExW_NoUseClass_Fail__err__lu_
push 0x101477d8
push 1
push 0x10170cd4
call fcn.10060b60
add esp, 0x14
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x24]
push 0
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.Properties
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebp, eax
test ebp, ebp
jne 0x1001c6d1
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x24]
push esi
push ecx
push 3
push eax
push str.Security
push edx
call edi
mov ebp, eax
test ebp, ebp
jne 0x1001c6f6
mov eax, dword [0x10171568]
mov dword [esp + 0x2c], 1
test eax, eax
je 0x1001c71a
push str.CSetDeviceSDDL::SetDevSDDL_succeed_
push 0x101477d8
push 1
push 0x10170cd4
call fcn.10060b60
add esp, 0x10
jmp 0x1001c71a
mov eax, dword [0x10171568]
test eax, eax
je 0x1001c71a
mov eax, dword [esp + 0x44]
push ebp
push eax
push str.CSetDeviceSDDL::SetDevSDDL_RegCreateKeyEx_Fail__subkey__s__err__lu_
jmp 0x1001c706
mov eax, dword [0x10171568]
test eax, eax
je 0x1001c71a
push ebp
push str.CSetDeviceSDDL::SetDevSDDL_RegCreateKeyEx_Fail__subkey_Properties__err__lu_
push 0x101477d8
push 1
push 0x10170cd4
call fcn.10060b60
add esp, 0x14
jmp 0x1001c71a
mov eax, dword [0x10171568]
test eax, eax
je 0x1001c71a
push ebp
push esi
push str.CSetDeviceSDDL::SetDevSDDL_RegSetValueExW_Security_Fail__ulSize__lu__err__lu_
push 0x101477d8
push 1
push 0x10170cd4
call fcn.10060b60
add esp, 0x18
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 0
call fcn.1002da20
lea ecx, [esp + 0x44]
mov dword [esp + 0x38], 0xffffffff
call fcn.1002da20
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1001c748
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1001c757
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x50]
test eax, eax
je 0x1001c761
mov dword [eax], ebp
mov eax, dword [esp + 0x2c]
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret