Function at 0x411d20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x46a06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
test ebx, ebx
jne 0x411d4b
mov eax, 0xe0000013
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414ab7
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0x1c
xor eax, eax
movlpd qword [ebp - 0x28], xmm0
cmp dword [ebx], 0xffffffff
push esi
movlpd qword [ebp - 0x20], xmm0
mov esi, 0xe0000001
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x30], eax
je 0x411d8a
lea eax, [esi + 0x11]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414ab7
mov esp, ebp
pop ebp
ret
push edi
push 0x12
push 0
push 0
push 0x4610f0
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov edi, eax
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x4610f0
push 0
push edi
mov dword [ebp - 0x4c], edi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x411f0e
nop dword [eax]
inc dword [ebp - 0x48]
lea eax, [ebp - 0x30]
push 0
push eax
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
push dword [ebp - 0x30]
call fcn.004376f4
add esp, 4
mov edi, eax
lea eax, [ebp - 0x30]
push 0
push eax
mov dword [edi], 6
lea eax, [ebp - 0x2c]
push dword [ebp - 0x30]
push edi
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
jne 0x411e10
mov esi, 0xe0000001
jmp 0x411eb1
push 0
push 0xe0000080
push 3
push 0
push 3
push 0xc0000000
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x411e3a
mov esi, 0xe0000009
jmp 0x411eb1
push 0
push 0
push 0
xorps xmm0, xmm0
mov dword [ebp - 8], 0
push 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 8
push eax
push 0
push 0
push 8
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 1
push eax
push 0x2aa00c
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x411edd
push dword [ebp - 0x34]
mov esi, 0xe0000008
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.004337dc
mov edi, dword [ebp - 0x4c]
lea eax, [ebp - 0x2c]
add esp, 4
push eax
mov eax, dword [ebp - 0x48]
push eax
push 0x4610f0
push 0
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x411dc0
jmp 0x411f0e
push 0
push 0
push ebx
push 0x411a60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
mov dword [ebx + 4], eax
mov esi, 0x20000000
call fcn.004337dc
add esp, 4
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x4c]
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414ab7
mov esp, ebp
pop ebp
ret