Function at 0x4a8f50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6f1443
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd70
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
mov dword [esp + 0x20], ecx
je 0x4a9503
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ebx, eax
mov byte [esp + 0x68], 0
xor eax, eax
mov ecx, 0x7f
lea edi, [esp + 0x69]
rep stosd dword es:[edi], eax
push 0x200
stosw word es:[edi], ax
lea ecx, [esp + 0x6c]
push ebx
push ecx
stosb byte es:[edi], al
call fcn.0065cfb0
lea edx, [esp + 0x74]
push edx
call fcn.005a3d40
lea eax, [esp + 0x78]
push eax
call fcn.005a3cc0
lea ecx, [esp + 0x7c]
push ecx
call fcn.0065c790
add esp, 0x18
test eax, eax
je 0x4a9503
mov edx, dword [0x77da48]
mov eax, dword [edx + 0x458]
add eax, 4
push eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x764]
push ecx
xor edi, edi
push edi
push esi
call fcn.0040b7f0
push str.__npcdlg
push ebx
call fcn.0065dac0
add esp, 0x18
test eax, eax
jne 0x4a90bd
push 0x700d08
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4a90bd
test al, 0x10
jne 0x4a90bd
lea ecx, [esp + 0x34]
call fcn.005b1220
push 0x2000
push edi
push 0x700d08
lea ecx, [esp + 0x40]
mov dword [esp + 0xd90], edi
call fcn.005b12a0
lea ecx, [esp + 0x34]
call fcn.005b0c00
inc eax
push eax
call fcn.0065b8d9
add esp, 4
lea ecx, [esp + 0x34]
mov edi, eax
call fcn.005b0c00
mov edx, dword [esp + 0x34]
push eax
push edi
lea ecx, [esp + 0x3c]
call dword [edx + 0x10]
lea ecx, [esp + 0x34]
call fcn.005b0c00
mov ecx, 0x77e198
mov byte [eax + edi], 0
call fcn.00465830
push edi
mov ecx, eax
call fcn.004cf550
push edi
call fcn.0065f1d2
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0xd84], 0xffffffff
call fcn.005b1420
xor edi, edi
push str.__cltime
push ebx
call fcn.0065dac0
add esp, 8
test eax, eax
jne 0x4a90e6
push str.00:35:27
push str.Mar_31_2024
push 0x6fe910
call fcn.00497ef0
add esp, 0xc
push str.__ride
push ebx
call fcn.0065ea91
add esp, 8
test eax, eax
jne 0x4a919d
mov al, byte [0x77c5e8]
test al, al
je 0x4a919d
mov al, byte [0x77e79c]
test al, al
lea ecx, [esp + 0x7fa]
sete al
push 0x708ce0
push ecx
mov byte [0x77e79c], al
mov byte [esp + 0x7f8], 5
mov byte [esp + 0x7f9], 0xa
call fcn.0065d920
mov edx, dword [0x77da48]
mov eax, dword [edx + 0x458]
lea esi, [eax + 0x850]
mov al, byte [0x77e79c]
mov ecx, 0x15f
lea edi, [esp + 0x7fe]
rep movsd dword es:[edi], dword [esi]
add esp, 8
test al, al
movsb byte es:[edi], byte [esi]
je 0x4a917b
lea eax, [esp + 0x891]
push 0x51
push eax
call fcn.0040f230
add esp, 8
jmp 0x4a9183
and byte [esp + 0x89b], 0xfd
mov ecx, dword [0x77db4c]
mov edx, dword [ecx]
push 0x583
lea eax, [esp + 0x7f4]
push eax
call dword [edx + 0x1c]
xor edi, edi
push str.__skey
push ebx
call fcn.0065dff0
add esp, 8
cmp eax, ebx
jne 0x4a92a2
mov ecx, dword [0x780688]
mov dword [esp + 0x20], ecx
mov dword [esp + 0xd84], 1
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
push 0x20
lea edx, [esp + 0x14]
push ebx
push edx
mov byte [esp + 0xd90], 2
call fcn.0046cda0
mov edi, dword [esp + 0x20]
add esp, 0xc
test edi, edi
je 0x4a9284
mov ecx, dword [esp + 0x18]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 3
jne 0x4a9284
push 0xd
lea eax, [esp + 0x28]
push 0
push eax
mov byte [esp + 0x3c], 4
call fcn.0065c670
mov dword [esp + 0x34], 2
mov eax, dword [edi + 0x34]
mov esi, 0x10
add esp, 0xc
cmp eax, esi
jb 0x4a9245
mov eax, dword [edi + 0x20]
jmp 0x4a9248
lea eax, [edi + 0x20]
push eax
call fcn.0065dc72
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x50]
add esp, 4
cmp eax, esi
jb 0x4a9261
mov edi, dword [edi + 0x3c]
jmp 0x4a9264
add edi, 0x3c
push edi
call fcn.0065dc72
lea ecx, [esp + 0x28]
add esp, 4
add al, 0x6f
push ecx
mov byte [esp + 0x28], al
call fcn.00411930
mov ecx, eax
call fcn.0041afb0
lea ecx, [esp + 0x10]
call fcn.0046c940
mov edx, dword [esp + 0x20]
mov dword [esp + 0xd84], 0xffffffff
mov dword [0x780688], edx
mov al, byte [0x77c5e8]
test al, al
je 0x4a9503
lea eax, [esp + 0x272]
push 0x708ce0
push eax
mov byte [esp + 0x270], 5
mov byte [esp + 0x271], 0xa
call fcn.0065d920
mov ecx, dword [0x77da48]
mov eax, dword [ecx + 0x458]
lea esi, [eax + 0x850]
mov ecx, 0x15f
lea edi, [esp + 0x276]
rep movsd dword es:[edi], dword [esi]
push str.__movespeed
push ebx
movsb byte es:[edi], byte [esi]
call fcn.0065dff0
add esp, 0x10
cmp eax, ebx
jne 0x4a93a8
mov edi, dword [0x780688]
mov dword [esp + 0x20], edi
xor esi, esi
mov dword [esp + 0xd84], 3
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
push 0x3d
lea edx, [esp + 0x14]
push ebx
push edx
mov byte [esp + 0xd90], 4
call fcn.0046cda0
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.004b8e70
cmp eax, 2
jne 0x4a9374
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x34], 0x10
jb 0x4a9360
mov eax, dword [eax + 0x20]
jmp 0x4a9363
add eax, 0x20
push eax
call fcn.0065dc72
add esp, 4
mov word [esp + 0x2c9], ax
mov ecx, dword [0x77db4c]
mov eax, dword [ecx]
push 0x583
lea edx, [esp + 0x26c]
push edx
call dword [eax + 0x1c]
lea ecx, [esp + 0x10]
call fcn.0046c940
mov dword [esp + 0xd84], 0xffffffff
mov dword [0x780688], edi
jmp 0x4a93aa
xor esi, esi
push str.__attackspeed
push ebx
call fcn.0065dff0
add esp, 8
cmp eax, ebx
jne 0x4a945c
mov edi, dword [0x780688]
mov dword [esp + 0x20], edi
mov dword [esp + 0xd84], 5
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
push 0x3d
lea eax, [esp + 0x14]
push ebx
push eax
mov byte [esp + 0xd90], 6
call fcn.0046cda0
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.004b8e70
cmp eax, 2
jne 0x4a942a
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x34], 0x10
jb 0x4a9416
mov eax, dword [eax + 0x20]
jmp 0x4a9419
add eax, 0x20
push eax
call fcn.0065dc72
add esp, 4
mov word [esp + 0x2c7], ax
mov ecx, dword [0x77db4c]
mov edx, dword [ecx]
push 0x583
lea eax, [esp + 0x26c]
push eax
call dword [edx + 0x1c]
lea ecx, [esp + 0x10]
call fcn.0046c940
mov dword [esp + 0xd84], 0xffffffff
mov dword [0x780688], edi
push str.__magicspeed
push ebx
call fcn.0065dff0
add esp, 8
cmp eax, ebx
jne 0x4a9503
mov edi, dword [0x780688]
mov dword [esp + 0x20], edi
mov dword [esp + 0xd84], 7
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
push 0x3d
lea ecx, [esp + 0x14]
push ebx
push ecx
mov byte [esp + 0xd90], 8
call fcn.0046cda0
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.004b8e70
cmp eax, 2
jne 0x4a94dc
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x34], 0x10
jb 0x4a94c8
mov eax, dword [eax + 0x20]
jmp 0x4a94cb
add eax, 0x20
push eax
call fcn.0065dc72
add esp, 4
mov word [esp + 0x2c7], ax
mov ecx, dword [0x77db4c]
mov edx, dword [ecx]
push 0x583
lea eax, [esp + 0x26c]
push eax
call dword [edx + 0x1c]
lea ecx, [esp + 0x10]
call fcn.0046c940
mov dword [0x780688], edi
mov ecx, dword [esp + 0xd7c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4