Function at 0x40f960
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66c5f0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x74b1ac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [ebp + 8], 0x113
mov edi, dword [ebp + 0xc]
jne 0x40fca7
cmp edi, 0x2766
jne 0x40faae
cmp dword [esi + 0x86c], 0
jne 0x40f9b9
xor eax, eax
jmp 0x40fcb5
push 0x2766
call sym._1.0.0.4_10001.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [esi + 0x78c]
push 1
mov eax, dword [ecx]
call dword [eax + 0x104]
cmp dword [esi + 0x84c], 0
lea ebx, [esi + 0x83c]
mov ecx, dword [esi + 0x788]
mov eax, dword [ecx]
jne 0x40f9fe
push 0x709458
call dword [eax + 0x2c]
jmp 0x40fca7
push 0x709480
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x790]
push 1
mov eax, dword [ecx]
call dword [eax + 0x110]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x709184
mov ecx, ebx
call fcn.00412c00
inc eax
mov ecx, ebx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00408630
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x780]
cmp dword [ebp - 0x14], 8
mov eax, dword [ecx]
mov edx, dword [eax + 0x2c]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call edx
cmp dword [ebx + 0x14], 8
mov ecx, dword [esi + 0x780]
mov eax, dword [ecx]
jb 0x40fa63
mov ebx, dword [ebx]
push ebx
call dword [eax + 0xcc]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40fca7
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40fbd1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fcd3
jmp 0x40fbd1
cmp edi, 0x2767
jne 0x40fafb
cmp dword [esi + 0x870], 0
je 0x40f9b2
push edi
call sym._1.0.0.4_10001.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [esi + 0x788]
push 0x7094a0
mov eax, dword [ecx]
call dword [eax + 0x2c]
push 0
push 0
push esi
push 0x40d7f0
push 0
push 0
call fcn.004ee388
add esp, 0x18
jmp 0x40fca7
cmp edi, 0x2760
jne 0x40fbe0
cmp dword [esi + 0x874], 0
je 0x40f9b2
push edi
call sym._1.0.0.4_10001.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_KillTimer]
cmp dword [esi + 0x874], 1
jne 0x40fb79
push 0
push 0x3e8
push 0x2767
mov ecx, esi
mov dword [esi + 0x870], 0
call sym._1.0.0.4_10001.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [esi + 0x788]
push str.ck_W
mov eax, dword [ecx]
call dword [eax + 0x2c]
push 0
push 0
push esi
push 0x40d3f0
push 0
push 0
call fcn.004ee388
add esp, 0x18
jmp 0x40fca7
cmp dword [esi + 0x8c8], 8
lea eax, [esi + 0x8b4]
jb 0x40fb8a
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push 0x7094e8
push eax
call fcn.00404f60
add esp, 0xc
mov dword [ebp - 4], 1
mov ecx, dword [esi + 0x788]
cmp dword [ebp - 0x14], 8
mov eax, dword [ecx]
mov edx, dword [eax + 0x2c]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call edx
mov ecx, dword [esi + 0x78c]
push 1
mov eax, dword [ecx]
call dword [eax + 0x104]
jmp 0x40fa6a
push edx
push ecx
call fcn.004cd516
add esp, 8
jmp 0x40fca7
cmp edi, 0x2768
jne 0x40fca7
mov ecx, dword [esi + 0x788]
push 0x709518
mov eax, dword [ecx]
call dword [eax + 0x2c]
inc dword [esi + 0x878]
cmp dword [esi + 0x878], 0xa
jne 0x40fca7
sub esp, 0x18
mov ecx, esp
push 0x709540
call fcn.00408860
mov ecx, esi
call fcn.00412080
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 0x18
mov ecx, esp
push str.shutdown__r__t_0
call fcn.00408860
lea ecx, [ebp - 0x40]
call fcn.004078f0
mov edx, dword [ebp - 0x2c]
add esp, 0x18
cmp edx, 8
jb 0x40fc8a
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40fc80
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fcd3
push edx
push ecx
call fcn.004cd516
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
push 1
mov ecx, esi
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call sym._1.0.0.4_10001.exe_public:_void___thiscall_DuiLib::CWindowWnd::Close_unsigned_int_
push dword [ebp + 0x10]
mov ecx, esi
push edi
push dword [ebp + 8]
call sym._1.0.0.4_10001.exe_public_virtual:_long_int___thiscall_DuiLib::WindowImplBase::HandleMessage_unsigned_int__unsigned_int__long_int_
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cd30a
mov esp, ebp
pop ebp
ret 0xc
call fcn.004e9059
int3