Function at 0x401140
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x41f004]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
push edi
push str.Start_MTU_device_monitor_thread_n
mov edi, ecx
call fcn.00404060
add esp, 4
push 0x15f900
push 0
push 0x57fbc0
call fcn.004050d0
add esp, 0xc
push 0x15f900
push 0
push 0x4202a0
call fcn.004050d0
add esp, 0xc
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x2710
mov byte [esp + 0x18], 0
test eax, eax
jne 0x4011d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_create_startup_event:__d_n
call fcn.00404060
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.004040bd
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x18]
push eax
push 0x401470
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401226
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_launch_device_monitor_thread__error__d_n
call fcn.00404060
push str.Error:_Unable_to_launch__possibly_another_instance_already_running_n
call fcn.00401010
add esp, 0xc
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.004040bd
mov esp, ebp
pop ebp
ret
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movzx eax, byte [esp + 0x18]
push eax
push str.Startup_event_signaled:__d_n
call fcn.00404060
add esp, 8
cmp byte [esp + 0x18], 0
je 0x401276
push str.Unable_to_launch_device_monitor_thread_n
call fcn.00404060
add esp, 4
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.004040bd
mov esp, ebp
pop ebp
ret
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 1
jne 0x4013cc
push str.App_mode__create_window_n
call fcn.00404060
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x420280], eax
test eax, eax
jne 0x4012c2
call edi
push eax
push str.App_mode__GetModuleHandle_failure__d_n
call fcn.00404060
mov eax, dword [0x420280]
add esp, 8
push 0x7f00
push 0
mov dword [0x420220], 0x30
mov dword [0x420224], 3
mov dword [0x420228], 0x402f40
mov dword [0x42022c], 0
mov dword [0x420230], 0
mov dword [0x420234], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push 0
mov dword [0x420238], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0
mov dword [0x42023c], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push 0x420220
mov dword [0x420240], eax
mov dword [0x420244], 0x41bb04
mov dword [0x420248], 0x41c1e0
mov dword [0x42024c], 0
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
jne 0x401368
call edi
push eax
push str.App_mode__RegisterClass_failure__d_n
call fcn.00404060
add esp, 8
push 0
push dword [0x420280]
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0x20000000
push str.QCMTU
push str.QCMTU
push 0x8000000
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x420284], eax
test eax, eax
jne 0x4013c0
call edi
push eax
push str.App_mode__CreateWindow_failure__d_n
call fcn.00404060
add esp, 8
nop dword [eax + eax]
call fcn.00407b7a
cmp eax, 0x1b
jne 0x4013c0
jmp 0x401427
xorps xmm0, xmm0
lea eax, [esp + 0x20]
movaps xmmword [esp + 0x20], xmm0
push 1
movaps xmmword [esp + 0x34], xmm0
movups xmm0, xmmword [0x41f7b0]
push eax
push dword [0x4201d4]
mov dword [esp + 0x2c], 0x20
mov dword [esp + 0x30], 5
movups xmmword [0x42026c], xmm0
call dword [sym.imp.USER32.dll_RegisterDeviceNotificationA]
mov dword [0x4201cc], eax
test eax, eax
jne 0x401433
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_register_device_notification__error__d_n
call fcn.00404060
add esp, 8
push dword [0x42028c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.USER32.dll_UnregisterDeviceNotification]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Device_monitor_thread_terminated_n
call fcn.00404060
mov ecx, dword [esp + 0x50]
add esp, 4
pop edi
pop esi
xor ecx, esp
call fcn.004040bd
mov esp, ebp
pop ebp
ret