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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6c3fa3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x510
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
mov dword [esp + 0x20], ecx
je 0x4a30b5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ebx, eax
mov byte [esp + 0x318], 0
xor eax, eax
mov ecx, 0x7f
lea edi, [esp + 0x319]
rep stosd dword es:[edi], eax
push 0x200
stosw word es:[edi], ax
lea ecx, [esp + 0x31c]
push ebx
push ecx
stosb byte es:[edi], al
call fcn.0062fff0
lea edx, [esp + 0x324]
push edx
call fcn.00579420
lea eax, [esp + 0x328]
push eax
call fcn.005793a0
lea ecx, [esp + 0x32c]
push ecx
call fcn.0062f7d0
add esp, 0x18
test eax, eax
je 0x4a30b5
mov edx, dword [0x74c650]
mov eax, dword [edx + 0x458]
add eax, 4
push eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x494]
push ecx
xor edi, edi
push edi
push esi
call fcn.0040b950
push str.__npcdlg
push ebx
call fcn.00630b00
add esp, 0x18
test eax, eax
jne 0x4a2c7f
push 0x6d3b00
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4a2c7f
test al, 0x10
jne 0x4a2c7f
lea ecx, [esp + 0x34]
call fcn.00586830
push 0x2000
push edi
push 0x6d3b00
lea ecx, [esp + 0x40]
mov dword [esp + 0x530], edi
call fcn.005868b0
lea ecx, [esp + 0x34]
call fcn.00586210
inc eax
push eax
call fcn.0062e919
add esp, 4
lea ecx, [esp + 0x34]
mov edi, eax
call fcn.00586210
mov edx, dword [esp + 0x34]
push eax
push edi
lea ecx, [esp + 0x3c]
call dword [edx + 0x10]
lea ecx, [esp + 0x34]
call fcn.00586210
mov ecx, 0x74cdb0
mov byte [eax + edi], 0
call fcn.004637d0
push edi
mov ecx, eax
call fcn.004c8970
push edi
call fcn.00631fc2
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x524], 0xffffffff
call fcn.00586a30
xor edi, edi
push str.__cltime
push ebx
call fcn.00630b00
add esp, 8
test eax, eax
jne 0x4a2ca8
push str.21:20:11
push str.Nov_20_2023
push 0x6d1910
call fcn.00493d90
add esp, 0xc
push str.__ride
push ebx
call fcn.00631a11
add esp, 8
test eax, eax
jne 0x4a2d60
mov al, byte [0x74b1e8]
test al, al
je 0x4a2d60
mov al, byte [0x74d394]
test al, al
lea ecx, [esp + 0x1d4]
sete al
push 0x6db7b8
push ecx
mov byte [0x74d394], al
mov byte [esp + 0x1c8], 5
mov byte [esp + 0x1c9], 0xa
call fcn.00630960
mov edx, dword [0x74c650]
mov eax, dword [edx + 0x458]
lea esi, [eax + 0x428]
mov al, byte [0x74d394]
mov ecx, 0x50
lea edi, [esp + 0x1d8]
rep movsd dword es:[edi], dword [esi]
add esp, 8
test al, al
movsw word es:[edi], word [esi]
je 0x4a2d3e
lea eax, [esp + 0x267]
push 0x51
push eax
call fcn.0040f290
add esp, 8
jmp 0x4a2d46
and byte [esp + 0x271], 0xfd
mov ecx, dword [0x74c754]
mov edx, dword [ecx]
push 0x152
lea eax, [esp + 0x1c4]
push eax
call dword [edx + 0x1c]
xor edi, edi
push str.__skey
push ebx
call fcn.00630f70
add esp, 8
cmp eax, ebx
jne 0x4a2e65
mov ecx, dword [0x74f090]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x524], 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 + 0x530], 2
call fcn.0046a410
mov edi, dword [esp + 0x20]
add esp, 0xc
test edi, edi
je 0x4a2e47
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 0x4a2e47
push 0xd
lea eax, [esp + 0x28]
push 0
push eax
mov byte [esp + 0x3c], 4
call fcn.0062f6b0
mov dword [esp + 0x34], 2
mov eax, dword [edi + 0x34]
mov esi, 0x10
add esp, 0xc
cmp eax, esi
jb 0x4a2e08
mov eax, dword [edi + 0x20]
jmp 0x4a2e0b
lea eax, [edi + 0x20]
push eax
call fcn.00630cb2
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x50]
add esp, 4
cmp eax, esi
jb 0x4a2e24
mov edi, dword [edi + 0x3c]
jmp 0x4a2e27
add edi, 0x3c
push edi
call fcn.00630cb2
lea ecx, [esp + 0x28]
add esp, 4
add al, 0x6f
push ecx
mov byte [esp + 0x28], al
call fcn.00410fb0
mov ecx, eax
call fcn.0041a1e0
lea ecx, [esp + 0x10]
call fcn.00469fb0
mov edx, dword [esp + 0x20]
mov dword [esp + 0x524], 0xffffffff
mov dword [0x74f090], edx
mov al, byte [0x74b1e8]
test al, al
je 0x4a30b5
lea eax, [esp + 0x7c]
push 0x6db7b8
push eax
mov byte [esp + 0x70], 5
mov byte [esp + 0x71], 0xa
call fcn.00630960
mov ecx, dword [0x74c650]
mov eax, dword [ecx + 0x458]
lea esi, [eax + 0x428]
mov ecx, 0x50
lea edi, [esp + 0x80]
rep movsd dword es:[edi], dword [esi]
push str.__movespeed
push ebx
movsw word es:[edi], word [esi]
call fcn.00630f70
add esp, 0x10
cmp eax, ebx
jne 0x4a2f60
mov edi, dword [0x74f090]
mov dword [esp + 0x20], edi
xor esi, esi
mov dword [esp + 0x524], 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 + 0x530], 4
call fcn.0046a410
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.004672c0
cmp eax, 2
jne 0x4a2f2f
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x34], 0x10
jb 0x4a2f1b
mov eax, dword [eax + 0x20]
jmp 0x4a2f1e
add eax, 0x20
push eax
call fcn.00630cb2
add esp, 4
mov word [esp + 0xcf], ax
mov ecx, dword [0x74c754]
mov eax, dword [ecx]
push 0x152
lea edx, [esp + 0x6c]
push edx
call dword [eax + 0x1c]
lea ecx, [esp + 0x10]
call fcn.00469fb0
mov dword [esp + 0x524], 0xffffffff
mov dword [0x74f090], edi
jmp 0x4a2f62
xor esi, esi
push str.__attackspeed
push ebx
call fcn.00630f70
add esp, 8
cmp eax, ebx
jne 0x4a3011
mov edi, dword [0x74f090]
mov dword [esp + 0x20], edi
mov dword [esp + 0x524], 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 + 0x530], 6
call fcn.0046a410
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.004672c0
cmp eax, 2
jne 0x4a2fe2
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x34], 0x10
jb 0x4a2fce
mov eax, dword [eax + 0x20]
jmp 0x4a2fd1
add eax, 0x20
push eax
call fcn.00630cb2
add esp, 4
mov word [esp + 0xcd], ax
mov ecx, dword [0x74c754]
mov edx, dword [ecx]
push 0x152
lea eax, [esp + 0x6c]
push eax
call dword [edx + 0x1c]
lea ecx, [esp + 0x10]
call fcn.00469fb0
mov dword [esp + 0x524], 0xffffffff
mov dword [0x74f090], edi
push str.__magicspeed
push ebx
call fcn.00630f70
add esp, 8
cmp eax, ebx
jne 0x4a30b5
mov edi, dword [0x74f090]
mov dword [esp + 0x20], edi
mov dword [esp + 0x524], 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 + 0x530], 8
call fcn.0046a410
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.004672c0
cmp eax, 2
jne 0x4a3091
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x34], 0x10
jb 0x4a307d
mov eax, dword [eax + 0x20]
jmp 0x4a3080
add eax, 0x20
push eax
call fcn.00630cb2
add esp, 4
mov word [esp + 0xcd], ax
mov ecx, dword [0x74c754]
mov edx, dword [ecx]
push 0x152
lea eax, [esp + 0x6c]
push eax
call dword [edx + 0x1c]
lea ecx, [esp + 0x10]
call fcn.00469fb0
mov dword [0x74f090], edi
mov ecx, dword [esp + 0x51c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4