Function at 0x401f70
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1054
call fcn.005313a0
mov eax, dword [0x5abe6c]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [0x58dac4]
push ebx
push 0x12
push 0
push 0
lea eax, [ebp - 0x1014]
push eax
movups xmmword [ebp - 0x1014], xmm0
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401fcc
push str.luyong_error_SetupDiGetClassDevs_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00530862
mov esp, ebp
pop ebp
ret
push esi
push edi
lea eax, [ebp - 0x1030]
mov dword [ebp - 0x1030], 0x1c
push eax
xor esi, esi
lea eax, [ebp - 0x1014]
push esi
push eax
push esi
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x4021ea
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop
push 0
lea eax, [ebp - 0x1050]
mov dword [ebp - 0x1050], 0
push eax
push 0
push 0
lea eax, [ebp - 0x1030]
inc esi
push eax
push ebx
mov dword [ebp - 0x1054], esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
push dword [ebp - 0x1050]
mov dword [ebp - 0x104c], 0x1c
push 1
call fcn.0053636c
mov esi, eax
add esp, 8
test esi, esi
je 0x4021a9
lea eax, [ebp - 0x104c]
mov dword [esi], 5
push eax
push 0
push dword [ebp - 0x1050]
lea eax, [ebp - 0x1030]
mov dword [ebp - 0x104c], 0x1c
push esi
push eax
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
test eax, eax
je 0x4021da
lea ecx, [esi + 4]
lea edx, [ebp - 0x804]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x402091
push esi
call fcn.00536367
add esp, 4
mov dword [ebp - 0x1050], 0x800
lea eax, [ebp - 0x1004]
mov byte [ebp - 0x1004], 0
push 0
push 0x800
push eax
push 0
push 9
lea eax, [ebp - 0x104c]
push eax
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
je 0x4021d1
lea eax, [ebp - 0x804]
push str.vid_248apid_5b49
push eax
call fcn.00532af0
add esp, 8
test eax, eax
je 0x4021a9
lea eax, [ebp - 0x804]
push str.col05
push eax
call fcn.00532af0
add esp, 8
test eax, eax
je 0x4021a9
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
lea eax, [ebp - 0x804]
push 0
push 0x40000080
push 3
push 0
push 3
push SysReAllocStringLen
push eax
mov dword [0x5d6b10], 1
call esi
mov dword [0x5d6b0c], eax
cmp eax, 0xffffffff
je 0x402159
mov dword [0x5ac6e0], eax
push 0x58da74
jmp 0x40215e
push 0x58da88
call edi
push dword [0x5d6b04]
mov dword [0x5d6b08], 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
push 0x40000080
push 3
push 0
push 3
push 0x40000000
lea eax, [ebp - 0x804]
push eax
call esi
cmp eax, 0xffffffff
je 0x4021a2
mov dword [0x5d6af0], eax
push 0x58da9c
jmp 0x4021a7
push 0x58dab0
call edi
mov esi, dword [ebp - 0x1054]
lea eax, [ebp - 0x1030]
push eax
push esi
lea eax, [ebp - 0x1014]
push eax
push 0
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x402000
jmp 0x4021ea
push str.luyong_error_SetupDiGetDeviceRegistryProperty_n
call edi
jmp 0x4021ea
push str.luyong_error_SetupDiGetDeviceInterfaceDetail_n
call edi
push esi
call fcn.00536367
add esp, 4
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00530862
mov esp, ebp
pop ebp
ret