Function at 0x413be0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
push ebx
push esi
push edi
lea edi, [ebp - 0xa0]
mov ecx, 0x28
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x48b060]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x48e032
call fcn.00418750
cmp dword [ebp + 8], 0
jne 0x413c22
mov eax, 0xe0000013
jmp 0x413ebf
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x24], 0x1c
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x48], 0xe0000001
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
je 0x413c67
mov eax, 0xe0000012
jmp 0x413ebf
mov esi, esp
push 0x12
push 0
push 0
push 0x467390
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
cmp esi, esp
call fcn.00418720
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x160], eax
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
mov esi, esp
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x160]
push eax
push 0x467390
push 0
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
cmp esi, esp
call fcn.00418720
test eax, eax
je 0x413ea9
mov esi, esp
push 0
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
cmp esi, esp
call fcn.00418720
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00430e50
add esp, 4
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [eax], 6
mov esi, esp
push 0
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x60]
push edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
cmp esi, esp
call fcn.00418720
test eax, eax
jne 0x413d3d
mov eax, dword [ebp - 0x60]
push eax
call fcn.0042e070
add esp, 4
mov dword [ebp - 0x48], 0xe0000001
jmp 0x413c84
mov esi, esp
push 0
push 0xe0000080
push 3
push 0
push 3
push 0xc0000000
mov eax, dword [ebp - 0x60]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp esi, esp
call fcn.00418720
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
jne 0x413d8a
mov dword [ebp - 0x48], 0xe0000009
mov eax, dword [ebp - 0x60]
push eax
call fcn.0042e070
add esp, 4
jmp 0x413c84
mov dword [ebp - 0x6c], 0
xor eax, eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov esi, esp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp esi, esp
call fcn.00418720
mov dword [ebp - 0x78], eax
push 1
lea eax, [ebp - 0x98]
push eax
call fcn.004136b0
add esp, 8
mov esi, esp
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x6c]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x98]
push edx
lea eax, [ebp - 0x98]
push eax
push 0x2aa00c
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp esi, esp
call fcn.00418720
mov esi, esp
push 1
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x88]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
cmp esi, esp
call fcn.00418720
test eax, eax
je 0x413e7e
mov esi, esp
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0x4138b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp esi, esp
call fcn.00418720
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov dword [ebp - 0x48], 0x20000000
mov eax, dword [ebp - 0x60]
push eax
call fcn.0042e070
add esp, 4
mov esi, esp
mov eax, dword [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00418720
jmp 0x413ea9
mov dword [ebp - 0x48], 0xe0000008
mov esi, esp
mov eax, dword [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00418720
mov eax, dword [ebp - 0x60]
push eax
call fcn.0042e070
add esp, 4
jmp 0x413c84
mov esi, esp
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
cmp esi, esp
call fcn.00418720
mov eax, dword [ebp - 0x48]
push edx
mov ecx, ebp
push eax
lea edx, [0x413ef0]
call fcn.004186c0
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417840
add esp, 0x160
cmp ebp, esp
call fcn.00418720
mov esp, ebp
pop ebp
ret