Function at 0x407462
Capabilities:
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x4c7d4a
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x517774]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x517774]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00423df0
mov ecx, esi
call fcn.00423590
mov eax, dword [esi + 0x6b8]
push eax
push 0xbc8
mov ecx, esi
call fcn.004551f1
mov ecx, eax
call fcn.00455516
push 0x194
call fcn.004462d0
add esp, 4
mov dword [esp + 0x18], eax
xor ebx, ebx
mov dword [esp + 0x48], ebx
cmp eax, ebx
je 0x407311
xor ecx, ecx
cmp dword [esi + 0x46c], 2
sete cl
cmp dword [esi + 0x4a4], 0x10
push ecx
push esi
jb 0x407278
mov edi, dword [esi + 0x490]
jmp 0x40727e
lea edi, [esi + 0x490]
sub esp, 0x1c
mov ecx, esp
mov eax, edi
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
mov dword [esp + 0x40], esp
mov byte [ecx + 4], bl
lea ebp, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4072a0
sub eax, ebp
push eax
push edi
call fcn.00402160
cmp dword [esi + 0x488], 0x10
mov byte [esp + 0x6c], 1
jb 0x4072c6
mov edi, dword [esi + 0x474]
jmp 0x4072cc
lea edi, [esi + 0x474]
sub esp, 0x1c
mov ecx, esp
mov eax, edi
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
mov dword [esp + 0x54], esp
mov byte [ecx + 4], bl
lea ebp, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4072e7
sub eax, ebp
push eax
push edi
call fcn.00402160
movzx edx, word [esi + 0x88]
mov ecx, dword [esp + 0x58]
push edx
mov byte [esp + 0x8c], bl
call fcn.00402340
jmp 0x407313
xor eax, eax
mov dword [esi + 0x6c0], eax
mov dword [esi + 0x458], eax
mov eax, dword [esi + 0x6bc]
xor ebp, ebp
mov dword [esp + 0x48], 0xffffffff
test eax, eax
jne 0x407412
mov edi, 0xf
mov eax, 0x519414
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x407350
sub eax, edx
push eax
push 0x519414
lea ecx, [esp + 0x28]
call fcn.00402160
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
mov dword [esp + 0x4c], 2
call fcn.00407080
test eax, eax
jne 0x4073d3
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x44]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.00402080
mov ecx, esi
call fcn.00405f10
mov eax, dword [esi]
mov edx, dword [eax + 0x190]
mov ecx, esi
call edx
cmp dword [esi + 0x5b0], ebx
jne 0x4073ea
mov ebp, 1
mov dword [esi + 0x658], ebp
mov dword [esi + 0x668], ebx
mov dword [esi + 0x6b4], ebp
jmp 0x4073ea
push str.Device_is_installed_by_OLD_CoInstaller
push 0x400
push 0x519518
call fcn.00402450
add esp, 0xc
cmp dword [esp + 0x38], 0x10
mov dword [esp + 0x48], 0xffffffff
jb 0x407406
mov eax, dword [esp + 0x24]
push eax
call fcn.004462ff
add esp, 4
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
mov ecx, dword [esi + 0x6b4]
test ecx, ecx
je 0x407446
mov edx, dword [esi]
mov eax, dword [edx + 0x18c]
push 5
mov ecx, esi
mov dword [esi + 0x6bc], ebx
call eax
push str._doNotWaitForPnP_is_true_and_CurrentState___STATE_NO_WAITING_FOR_PNP_n
push 1
push 0x519518
call fcn.00402450
add esp, 0xc
jmp 0x407477
mov ecx, dword [esi + 0x6bc]
mov edx, dword [esi]
mov eax, dword [edx + 0x18c]
test ecx, ecx
mov ecx, esi
je 0x407473
push ebx
call eax
push str._swFirst_is_true_and_CurrentState___STATE_WAITING_FOR_DEVICE_n
push 1
push 0x519518
call fcn.00402450
add esp, 0xc
jmp 0x407477
push 4
call eax
mov ecx, dword [esi + 0x6bc]
mov dword [esi + 0x460], 1
test ecx, ecx
jne 0x4074d4
cmp ebp, ebx
jne 0x4074d4
mov dword [esi + 0x464], ebx
push ebx
mov ecx, esi
call fcn.00422470
lea ecx, [esi + 0x308]
call fcn.004554fb
push eax
mov ecx, esi
call fcn.00421ab0
mov eax, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004974ba
add esp, 0x38
ret
push ebx
push 4
push ebx
push ebx
push esi
push 0x422420
call fcn.0045a1d8
mov dword [esi + 0x464], eax
cmp eax, ebx
jne 0x40750d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._waitForPnPThread_is_NULL_after_AfxBeginThread__lastError_d
push 8
push 0x519518
call fcn.00402450
add esp, 0x10
xor eax, eax
jmp 0x4074b5
mov dword [eax + 0x28], ebx
mov eax, dword [esi + 0x464]
mov edx, dword [eax + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x407495
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._waitForPnPThread__ResumeThread___returned__1__error___d
jmp 0x4074fa