Function at 0x403ac0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413b08
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x41a034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x70], ecx
push 0x30
push 0
lea eax, [ebp - 0x60]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [ebp - 0x60], 0x30
mov dword [ebp - 0x58], 0x403d30
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x38], 0x414d90
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.USER32.dll_RegisterClassExW]
movzx edx, ax
test edx, edx
jne 0x403b30
xor eax, eax
jmp 0x403d1a
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0
push 0xfffffffffffffffd
push 0
push 0x80000000
push 0
push 0x80000000
push 0
push 0
push str.DeviceMonitorWindowClass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ecx, dword [ebp - 0x70]
mov dword [ecx + 0x20], eax
mov edx, dword [ebp - 0x70]
cmp dword [edx + 0x20], 0
jne 0x403b74
xor eax, eax
jmp 0x403d1a
mov eax, dword [ebp - 0x70]
push eax
push 0xffffffffffffffeb
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0xffffffffffffffeb
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
cmp eax, dword [ebp - 0x70]
je 0x403ba2
xor eax, eax
jmp 0x403d1a
push 0
push 0
mov edx, dword [ebp - 0x70]
add edx, 8
push edx
push 0x4064f0
mov eax, dword [ebp - 0x70]
push eax
call fcn.0040c150
add esp, 0x14
test eax, eax
jne 0x403bda
push str.create_DeskTopEventThread_failed_
mov ecx, dword [ebp - 0x70]
push ecx
call fcn.00406660
add esp, 8
xor eax, eax
jmp 0x403d1a
lea edx, [ebp - 0x64]
push edx
push 0
mov eax, dword [ebp - 0x70]
push eax
push 0x403ef0
push 0
push 0
call dword [sym.imp.MSVCR100.dll__beginthreadex]
add esp, 0x18
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x403c4e
lea ecx, [ebp - 0x68]
call fcn.004014d0
mov dword [ebp - 4], 0
push str.create_device_change_thread_failed__GetLastError_Code___d
lea ecx, [ebp - 0x68]
push ecx
call fcn.0040c120
add esp, 8
push str.create_device_change_thread_failed_
mov edx, dword [ebp - 0x70]
push edx
call fcn.00406660
add esp, 8
mov dword [ebp - 0x6c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00401590
mov eax, dword [ebp - 0x6c]
jmp 0x403d1a
mov eax, dword [ebp - 0x70]
push eax
push 0
push 0x403f10
call dword [sym.imp.MSVCR100.dll__beginthread]
add esp, 0xc
push 0
call fcn.00403850
add esp, 4
push eax
call dword [sym.imp.MSVCR100.dll_srand]
add esp, 4
call dword [sym.imp.MSVCR100.dll_rand]
cdq
mov ecx, 0x3c
idiv ecx
add edx, 5
imul edx, edx, 0x3c
imul edx, edx, 0x3e8
mov dword [ebp - 0x14], edx
push 0
mov edx, dword [ebp - 0x14]
push edx
push 0x133504b
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x36ee80
push 0x133504c
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0
push 0
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x403d15
cmp dword [ebp - 0x2c], 0x10
jne 0x403cff
push 0x133504b
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x403d15
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x403cc4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret