Function at 0x4135a0
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.00418110
cmp dword [ebp + 8], 0
jne 0x4135e2
mov eax, 0xe0000013
jmp 0x41387f
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 0x413627
mov eax, 0xe0000012
jmp 0x41387f
mov esi, esp
push 0x12
push 0
push 0
push 0x467380
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
cmp esi, esp
call fcn.004180e0
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 0x467380
push 0
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
cmp esi, esp
call fcn.004180e0
test eax, eax
je 0x413869
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.004180e0
mov eax, dword [ebp - 0x3c]
push eax
call fcn.004302d0
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.004180e0
test eax, eax
jne 0x4136fd
mov eax, dword [ebp - 0x60]
push eax
call fcn.0042da30
add esp, 4
mov dword [ebp - 0x48], 0xe0000001
jmp 0x413644
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.004180e0
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
jne 0x41374a
mov dword [ebp - 0x48], 0xe0000009
mov eax, dword [ebp - 0x60]
push eax
call fcn.0042da30
add esp, 4
jmp 0x413644
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.004180e0
mov dword [ebp - 0x78], eax
push 1
lea eax, [ebp - 0x98]
push eax
call fcn.00413070
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.004180e0
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.004180e0
test eax, eax
je 0x41383e
mov esi, esp
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0x413270
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp esi, esp
call fcn.004180e0
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov dword [ebp - 0x48], 0x20000000
mov eax, dword [ebp - 0x60]
push eax
call fcn.0042da30
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.004180e0
jmp 0x413869
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.004180e0
mov eax, dword [ebp - 0x60]
push eax
call fcn.0042da30
add esp, 4
jmp 0x413644
mov esi, esp
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
cmp esi, esp
call fcn.004180e0
mov eax, dword [ebp - 0x48]
push edx
mov ecx, ebp
push eax
lea edx, [0x4138b0]
call fcn.00418080
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417200
add esp, 0x160
cmp ebp, esp
call fcn.004180e0
mov esp, ebp
pop ebp
ret