Function at 0x40c997
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x467e9e], 0
jle 0x40c9b2
cmp dword [0x467be8], 0x2710
jbe 0x40c9b7
jmp 0x40cbf5
mov eax, dword [0x467ea2]
imul eax, eax, 0x1b
mov ecx, dword [0x467bec]
mov edx, dword [ecx + eax + 4]
cmp edx, dword [0x46db98]
jbe 0x40c9d6
jmp 0x40cbf5
push 0x46d6a0
call fcn.00412de6
add esp, 4
mov eax, 1
test eax, eax
je 0x40cbe8
cmp dword [0x467e9e], 0
jle 0x40ca05
cmp dword [0x467be8], 0x2710
jbe 0x40ca0a
jmp 0x40cbe8
mov ecx, dword [0x467ea2]
mov dword [ebp - 0x10], ecx
mov edx, dword [0x467ea6]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x1b
mov ecx, dword [0x467bec]
add ecx, eax
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
cmp eax, dword [0x46db98]
jbe 0x40ca40
jmp 0x40cbe8
mov ecx, dword [0x467e9e]
sub ecx, 1
mov dword [0x467e9e], ecx
cmp dword [0x467e9e], 0
jg 0x40ca78
mov dword [0x467ea2], 0xffffffff
mov dword [0x467ea6], 0xffffffff
mov dword [0x467e9e], 0
jmp 0x40cab0
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x17]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x1b
mov edx, dword [0x467bec]
mov eax, dword [ebp - 0x24]
mov dword [edx + ecx + 0x17], eax
mov ecx, dword [ebp - 0x24]
imul ecx, ecx, 0x1b
mov edx, dword [0x467bec]
mov eax, dword [ebp - 0xc]
mov dword [edx + ecx + 0x13], eax
mov ecx, dword [ebp - 0x24]
mov dword [0x467ea2], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov cx, word [eax + 2]
mov dword [ebp - 0x14], ecx
mov word [ebp - 8], 0x39
mov edx, dword [0x467be8]
add edx, 1
mov dword [0x467be8], edx
mov eax, dword [ebp - 8]
and eax, 0xffff
push eax
call fcn.00412e92
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40cb14
push str.TimerProc_send_message_error_not_task_ub
push 0x8dc
push 0x459da0
mov ecx, dword [0x45b824]
push ecx
call fcn.00409481
add esp, 0x10
jmp 0x40c9e3
push 0x30
push 0x467eb0
mov edx, dword [ebp - 4]
push edx
call fcn.00420e40
add esp, 0xc
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov cl, byte [eax + 8]
add ecx, 0x3e8
mov edx, dword [ebp - 4]
mov word [edx + 0x20], cx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 4]
add edx, 0x30
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 5], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
mov cl, byte [eax + 8]
mov byte [edx + 4], cl
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 9]
mov dword [edx], ecx
mov edx, dword [ebp - 4]
sub edx, 0x30
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0xffe7
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x1ee
mov eax, dword [0x46d668]
mov ecx, dword [eax + edx + 0xb8]
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40cbe3
mov edx, dword [ebp - 4]
push edx
call fcn.00412ec4
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
push str.TimerProc_send_message_error:_d
push 0x8f2
push 0x459ddc
mov ecx, dword [0x45b824]
push ecx
call fcn.00409481
add esp, 0x14
push 0
call fcn.0042014d
jmp 0x40c9e3
push 0x46d6a0
call fcn.00412df5
add esp, 4
mov esp, ebp
pop ebp
ret