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

Disassembly:
sub esp, 0x678
mov eax, dword [0x100c230c]
xor eax, esp
mov dword [esp + 0x674], eax
mov eax, dword [esp + 0x680]
push ebx
push ebp
mov ebp, dword [esp + 0x684]
push esi
push edi
mov ebx, ecx
push 4
mov ecx, 7
lea esi, [esp + 0x698]
lea edi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [esp + 0x30]
push ecx
push 4
xor edi, edi
push edi
push str.ResetErrorCountersOnSuccess
push ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x44], 1
call esi
push 0x1fe
lea eax, [esp + 0x286]
xor edx, edx
push edi
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], 4
mov word [esp + 0x28c], dx
call fcn.10079c60
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x284]
push edx
lea eax, [esp + 0x24]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push str.MasterIdDataCheckSum
push ebx
call edi
test eax, eax
jne 0x1002c23d
push str.MasterIdDataCheckSum
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x284]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push str.SlaveIdDataChecksum
push ebx
call edi
test eax, eax
jne 0x1002c269
push str.SlaveIdDataChecksum
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 4
lea ecx, [esp + 0x1c]
push ecx
push 4
push 0
push str.UserTimingModeAllowed
push ebx
call esi
push 4
lea edx, [esp + 0x1c]
push edx
push 4
push 0
push str.TimingModeAllowed
push ebx
call esi
push 4
lea eax, [esp + 0x1c]
push eax
push 4
push 0
push str.SlaveDeviceTimingModeAllowed
push ebx
call esi
push 4
lea ecx, [esp + 0x1c]
push ecx
push 4
push 0
push str.UserSlaveDeviceTimingModeAllowed
push ebx
call esi
test eax, eax
jne 0x1002c3e6
push 0x228
push eax
lea edx, [esp + 0x5c]
push edx
call fcn.10079c60
mov edx, dword [esp + 0x20]
add esp, 0xc
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x34]
push ecx
push edx
mov dword [esp + 0x5c], 0x22c
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstallParamsW]
test eax, eax
je 0x1002c3dd
mov edx, dword [esp + 0x14]
or dword [esp + 0x54], 0x4000
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiSetDeviceInstallParamsW]
test eax, eax
je 0x1002c3d4
mov eax, dword [esp + 0x44]
push 0
push 1
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Reenumerate_DevNode_Ex]
test eax, eax
jne 0x1002c3cb
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [esp + 0x48a]
push edx
mov word [esp + 0x48c], cx
call fcn.10079c60
add esp, 0xc
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x484]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push str.DeviceTimingMode
push ebx
call edi
test eax, eax
jne 0x1002c3ed
mov ecx, dword [esp + 0x480]
mov dword [esp + 0x28], ecx
test ecx, ecx
je 0x1002c3c1
call fcn.1002c120
cmp eax, 1
jne 0x1002c3c1
push 4
lea eax, [esp + 0x18]
push eax
push 4
push 0
push str.DeviceTimingMode
push ebx
mov dword [esp + 0x38], 0
mov dword [ebp + 0x1c], 7
mov dword [esp + 0x2c], 0x20010
call esi
jmp 0x1002c3ed
mov dword [esp + 0x20], 1
jmp 0x1002c3ed
mov dword [ebp + 0x1c], 6
jmp 0x1002c3ed
mov dword [ebp + 0x1c], 5
jmp 0x1002c3ed
mov dword [ebp + 0x1c], 4
jmp 0x1002c3ed
mov dword [ebp + 0x1c], 3
lea edi, [ebp + 0x24]
lea ebx, [esp + 0x28]
call fcn.10066440
mov ecx, dword [esp + 0x684]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100755ed
add esp, 0x678
ret 0x24