Function at 0x40cc40
Capabilities:
Create thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41c44b
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0xa4
cmp eax, 0x401
push ebx
push ebp
push esi
push edi
mov ebx, ecx
ja 0x40cfc0
je 0x40ce16
mov ecx, eax
sub ecx, 2
je 0x40cdf3
sub ecx, 0x111
jne 0x40cfc7
mov eax, dword [esp + 0xcc]
add eax, 0xffffffef
cmp eax, 0x71
ja case.0x40cca8.23
xor ecx, ecx
mov cl, byte [eax + 0x40d03c]
jmp dword [ecx*4 + 0x40d020]
push 0x82
jmp 0x40ccde
mov ecx, dword [ebx + 0x18]
push 0x76
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
lea edx, [esp + 0x10]
push edx
jmp 0x40cced
mov eax, dword [ebx + 0x18]
push 0x11
push eax
call dword [sym.imp.USER32.dll_KillTimer]
lea ecx, [esp + 0x10]
push ecx
jmp 0x40cced
push 0x14
mov edx, dword [ebx + 0x18]
push edx
call dword [sym.imp.USER32.dll_KillTimer]
lea eax, [esp + 0x10]
push eax
push 0
push ebx
push 0x40d0b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0x24], eax
jmp case.0x40cca8.23
mov ecx, dword [ebx + 0x18]
mov esi, dword [sym.imp.USER32.dll_KillTimer]
push 0x64
push ecx
call esi
mov edx, dword [ebx + 0x1c]
xor edx, 0xffffff82
test dl, dl
jne 0x40cd45
mov al, byte [ebx + 0x1d]
xor al, 0x76
jne 0x40cd45
mov cl, byte [ebx + 0x1e]
xor cl, 0x11
jne 0x40cd45
mov dl, byte [ebx + 0x1f]
xor dl, 0x14
jne 0x40cd45
mov eax, dword [ebx + 0x18]
push 0x65
push eax
mov dword [ebx + 0x20], 1
call esi
mov eax, dword [ebx + 0x24]
test eax, eax
je case.0x40cca8.23
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x24], 0
jmp case.0x40cca8.23
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea edx, [esp + 0x24]
push edx
call fcn.0040c590
mov ecx, dword [ebx + 0xa8]
add esp, 4
cmp eax, ecx
jbe case.0x40cca8.23
mov ecx, dword [0x4237c4]
lea eax, [esp + 0x34]
push 0x80
push eax
push 0x95
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea edi, [ebx + 0x28]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x34]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00405a30
mov ecx, dword [ebx + 0x18]
add esp, 4
push 0
push 1
push 0x12
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp case.0x40cca8.23
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x40ce08
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x24], 0
push 1
mov ecx, ebx
call fcn.00406390
jmp case.0x40cca8.23
mov eax, dword [esp + 0xd0]
sub eax, 0x203
je 0x40cfb0
sub eax, 2
jne case.0x40cca8.23
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [0x4237c4]
push 0x66
push eax
call dword [sym.imp.USER32.dll_LoadMenuA]
mov ebp, eax
push 0
push ebp
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ecx, dword [ebx + 0x1c]
mov edi, eax
xor ecx, 0xffffff82
test cl, cl
jne 0x40ce8d
mov dl, byte [ebx + 0x1d]
xor dl, 0x76
jne 0x40ce8d
mov al, byte [ebx + 0x1e]
xor al, 0x11
jne 0x40ce8d
mov cl, byte [ebx + 0x1f]
xor cl, 0x14
jne 0x40ce8d
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x40ce8d
push 0
push 0x9c43
push edi
call dword [sym.imp.USER32.dll_RemoveMenu]
mov esi, dword [esp + 0xc4]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push 0
push esi
push 0
push edx
push eax
push 0x102
push edi
call dword [sym.imp.USER32.dll_TrackPopupMenu]
sub eax, 0x9c41
je 0x40cf79
dec eax
je 0x40cf0f
dec eax
jne 0x40cf9a
lea ecx, [ebx + 0x28]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401c80
mov ebx, dword [ebx + 0x18]
mov eax, dword [0x4237c4]
lea edx, [esp + 0x18]
push edx
push 0x4017c0
push ebx
push 0x69
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 1
jne 0x40cf01
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea ecx, [esp + 0x18]
call fcn.00401cc0
jmp 0x40cf9a
push 0x80
push esi
call fcn.00401a30
add esp, 8
test eax, eax
je 0x40cf9a
lea ecx, [esp + 0x18]
call fcn.00401f50
mov eax, dword [0x4237c4]
lea ecx, [esp + 0x18]
push ecx
push 0x4017c0
push esi
push 0x6c
push eax
mov dword [esp + 0xd0], 0
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 1
jne 0x40cf63
push 0
mov ecx, ebx
call fcn.00406390
mov ecx, ebx
call fcn.00405f50
lea ecx, [esp + 0x18]
mov dword [esp + 0xbc], 0xffffffff
call fcn.00401f80
jmp 0x40cf9a
push 0x80
push esi
call fcn.00401a30
add esp, 8
test eax, eax
je 0x40cf9a
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
push ebp
call dword [sym.imp.USER32.dll_DestroyMenu]
jmp case.0x40cca8.23
mov edx, dword [esp + 0xc4]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp case.0x40cca8.23
cmp eax, 0x408
je 0x40cfe8
mov ecx, dword [esp + 0xd0]
mov edx, dword [esp + 0xcc]
push ecx
push edx
push eax
mov eax, dword [esp + 0xd0]
push eax
call dword [sym.imp.USER32.dll_DefWindowProcA]
jmp 0x40d004
mov ecx, dword [esp + 0xd0]
mov edx, dword [esp + 0xcc]
push ecx
push edx
mov ecx, ebx
call fcn.00405e00
mov eax, 1
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb0
ret 0x10