Function at 0x419fe3
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ce63
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x11cc
call fcn.0042a920
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x42c], 0
mov byte [ebp - 0x430], 0
mov dword [ebp - 0x96c], 0
mov dword [ebp - 0x740], 0
mov dword [ebp - 0x73c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x328], 4
mov dword [ebp - 0x968], 0
mov dword [ebp - 0x760], 0
lea ecx, [ebp - 0x14]
call fcn.004044f0
mov dword [ebp - 4], 0
mov byte [ebp - 0x634], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x633]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0x10]
and eax, 0xff
test eax, eax
je 0x41a82e
push 0xff
push 0
lea ecx, [ebp - 0x124]
push ecx
call fcn.0042a3a0
add esp, 0xc
mov byte [ebp - 4], 1
mov dword [ebp - 0x96c], 0
push 0x12
push 0
push 0
push 0x44fc70
call dword [0x46c9f8]
mov dword [ebp - 0x11cc], eax
mov edx, dword [ebp - 0x11cc]
mov dword [ebp - 0x96c], edx
jmp 0x41a147
mov dword [ebp - 4], 0
cmp dword [ebp - 0x96c], 0xffffffff
jne 0x41a1b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x974], eax
mov eax, dword [ebp - 0x974]
push eax
push 0x462658
lea ecx, [ebp - 0x124]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0x11b0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0043d7a3
mov eax, dword [ebp - 0x11b0]
jmp 0x41aafc
mov dword [ebp - 0x75c], 0x1c
mov dword [ebp - 0x434], 0
jmp 0x41a1d5
mov eax, dword [ebp - 0x434]
add eax, 1
mov dword [ebp - 0x434], eax
push pe_nt_image_headers32
push 0
lea ecx, [ebp - 0x428]
push ecx
call fcn.0042a3a0
add esp, 0xc
push pe_nt_image_headers32
push 0
lea edx, [ebp - 0x734]
push edx
call fcn.0042a3a0
add esp, 0xc
push 0x200
push 0
lea eax, [ebp - 0x964]
push eax
call fcn.0042a3a0
add esp, 0xc
push 0x200
push 0
lea ecx, [ebp - 0x324]
push ecx
call fcn.0042a3a0
add esp, 0xc
mov byte [ebp - 0x42c], 0
mov byte [ebp - 0x430], 0
lea edx, [ebp - 0x75c]
push edx
mov eax, dword [ebp - 0x434]
push eax
push 0x44fc70
push 0
mov ecx, dword [ebp - 0x96c]
push ecx
call dword [0x46c9fc]
mov dword [ebp - 0x1c], eax
push str._n_ScreenPrint_Polling_starting...
call fcn.00401000
add esp, 4
cmp dword [ebp - 0x1c], 0
jne 0x41a285
push str._n_ScreenPrint___Either_no_USB_device_is_found_or_all_USB_devices_Enumeration_completed...
call fcn.00401000
add esp, 4
jmp 0x41a780
push str._n_ScreenPrint___USB_device_found...
call fcn.00401000
add esp, 4
push 0x20019
push 0
lea edx, [ebp - 0x75c]
push edx
mov eax, dword [ebp - 0x96c]
push eax
call dword [0x46ca08]
mov dword [ebp - 0x764], eax
cmp dword [ebp - 0x764], 0xffffffff
jne 0x41a2ce
push str._n_SysUtil__SetupDiOpenDeviceInterfaceRegKey___Fail_
call fcn.00401000
add esp, 4
jmp 0x41a1c6
mov dword [ebp - 0x328], 4
push 0x200
push 0
lea ecx, [ebp - 0x634]
push ecx
call fcn.0042a3a0
add esp, 0xc
lea edx, [ebp - 0x328]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
push ecx
push 0
push str.Port_Number
mov edx, dword [ebp - 0x764]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x738], eax
cmp dword [ebp - 0x738], 0
je 0x41a332
push str._SysUtil__Get_Port_Name_Fail_
call fcn.00401000
add esp, 4
jmp 0x41a1c6
mov dword [ebp - 0x328], 0xff
lea eax, [ebp - 0x328]
push eax
lea ecx, [ebp - 0x634]
push ecx
lea edx, [ebp - 0x20]
push edx
push 0
push str.Base_Name
mov eax, dword [ebp - 0x764]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x738], eax
cmp dword [ebp - 0x738], 0
je 0x41a3a5
push str._SysUtil__Get_Base_Name_Fail_
call fcn.00401000
add esp, 4
lea ecx, [ebp - 0x634]
push ecx
call fcn.0042a0a0
add esp, 4
test eax, eax
jne 0x41a3a5
push 0x4627d8
lea edx, [ebp - 0x634]
push edx
call fcn.00429bd0
add esp, 8
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x634]
push ecx
push str._s_03d
lea edx, [ebp - 0x324]
push edx
call fcn.0042a6b4
add esp, 0x10
push 0
lea eax, [ebp - 0x740]
push eax
push 0
push 0
lea ecx, [ebp - 0x75c]
push ecx
mov edx, dword [ebp - 0x96c]
push edx
call dword [0x46ca04]
mov eax, dword [ebp - 0x740]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x41a45d
mov ecx, dword [ebp - 0x96c]
push ecx
call dword [0x46ca0c]
mov edx, dword [ebp - 0x764]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x96c], 0
mov eax, dword [ebp - 0x24]
push eax
push str._n_IO_Module__Error_in_GetUSBControlPortName__psp_ddi___x
call fcn.00401000
add esp, 8
mov dword [ebp - 0x11b4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0043d7a3
mov eax, dword [ebp - 0x11b4]
jmp 0x41aafc
mov ecx, dword [ebp - 0x24]
mov dword [ecx], 5
push 0
push 0
mov edx, dword [ebp - 0x740]
push edx
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x75c]
push ecx
mov edx, dword [ebp - 0x96c]
push edx
call dword [0x46ca04]
test eax, eax
jne 0x41a4f5
mov eax, dword [ebp - 0x24]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x96c]
push ecx
call dword [0x46ca0c]
mov dword [ebp - 0x96c], 0
push str._n_IO_Module__Error_in_SetupDiGetDeviceInterfaceDetail
call fcn.00401000
add esp, 4
mov edx, dword [ebp - 0x764]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x11b8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0043d7a3
mov eax, dword [ebp - 0x11b8]
jmp 0x41aafc
mov dword [ebp - 0x978], 0
jmp 0x41a510
mov eax, dword [ebp - 0x978]
add eax, 1
mov dword [ebp - 0x978], eax
mov ecx, 0x46c938
call fcn.0041afc0
cmp dword [ebp - 0x978], eax
jae 0x41a550
mov ecx, dword [ebp - 0x24]
add ecx, 4
push ecx
mov edx, dword [ebp - 0x978]
push edx
mov ecx, 0x46c938
call fcn.0041b000
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x41a54e
mov byte [ebp - 0x42c], 1
jmp 0x41a550
jmp 0x41a501
mov eax, dword [ebp - 0x42c]
and eax, 0xff
test eax, eax
jne 0x41a75b
mov dword [ebp - 0x97c], 0
lea ecx, [ebp - 0xd80]
call fcn.0041aed0
push 0x200
push 0
lea ecx, [ebp - 0xd80]
push ecx
call fcn.0042a3a0
add esp, 0xc
mov edx, dword [ebp - 0x24]
add edx, 4
push edx
call fcn.0042a0a0
add esp, 4
cmp eax, 0x200
jae 0x41a5bb
mov eax, dword [ebp - 0x24]
add eax, 4
push eax
call fcn.0042a0a0
add esp, 4
mov dword [ebp - 0x11d0], eax
jmp 0x41a5c5
mov dword [ebp - 0x11d0], 0x1ff
mov ecx, dword [ebp - 0x11d0]
push ecx
mov edx, dword [ebp - 0x24]
add edx, 4
push edx
lea eax, [ebp - 0xd80]
push eax
call fcn.0042a150
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
mov ecx, dword [ebp - 0x24]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x97c], eax
cmp dword [ebp - 0x73c], 0xffffffff
jne 0x41a6b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xd84], eax
mov edx, dword [ebp - 0xd84]
push edx
push str._ScrPrt_::_Polling_Thread_:_Failed_to_get_handle_of_USB_device_____d__n
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x96c], 0
je 0x41a65f
mov edx, dword [ebp - 0x96c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x96c]
push ecx
call dword [0x46ca0c]
mov edx, dword [ebp - 0x764]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x11bc], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0043d7a3
mov eax, dword [ebp - 0x11bc]
jmp 0x41aafc
lea ecx, [ebp - 0x14]
call fcn.0043d72e
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x97c]
push ecx
call fcn.0041ab0d
add esp, 8
test eax, eax
je 0x41a6d8
mov byte [ebp - 0x980], 1
jmp 0x41a6df
mov byte [ebp - 0x980], 0
push 0x200
push 0
lea edx, [ebp - 0xb80]
push edx
call fcn.0042a3a0
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.00404570
cmp eax, 0x200
jae 0x41a714
lea ecx, [ebp - 0x14]
call fcn.00404570
mov dword [ebp - 0x11d4], eax
jmp 0x41a71e
mov dword [ebp - 0x11d4], 0x1ff
mov eax, dword [ebp - 0x11d4]
push eax
lea ecx, [ebp - 0x14]
call fcn.00404560
push eax
lea ecx, [ebp - 0xb80]
push ecx
call fcn.0042a150
add esp, 0xc
lea edx, [ebp - 0xd80]
push edx
mov ecx, 0x46c938
call fcn.0041b020
mov eax, dword [ebp - 0x97c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x24]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x764]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41a1c6
cmp dword [ebp - 0x96c], 0
je 0x41a800
mov eax, dword [ebp - 0x96c]
push eax
call dword [0x46ca0c]
test eax, eax
jne 0x41a800
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xd88], eax
mov ecx, dword [ebp - 0xd88]
push ecx
push str._IO_Module__SSUSBOPEN:_SetupDiGetClassDevs_fail_____d__n
lea edx, [ebp - 0x124]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x96c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x11c0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0043d7a3
mov eax, dword [ebp - 0x11c0]
jmp 0x41aafc
mov dword [ebp - 0x96c], 0
mov dword [ebp - 0x11c4], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0043d7a3
mov eax, dword [ebp - 0x11c4]
jmp 0x41aafc
mov dword [ebp - 0xd90], 0
mov byte [ebp - 0xd8c], 0
mov edx, dword [ebp + 8]
mov dword [ebp - 0x1198], edx
mov eax, dword [ebp - 0x1198]
cmp dword [eax + 4], 5
jne 0x41aadd
mov ecx, dword [ebp - 0x1198]
mov dword [ebp - 0x11a0], ecx
lea ecx, [ebp - 0x119c]
call fcn.004044f0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x11a0]
add edx, 0x1c
push edx
lea ecx, [ebp - 0x119c]
call fcn.0043d92c
mov eax, dword [ebp + 0xc]
and eax, 0xff
test eax, eax
je 0x41aa5b
lea ecx, [ebp - 0x1194]
call fcn.0041aed0
push 0x200
push 0
lea ecx, [ebp - 0x1194]
push ecx
call fcn.0042a3a0
add esp, 0xc
lea ecx, [ebp - 0x119c]
call fcn.00404570
cmp eax, 0x200
jae 0x41a8de
lea ecx, [ebp - 0x119c]
call fcn.00404570
mov dword [ebp - 0x11d8], eax
jmp 0x41a8e8
mov dword [ebp - 0x11d8], 0x1ff
mov edx, dword [ebp - 0x11d8]
push edx
lea ecx, [ebp - 0x119c]
call fcn.00404560
push eax
lea eax, [ebp - 0x1194]
push eax
call fcn.0042a150
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
mov ecx, dword [ebp - 0x11a0]
add ecx, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xd90], eax
lea ecx, [ebp - 0x14]
call fcn.0043d72e
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0xd90]
push eax
call fcn.0041ab0d
add esp, 8
test eax, eax
je 0x41a95a
mov byte [ebp - 0xd94], 1
jmp 0x41a961
mov byte [ebp - 0xd94], 0
push 0x200
push 0
lea ecx, [ebp - 0xf94]
push ecx
call fcn.0042a3a0
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.00404570
cmp eax, 0x200
jae 0x41a996
lea ecx, [ebp - 0x14]
call fcn.00404570
mov dword [ebp - 0x11dc], eax
jmp 0x41a9a0
mov dword [ebp - 0x11dc], 0x1ff
mov edx, dword [ebp - 0x11dc]
push edx
lea ecx, [ebp - 0x14]
call fcn.00404560
push eax
lea eax, [ebp - 0xf94]
push eax
call fcn.0042a150
add esp, 0xc
mov dword [ebp - 0x11a4], 0
jmp 0x41a9da
mov ecx, dword [ebp - 0x11a4]
add ecx, 1
mov dword [ebp - 0x11a4], ecx
mov ecx, 0x46c938
call fcn.0041afc0
cmp dword [ebp - 0x11a4], eax
jae 0x41aa18
mov edx, dword [ebp - 0x11a4]
push edx
mov ecx, 0x46c938
call fcn.0041b000
push eax
lea ecx, [ebp - 0x119c]
call fcn.00413ba0
test eax, eax
jne 0x41aa16
mov byte [ebp - 0xd8c], 1
jmp 0x41aa18
jmp 0x41a9cb
mov eax, dword [ebp - 0xd8c]
and eax, 0xff
test eax, eax
jne 0x41aa4c
lea ecx, [ebp - 0x1194]
push ecx
mov ecx, 0x46c938
call fcn.0041b020
mov edx, dword [ebp - 0x119c]
push edx
push str.DeviceNameString___s_is_added_to_UpdateDeviceList
call fcn.00401000
add esp, 8
mov eax, dword [ebp - 0xd90]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41aace
mov ecx, 0x46c938
call fcn.004062c0
mov dword [ebp - 0x11a8], eax
mov ecx, 0x46c938
call fcn.004045c0
cmp dword [ebp - 0x11a8], eax
je 0x41aace
mov ecx, dword [ebp - 0x11a8]
push ecx
lea ecx, [ebp - 0x119c]
call fcn.00413ba0
test eax, eax
jne 0x41aaba
mov edx, dword [ebp - 0x11a8]
push edx
mov ecx, 0x46c938
call fcn.0041b050
mov eax, dword [ebp - 0x119c]
push eax
push str.DeviceNameString___s_is_removed_from_UpdateDeviceList
call fcn.00401000
add esp, 8
jmp 0x41aace
mov ecx, dword [ebp - 0x11a8]
add ecx, 0x401
mov dword [ebp - 0x11a8], ecx
jmp 0x41aa6b
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x119c]
call fcn.0043d7a3
mov dword [ebp - 0x11c8], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0043d7a3
mov eax, dword [ebp - 0x11c8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret