Function at 0x405b47
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x42e7c6], 0
jle 0x405b62
cmp dword [0x42e510], 0x2710
jbe 0x405b67
jmp 0x405da5
mov eax, dword [0x42e7ca]
imul eax, eax, 0x1b
mov ecx, dword [0x42e514]
mov edx, dword [ecx + eax + 4]
cmp edx, dword [0x4368b8]
jbe 0x405b86
jmp 0x405da5
push 0x4363c0
call fcn.0040c776
add esp, 4
mov eax, 1
test eax, eax
je 0x405d98
cmp dword [0x42e7c6], 0
jle 0x405bb5
cmp dword [0x42e510], 0x2710
jbe 0x405bba
jmp 0x405d98
mov ecx, dword [0x42e7ca]
mov dword [ebp - 0x10], ecx
mov edx, dword [0x42e7ce]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x1b
mov ecx, dword [0x42e514]
add ecx, eax
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
cmp eax, dword [0x4368b8]
jbe 0x405bf0
jmp 0x405d98
mov ecx, dword [0x42e7c6]
sub ecx, 1
mov dword [0x42e7c6], ecx
cmp dword [0x42e7c6], 0
jg 0x405c28
mov dword [0x42e7ca], 0xffffffff
mov dword [0x42e7ce], 0xffffffff
mov dword [0x42e7c6], 0
jmp 0x405c60
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 [0x42e514]
mov eax, dword [ebp - 0x24]
mov dword [edx + ecx + 0x17], eax
mov ecx, dword [ebp - 0x24]
imul ecx, ecx, 0x1b
mov edx, dword [0x42e514]
mov eax, dword [ebp - 0xc]
mov dword [edx + ecx + 0x13], eax
mov ecx, dword [ebp - 0x24]
mov dword [0x42e7ca], 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 [0x42e510]
add edx, 1
mov dword [0x42e510], edx
mov eax, dword [ebp - 8]
and eax, 0xffff
push eax
call fcn.0040c822
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x405cc4
push str.TimerProc_send_message_error_not_task_ub
push 0x8dc
push 0x42b428
mov ecx, dword [0x42cdac]
push ecx
call fcn.00402631
add esp, 0x10
jmp 0x405b93
push 0x30
push 0x42e7d8
mov edx, dword [ebp - 4]
push edx
call fcn.00411910
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 [0x436388]
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 0x405d93
mov edx, dword [ebp - 4]
push edx
call fcn.0040c854
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
push str.TimerProc_send_message_error:_d
push 0x8f2
push 0x42b464
mov ecx, dword [0x42cdac]
push ecx
call fcn.00402631
add esp, 0x14
push 0
call fcn.00411f8c
jmp 0x405b93
push 0x4363c0
call fcn.0040c785
add esp, 4
mov esp, ebp
pop ebp
ret