Function at 0x40be97
Capabilities:
Create thread

Disassembly:
jmp 0x4683c0
sub esp, 0x408
mov eax, dword [0x589780]
xor eax, esp
mov dword [esp + 0x404], eax
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0
push 0
push 1
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [esp + 0x1c], ebx
push 0
mov dword [esp + 0x20], ebx
mov dword [ebx + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x10], eax
test eax, eax
je 0x468431
cmp eax, 0xffffffff
je 0x468431
call ebp
push dword [esp + 0x10]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebx + 8], edi
test edi, edi
je 0x46843d
cmp edi, 0xffffffff
jne 0x46847d
call ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push esi
push eax
push 0xa
push str.C:projectsentryprotect_src_service_src_resetdisplay.cpp
lea eax, [esp + 0x28]
push str._s__d_:___u__u__error_u__SB__n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x30]
push eax
call fcn.0040946c
add esp, 0x20
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebx + 8]
test eax, eax
je 0x4685af
cmp eax, 0xffffffff
je 0x4685af
push str.Globalentryprotect.displayreset
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov eax, dword [ebx]
mov dword [esp + 0x10], eax
test eax, eax
je 0x4684c8
cmp eax, 0xffffffff
je 0x4684c8
call ebp
push dword [esp + 0x10]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebx], edi
test edi, edi
je 0x4684d3
cmp edi, 0xffffffff
jne 0x468513
call ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push esi
push eax
push 0xe
push str.C:projectsentryprotect_src_service_src_resetdisplay.cpp
lea eax, [esp + 0x28]
push str._s__d_:___u__u__error_u__SB__n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x30]
push eax
call fcn.0040946c
add esp, 0x20
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebx]
test eax, eax
je 0x4685af
cmp eax, 0xffffffff
je 0x4685af
push 2
push eax
call fcn.00406c21
test eax, eax
jne 0x468572
call ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push esi
push eax
push 0x11
push str.C:projectsentryprotect_src_service_src_resetdisplay.cpp
lea eax, [esp + 0x28]
push str._s__d_:___u__u__error_u__SB__n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x30]
push eax
call fcn.0040946c
add esp, 0x20
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push 0
push ebx
push 0x467ba0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, dword [ebx + 4]
mov dword [esp + 0x10], eax
test edi, edi
je 0x4685ac
cmp edi, 0xffffffff
je 0x4685ac
call ebp
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x10]
mov dword [ebx + 4], eax
mov ecx, dword [esp + 0x414]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040512d
add esp, 0x408
ret