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

Disassembly:
push 0xffffffffffffffff
push 0x475ea1
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49ef38]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x20], esi
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], eax
lea ecx, [esi + 0x24]
mov dword [esp + 0x34], edi
mov dword [esi], vtable.CDeviceDetect.0
call fcn.0040e9b0
lea ecx, [esi + 0x3c]
mov byte [esp + 0x34], 1
call fcn.0040e9b0
lea ecx, [esi + 0x54]
mov byte [esp + 0x34], 2
call fcn.0040e9b0
mov dword [esi + 0x6c], edi
mov edx, dword [0x49f4e4]
mov eax, dword [edx + 0xc]
mov ecx, 0x49f4e4
mov byte [esp + 0x34], 4
call eax
add eax, 0x10
mov dword [esi + 0x74], eax
lea ecx, [esi + 0x90]
mov byte [esp + 0x34], 5
call fcn.0045c300
lea ebp, [esi + 0x130]
mov dword [ebp], edi
mov dword [ebp + 4], edi
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], edi
lea ecx, [esi + 0x144]
mov byte [esp + 0x34], 7
call fcn.0044d3d0
xor ebx, ebx
mov dword [esi + 0x140], edi
mov dword [esp + 0x18], edi
mov dword [esi + 0x80], 0x3c
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], edi
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
push edi
push 0x2001f
push edi
push edi
push edi
push str.SoftwareSamsungKiesConnect
push SysReAllocStringLen
mov byte [esp + 0x58], 9
mov dword [esp + 0x38], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x417e09
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], edi
lea eax, [esp + 0x14]
push eax
lea eax, [esi + 0x80]
push eax
lea ecx, [esp + 0x24]
push ecx
push edi
push str.RecoveryTimer
push ebx
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x417e3a
cmp dword [esp + 0x1c], 4
je 0x417e5a
mov edx, dword [esi + 0x80]
push 4
lea eax, [esp + 0x20]
push eax
push 4
push edi
push str.RecoveryTimer
push ebx
mov dword [esp + 0x34], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push edi
push str.Autoconnect
push ebx
mov dword [esp + 0x34], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
cmp dword [esp + 0x18], edi
push edi
setne cl
push edi
push 1
push edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x7c], ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
mov dword [0x49eff4], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push ebp
lea ecx, [esi + 0x12c]
call fcn.00405cf0
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x417f05
push edi
push ecx
mov eax, esp
mov dword [esp + 0x24], esp
push edi
push edi
push str.NPSC_Detect_Device_Window
push ecx
mov dword [esi + 4], edi
mov dword [eax], edi
mov eax, esp
mov dword [esp + 0x34], esp
push edi
mov ecx, esi
mov dword [eax], edi
call fcn.0040f3b0
cmp eax, edi
jne 0x417f05
mov eax, dword [esi + 0x6c]
cmp eax, edi
je 0x417f05
mov dword [esi + 0x6c], edi
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push str.CDeviceDetect::CDeviceDetect
push str._s_Create_Device_Window_
call fcn.004031a0
mov eax, dword [esi + 4]
add esp, 8
push edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi + 0x70], edi
cmp ebx, edi
je 0x417f30
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret