Function at 0x42e310
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x6c0fe4]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], edi
test edi, edi
jne 0x42e334
xor edx, edx
jmp 0x42e337
mov edx, dword [edi + 0x20]
lea eax, [edi + 0x20]
test edi, edi
mov ecx, 0x20
cmovne ecx, eax
mov eax, dword [edi + 0xb0]
mov dword [esp + 8], ecx
mov dword [eax + 4], edx
mov eax, dword [edi + 0xb0]
mov ecx, dword [ecx]
mov dword [eax + 4], ecx
lea eax, [esp + 0x30]
mov esi, dword [edi + 0xb0]
push eax
call dword [sym.imp.HID.DLL_HidD_GetHidGuid]
movups xmm0, xmmword [esp + 0x30]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], 0
push eax
push dword [esi + 4]
mov dword [esp + 0x38], 0
mov dword [esp + 0x1c], 0x20
mov dword [esp + 0x20], 5
movups xmmword [esp + 0x28], xmm0
call dword [sym.imp.USER32.dll_RegisterDeviceNotificationW]
mov dword [esi + 0x14], eax
mov ecx, dword [edi + 0xb0]
call fcn.00441e40
test eax, eax
je 0x42e5b1
mov eax, dword [edi + 0xbc]
mov byte [edi + 0x84], 0
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp byte [edi + 0x85], 0
je 0x42e3fb
mov eax, dword [esp + 8]
push 5
push dword [eax]
call dword [sym.imp.USER32.dll_KillTimer]
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.005b03a9
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0x84], 0
jne 0x42e5bf
mov eax, dword [esp + 8]
push 0
push 0xbb8
push 5
push dword [eax]
mov byte [edi + 0x84], 1
mov byte [edi + 0x8d], 0
call dword [sym.imp.USER32.dll_SetTimer]
mov esi, dword [edi + 0xb4]
lea edi, [esi + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [esi + 0x2c]
inc dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0xc
call fcn.0047535e
add esp, 4
mov dword [esp + 8], eax
test eax, eax
je 0x42e473
mov dword [eax + 4], 0
mov byte [eax + 8], 1
mov dword [eax], vtable.CSessionComReqMode.0
jmp 0x42e475
xor eax, eax
push 0
push 0
push eax
push 0x465470
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov esi, dword [esp + 0xc]
mov esi, dword [esi + 0xb4]
lea edi, [esi + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [esi + 0x2c]
inc dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0xc
call fcn.0047535e
add esp, 4
mov dword [esp + 8], eax
test eax, eax
je 0x42e4de
mov dword [eax + 4], 0
mov byte [eax + 8], 1
mov dword [eax], vtable.CSessionComReqSerial.0
jmp 0x42e4e0
xor eax, eax
push 0
push 0
push eax
push 0x467f30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [esp + 0xc]
mov esi, dword [eax + 0xb4]
lea edi, [esi + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [esi + 0x2c]
inc dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0xc
call fcn.0047535e
add esp, 4
mov dword [esp + 8], eax
test eax, eax
je 0x42e549
mov dword [eax + 4], 0
mov byte [eax + 8], 1
mov dword [eax], vtable.CSessionComCNameMode.0
jmp 0x42e54b
xor eax, eax
push 0
push 0
push eax
push 0x465bc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [esp + 0xc]
cmp byte [eax + 0xc5], 0
lea ecx, [eax + 0x5f8]
je 0x42e596
push 0x6930bc
call fcn.0047cd63
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.005b03a9
mov esp, ebp
pop ebp
ret
push str.Device_Find
call fcn.0047cd63
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.005b03a9
mov esp, ebp
pop ebp
ret
mov ecx, edi
mov byte [edi + 0x84], 1
call fcn.0042e660
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
xor ecx, esp
call fcn.005b03a9
mov esp, ebp
pop ebp
ret