Function at 0x410eb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x460507
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x473b80]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push esi
push edi
mov eax, dword [0x473b80]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
mov ebx, ecx
cmp byte [ebx + 0xc], 0
jne 0x41131e
mov ecx, dword [0x477d70]
call fcn.00415b80
push 0xffffffffffffffff
xor esi, esi
xor ecx, ecx
push esi
mov word [esp + 0x58], cx
mov edi, 7
push eax
lea ecx, [esp + 0x5c]
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], esi
call fcn.00403e20
mov dword [esp + 0x118], esi
cmp dword [ebx + 0x5c], esi
jne 0x410fcc
push 0xb
xor edx, edx
push str.idleapp.dat
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], esi
mov word [esp + 0x20], dx
call fcn.00403570
lea edi, [esp + 0x18]
lea edx, [esp + 0x50]
lea esi, [esp + 0x34]
mov byte [esp + 0x118], 1
call fcn.00404240
push eax
lea ecx, [ebx + 0x4c]
mov byte [esp + 0x11c], 2
call fcn.00403f40
mov esi, 8
cmp dword [esp + 0x48], esi
jb 0x410f9b
mov eax, dword [esp + 0x34]
push eax
call fcn.00444884
add esp, 4
xor ecx, ecx
mov byte [esp + 0x118], cl
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], cx
cmp dword [esp + 0x2c], esi
jb 0x410fcc
mov edx, dword [esp + 0x18]
push edx
call fcn.00444884
add esp, 4
cmp dword [ebx + 0x40], 0
jne 0x411070
push 7
xor eax, eax
push str.app.dat
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
call fcn.00403570
lea edi, [esp + 0x18]
lea edx, [esp + 0x50]
lea esi, [esp + 0x34]
mov byte [esp + 0x118], 3
call fcn.00404240
push eax
lea ecx, [ebx + 0x30]
mov byte [esp + 0x11c], 4
call fcn.00403f40
mov esi, 8
cmp dword [esp + 0x48], esi
jb 0x41103f
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00444884
add esp, 4
xor edx, edx
mov byte [esp + 0x118], dl
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], dx
cmp dword [esp + 0x2c], esi
jb 0x411070
mov eax, dword [esp + 0x18]
push eax
call fcn.00444884
add esp, 4
cmp dword [ebx + 0x78], 0
jne 0x411114
xor ecx, ecx
push 0xf
mov word [esp + 0x1c], cx
push str.appsnapshot.dat
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
call fcn.00403570
lea edi, [esp + 0x18]
lea edx, [esp + 0x50]
lea esi, [esp + 0x34]
mov byte [esp + 0x118], 5
call fcn.00404240
push eax
lea ecx, [ebx + 0x68]
mov byte [esp + 0x11c], 6
call fcn.00403f40
mov esi, 8
cmp dword [esp + 0x48], esi
jb 0x4110e3
mov edx, dword [esp + 0x34]
push edx
call fcn.00444884
add esp, 4
xor eax, eax
mov byte [esp + 0x118], al
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
cmp dword [esp + 0x2c], esi
jb 0x411114
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00444884
add esp, 4
cmp dword [ebx + 0x24], 0
jne 0x411150
lea ecx, [esp + 0x34]
call fcn.0040eee0
push eax
lea ecx, [ebx + 0x14]
mov byte [esp + 0x11c], 7
call fcn.00403f40
mov byte [esp + 0x118], 0
cmp dword [esp + 0x48], 8
jb 0x411150
mov edx, dword [esp + 0x34]
push edx
call fcn.00444884
add esp, 4
push ebx
call fcn.00410b50
push 0x64
call fcn.00444804
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x118], 8
test eax, eax
je 0x411178
push eax
call fcn.00421d40
jmp 0x41117a
xor eax, eax
mov byte [esp + 0x118], 0
mov dword [ebx + 0x90], eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx + 8]
push eax
mov eax, dword [ebx + 0x90]
call fcn.004226d0
mov esi, dword [ebx + 0x90]
cmp byte [esi + 4], 0
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
jne 0x4111f9
push 0
push 0
push 1
push 0
mov dword [esi + 0x10], 0x1f4
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0xc], eax
test eax, eax
je 0x411269
push 0
push 0
push esi
push 0x426650
push 0
push 0
call edi
mov dword [esi + 8], eax
test eax, eax
jne 0x4111f5
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x411269
mov byte [esi + 4], 1
mov eax, dword [0x477d70]
mov eax, dword [eax + 0x50]
lea ecx, [ebx + 4]
push ecx
call fcn.00424f90
lea ecx, [ebx + 0x88]
push ecx
push 0
push 0
push 0x410990
push 0
push 0
call edi
mov dword [ebx + 0x84], eax
test eax, eax
jne 0x411284
push 6
push 4
lea esi, [esp + 0x74]
call fcn.00405930
mov esi, eax
mov byte [esp + 0x118], 9
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push str.Unable_to_create_application_monitor_source_thread._Error_code:__d
call fcn.00405b80
add esp, 8
lea esi, [esp + 0x6c]
call fcn.00405e90
call edi
mov dword [ebx + 0x10], eax
mov byte [ebx + 0xc], 0
cmp dword [esp + 0x64], 8
jb 0x41127d
mov edx, dword [esp + 0x50]
push edx
call fcn.00444884
add esp, 4
xor al, al
jmp 0x411320
mov eax, dword [ebx + 0x98]
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea esi, [esp + 0x6c]
test eax, eax
je 0x4112e8
push 6
push 4
call fcn.00405930
push str.A_window_for_application_monitor_was_not_created.
mov esi, eax
mov byte [esp + 0x11c], 0xa
call fcn.00405b80
add esp, 4
lea esi, [esp + 0x6c]
call fcn.00405e90
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, ebx
mov dword [ebx + 0x10], eax
call fcn.00410b20
lea ecx, [esp + 0x50]
mov byte [ebx + 0xc], 0
call fcn.00404210
xor al, al
jmp 0x411320
push 4
push 2
call fcn.00405930
push str.Application_monitor_started.
mov esi, eax
mov byte [esp + 0x11c], 0xb
call fcn.00405b80
add esp, 4
lea esi, [esp + 0x6c]
call fcn.00405e90
lea ecx, [esp + 0x50]
mov byte [ebx + 0xc], 1
call fcn.00404210
mov al, 1
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.00444627
mov esp, ebp
pop ebp
ret