Function at 0x4c5278
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 [0x5f2e68]
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.005306b0
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.004184ad
test eax, eax
jne 0x4c52de
xor eax, eax
jmp 0x4c5508
push ebx
push ebx
call fcn.00493154
push eax
push str._sLastTimeTG.dat
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.004ce4e5
add esp, 0x18
cmp dword [0x5f37f4], 0xffffffff
mov esi, 0x70161c
jne 0x4c5372
push 0x1762
push str..ServerPAULA.c
mov edx, 0x54f4b8
lea ecx, [ebp - 0x110]
mov dword [0x5f37f4], ebx
call fcn.00434df1
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x4c5350
push edi
push 1
lea eax, [ebp - 0x128]
push 0x10
push eax
call fcn.00530e93
add esp, 0x10
mov ecx, edi
call fcn.00435239
movzx eax, word [ebp - 0x122]
cmp eax, ebx
mov dword [0x5f37f4], eax
jge 0x4c5366
mov dword [0x5f37f4], ebx
push 8
push ebx
push esi
call fcn.005306b0
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
cmp dword [0x701624], ebx
je 0x4c53ac
push 8
push ebx
push esi
call fcn.005306b0
movzx eax, word [ebp - 0x122]
add esp, 0xc
cmp dword [0x5f37f4], eax
je 0x4c52d7
mov dword [0x701624], ebx
movzx eax, word [ebp - 0x122]
cmp eax, dword [0x5f37f4]
jne 0x4c53d6
push 8
push ebx
push esi
mov dword [0x701624], 1
call fcn.005306b0
add esp, 0xc
jmp 0x4c52d7
cmp dword [0x70161c], ebx
jne 0x4c53e6
cmp dword [0x701620], ebx
je 0x4c53f8
call fcn.004fa8e4
sub eax, dword [0x701628]
cmp eax, 0x927c0
jbe 0x4c540e
call fcn.004fa8e4
push esi
mov dword [0x701628], eax
call dword [sym.imp.USER32.dll_GetCursorPos]
jmp 0x4c52d7
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 0x118]
sub eax, dword [0x70161c]
push eax
call fcn.0053146e
cmp eax, 0x64
pop ecx
jg 0x4c544f
mov eax, dword [ebp - 0x114]
sub eax, dword [0x701620]
push eax
call fcn.0053146e
cmp eax, 0x64
pop ecx
jle 0x4c52d7
movzx eax, word [ebp - 0x122]
push 8
xor edi, edi
push ebx
inc edi
push esi
mov dword [0x701624], edi
mov dword [0x5f37f4], eax
call fcn.005306b0
push 0x178c
push str..ServerPAULA.c
mov edx, 0x54f4b4
lea ecx, [ebp - 0x110]
call fcn.00434df1
mov esi, eax
add esp, 0x14
cmp esi, ebx
je 0x4c54aa
push esi
push edi
lea eax, [ebp - 0x128]
push 0x10
push eax
call fcn.00531aad
add esp, 0x10
mov ecx, esi
call fcn.00435239
push 0xd
mov eax, edi
call fcn.00468c65
cmp eax, 7
pop ecx
jne 0x4c54d1
push ebx
push ebx
call fcn.00493030
push eax
push str._sSoundsPraiseBigPraise.wav
push ebx
call fcn.004ce595
add esp, 0x14
jmp 0x4c54ea
push eax
push ebx
push ebx
call fcn.00493030
pop ecx
pop ecx
push eax
push str._sSoundsIntroToddStart_d.wav
push ebx
call fcn.004ce595
add esp, 0x10
mov esi, eax
push esi
push str.:2:Last_Windows_Startup_Sound_Played_for_Todd_Franks:___s_
call fcn.0042bd38
pop ecx
pop ecx
push 0x20001
push ebx
push esi
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.005317e7
leave
ret