Function at 0x41f960
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x57a040]
xor eax, esp
mov dword [esp + 0x10], eax
cmp dword [0x5d916c], 0
push ebx
push esi
push edi
je 0x41fd6c
mov ecx, dword [0x5d915c]
test ecx, ecx
js 0x41fd6c
cmp ecx, 0x1194
jge 0x41fd6c
mov eax, dword [ecx*4 + 0x20a514c]
cmp dword [eax + 4], 3
jne 0x41fd6c
mov esi, dword [0x5d9164]
test esi, esi
js 0x41fd6c
cmp esi, 0x1194
jge 0x41fd6c
mov eax, dword [esi*4 + 0x20a514c]
cmp dword [eax + 4], 3
jne 0x41fd6c
mov edi, dword [0x5d9168]
test edi, edi
js 0x41fd6c
cmp edi, 0x1194
jge 0x41fd6c
mov eax, dword [edi*4 + 0x20a514c]
cmp dword [eax + 4], 3
jne 0x41fd6c
mov ebx, dword [ecx*4 + 0x20a514c]
mov ecx, 0x556a78
lea eax, [ebx + 0x294]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41fa37
test dl, dl
je 0x41fa33
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41fa37
add eax, 2
add ecx, 2
test dl, dl
jne 0x41fa17
xor eax, eax
jmp 0x41fa3c
sbb eax, eax
or eax, 1
test eax, eax
je 0x41fd6c
mov eax, dword [esi*4 + 0x20a514c]
mov ecx, 0x556a78
mov dword [esp + 0xc], eax
add eax, 0x294
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41fa80
test dl, dl
je 0x41fa7c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41fa80
add eax, 2
add ecx, 2
test dl, dl
jne 0x41fa60
xor eax, eax
jmp 0x41fa85
sbb eax, eax
or eax, 1
test eax, eax
je 0x41fd6c
mov esi, dword [edi*4 + 0x20a514c]
mov ecx, 0x556a78
lea eax, [esi + 0x294]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41fac0
test dl, dl
je 0x41fabc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41fac0
add eax, 2
add ecx, 2
test dl, dl
jne 0x41faa0
xor eax, eax
jmp 0x41fac5
sbb eax, eax
or eax, 1
test eax, eax
je 0x41fd6c
mov al, byte [ebx + 0xdca]
cmp al, 2
jb 0x41fd6c
mov edx, dword [esp + 0xc]
mov dl, byte [edx + 0xdca]
cmp dl, 2
jb 0x41fd6c
mov cl, byte [esi + 0xdca]
cmp cl, 2
jb 0x41fd6c
cmp byte [ebx + 0xdcb], 1
jne 0x41fd6c
cmp al, dl
jne 0x41fd6c
cmp al, cl
jne 0x41fd6c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0xde4]
sub ecx, dword [0x5d916c]
add eax, ecx
cmp eax, 0xea60
jb 0x41fd6c
mov eax, dword [0x5d915c]
mov eax, dword [eax*4 + 0x20a514c]
add eax, 0x294
push eax
push str._CastleSiege__Castle_Winner_Has_been_Changed__GUILD:_s_
push 0
call fcn.005262e0
mov esi, dword [0x5d915c]
add esp, 0xc
mov dword [esp + 0x10], 0x15b20cc1
mov byte [esp + 0x14], 1
mov ecx, dword [esi*4 + 0x20a514c]
lea eax, [ecx + 0x86]
push eax
lea eax, [ecx + 0x7b]
push eax
lea eax, [ecx + 0x294]
push eax
push dword [ecx + 0xde4]
push str._CastleSiege___Reg._Success__Accumulated_Crown_AccessTime_:__d___s___s___s_
push 0
call fcn.005262e0
mov eax, dword [esi*4 + 0x20a514c]
add esp, 0x18
mov dword [eax + 0xde4], 0
mov eax, dword [esi*4 + 0x20a514c]
push 0xc
mov eax, dword [eax + 0xde4]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
push esi
call fcn.005192f0
push 2
call fcn.00421000
mov eax, dword [0x5d915c]
xorps xmm0, xmm0
movups xmmword [0x5d9170], xmm0
mov ebx, 0x116
mov eax, dword [eax*4 + 0x20a514c]
mov ecx, dword [eax + 0x294]
mov eax, dword [eax + 0x298]
mov dword [0x5d9170], ecx
xor ecx, ecx
mov dword [0x5d9174], eax
nop word [eax + eax]
mov esi, ecx
mov edi, dword [esi*4 + 0x20a514c]
cmp dword [edi + 4], 3
jne 0x41fc8d
cmp byte [edi + 0x149], 0x1e
jne 0x41fc8d
mov al, byte [edi + 0xdc0]
test al, al
je 0x41fc8d
cmp al, 1
je 0x41fc8d
cmp word [edi + 0xcc], bx
jne 0x41fc74
cmp esi, 0x1193
ja 0x41fc74
mov eax, dword [edi + 0x290]
test eax, eax
je 0x41fc74
add eax, 4
push eax
push str._CastleSiege__LifeStone_is_broken_____s_
push 0
call fcn.005262e0
mov eax, dword [edi + 0x290]
add esp, 0xc
mov dword [eax + 0x734], 0
mov eax, dword [esi*4 + 0x20a514c]
mov ecx, esi
cmp word [eax + 0xcc], bx
jne 0x41fc8d
call fcn.0051f250
mov ecx, esi
inc ecx
cmp ecx, 0x9c4
jl 0x41fc10
mov eax, dword [0x5d915c]
mov eax, dword [eax*4 + 0x20a514c]
movzx eax, byte [eax + 0xdca]
push eax
call fcn.0041f720
mov eax, dword [0x5d915c]
mov eax, dword [eax*4 + 0x20a514c]
add eax, 0x294
push eax
push 1
call fcn.004207a0
push 0
mov dword [0x5d916c], 0
mov dword [0x5d915c], 0xffffffff
mov word [0x5d9160], 0
mov dword [0x5d9164], 0xffffffff
mov dword [0x5d9168], 0xffffffff
mov dword [0x5d9154], 0
call fcn.00420390
mov eax, 0x10624dd3
mov ecx, 0xe10
imul dword [0x5d8ff0]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cdq
idiv ecx
mov ecx, edx
mov ebx, eax
mov eax, 0x88888889
imul ecx
lea esi, [ecx + edx]
mov cl, bl
sar esi, 5
mov edx, esi
shr edx, 0x1f
add edx, esi
call fcn.004ece60
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x5d9038], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00529f01
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x1c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00529f01
mov esp, ebp
pop ebp
ret