Function at 0x47f9eb
Capabilities:
Check for unmoving mouse cursor
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x51f5d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x114]
push 0x103
mov dword [ebp - 0x118], ebx
stosd dword es:[edi], eax
lea eax, [ebp - 0x10f]
push ebx
push eax
mov byte [ebp - 0x110], bl
call fcn.004c05d0
xor eax, eax
mov word [ebp - 0x128], bx
lea edi, [ebp - 0x126]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosw word es:[edi], ax
call fcn.0040fde0
test eax, eax
jne 0x47fa51
xor eax, eax
jmp 0x47fc6a
push ebx
push ebx
call fcn.0045f7e3
push eax
push str._sLastTimeTG.dat
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.00486e10
add esp, 0x18
cmp dword [0x5207a0], 0xffffffff
mov esi, 0x61b9ac
jne 0x47fae4
push 0x177e
push str..ServerPAULA.c
mov edx, 0x4de27c
lea ecx, [ebp - 0x110]
mov dword [0x5207a0], ebx
call fcn.0041c35a
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x47fac2
push edi
push 1
lea eax, [ebp - 0x128]
push 0x10
push eax
call fcn.004c0915
push edi
call fcn.0041c787
add esp, 0x14
movzx eax, word [ebp - 0x122]
cmp eax, ebx
mov dword [0x5207a0], eax
jge 0x47fad8
mov dword [0x5207a0], ebx
push 8
push ebx
push esi
call fcn.004c05d0
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
cmp dword [0x61b9b4], ebx
je 0x47fb1e
push 8
push ebx
push esi
call fcn.004c05d0
movzx eax, word [ebp - 0x122]
add esp, 0xc
cmp dword [0x5207a0], eax
je 0x47fa4a
mov dword [0x61b9b4], ebx
movzx eax, word [ebp - 0x122]
cmp eax, dword [0x5207a0]
jne 0x47fb48
push 8
push ebx
push esi
mov dword [0x61b9b4], 1
call fcn.004c05d0
add esp, 0xc
jmp 0x47fa4a
cmp dword [0x61b9ac], ebx
jne 0x47fb58
cmp dword [0x61b9b0], ebx
je 0x47fb6a
call fcn.004af84c
sub eax, dword [0x61b9b8]
cmp eax, 0x927c0
jbe 0x47fb80
call fcn.004af84c
push esi
mov dword [0x61b9b8], eax
call dword [sym.imp.USER32.dll_GetCursorPos]
jmp 0x47fa4a
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 0x118]
sub eax, dword [0x61b9ac]
push eax
call fcn.004c21f7
cmp eax, 0x64
pop ecx
jg 0x47fbc1
mov eax, dword [ebp - 0x114]
sub eax, dword [0x61b9b0]
push eax
call fcn.004c21f7
cmp eax, 0x64
pop ecx
jle 0x47fa4a
movzx eax, word [ebp - 0x122]
push 8
xor edi, edi
push ebx
inc edi
push esi
mov dword [0x61b9b4], edi
mov dword [0x5207a0], eax
call fcn.004c05d0
push 0x17a8
push str..ServerPAULA.c
mov edx, 0x4de3b8
lea ecx, [ebp - 0x110]
call fcn.0041c35a
mov esi, eax
add esp, 0x14
cmp esi, ebx
je 0x47fc1b
push esi
push edi
lea eax, [ebp - 0x128]
push 0x10
push eax
call fcn.004bf5f0
push esi
call fcn.0041c787
add esp, 0x14
push 0xd
mov eax, edi
call fcn.0043ebd0
cmp eax, 7
pop ecx
jne 0x47fc42
push ebx
push ebx
call fcn.0045f646
push eax
push str._sSoundsPraiseBigPraise.wav
push ebx
call fcn.00486ec0
add esp, 0x14
jmp 0x47fc5b
push eax
push ebx
push ebx
call fcn.0045f646
pop ecx
pop ecx
push eax
push str._sSoundsIntroToddStart_d.wav
push ebx
call fcn.00486ec0
add esp, 0x10
push 0x20001
push ebx
push eax
call dword [sym.imp.WINMM.dll_PlaySoundA]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bfeb5
leave
ret