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

Disassembly:
sub esp, 0x10
push ebp
push esi
push edi
mov ebp, ecx
push 0x4b6
mov dword [esp + 0x1c], ebp
call fcn.004ea180
test eax, eax
je 0x4939a2
mov ecx, dword [eax + 0x1430]
cmp ecx, 0xffffffff
je 0x4939a2
push 0
push ecx
mov ecx, eax
call fcn.004f39c0
mov esi, eax
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x49370f
mov ecx, dword [0x830294]
mov esi, dword [esi]
push 1
call fcn.005177c0
push 0xd
call fcn.004e87a0
mov edi, eax
push edi
push str.data_subtitle.ini
push esi
call fcn.0076f680
add esp, 0x10
test edi, edi
je 0x493701
mov eax, dword [edi + 4]
dec eax
mov dword [edi + 4], eax
jne 0x493701
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
pop edi
mov byte [ebp + 0x88], 1
pop esi
pop ebp
add esp, 0x10
ret
mov ecx, dword [0x809d38]
push ebx
mov ebx, dword [esi]
mov dword [esp + 0x18], ecx
test ebx, ebx
je 0x49372e
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jmp 0x493730
xor ecx, ecx
inc ecx
push 1
push ecx
lea ecx, [esp + 0x20]
call fcn.005dcfa0
push ebx
lea ecx, [esp + 0x1c]
call fcn.00409020
mov esi, dword [esi]
push 0x5c
push esi
call fcn.0078c8a0
add esp, 8
test eax, eax
je 0x493798
lea esi, [eax + 1]
test esi, esi
je 0x493798
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea ecx, [esp + 0x18]
lea ebx, [edi + 1]
push ebx
call fcn.005dd330
push edi
lea ecx, [esp + 0x1c]
call fcn.004029d0
mov edi, dword [esp + 0x18]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x809d38]
push 0
push 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
call fcn.005dcfa0
mov ecx, dword [esp + 0x14]
mov dl, byte [0x83ec0c]
add ebp, 0x8c
lea eax, [esp + 0x14]
mov byte [ecx], dl
push eax
mov ecx, ebp
call fcn.004350e0
test al, al
je 0x49393a
mov ecx, dword [0x809d38]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x14]
call fcn.004027b0
test eax, eax
jle 0x493801
push 0
lea ecx, [esp + 0x18]
call fcn.004027b0
inc eax
lea ecx, [esp + 0x14]
push eax
call fcn.005dcfa0
lea edx, [esp + 0x14]
lea ecx, [esp + 0x10]
push edx
call fcn.0041f5a0
mov edi, dword [esp + 0x14]
mov eax, dword [0x809d38]
xor esi, esi
cmp edi, eax
je 0x49383f
mov esi, dword [edi - 4]
test esi, esi
jne 0x49383f
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
lea ecx, [esp + 0x14]
push esi
call fcn.004029d0
mov edi, dword [esp + 0x14]
cmp byte [esi + edi - 1], 0x5c
je 0x493899
lea ecx, [esp + 0x10]
call fcn.004027b0
mov ebx, eax
mov edi, 0x7f7618
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
lea ecx, [esp + 0x10]
lea edi, [esi + ebx]
lea eax, [edi + 1]
push eax
call fcn.005dd230
push edi
lea ecx, [esp + 0x14]
call fcn.004029d0
mov edx, dword [esp + 0x10]
lea ecx, [esi + 1]
mov eax, ecx
mov esi, 0x7f7618
lea edi, [ebx + edx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.004027b0
mov ebx, eax
test ebx, ebx
jle 0x4938e8
lea ecx, [esp + 0x10]
call fcn.004027b0
mov edi, eax
lea esi, [edi + ebx]
lea ecx, [esi + 1]
push ecx
lea ecx, [esp + 0x14]
call fcn.005dd230
push esi
lea ecx, [esp + 0x14]
call fcn.004029d0
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
lea ecx, [ebx + 1]
add edi, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x830294]
mov edi, dword [esp + 0x10]
push 1
call fcn.005177c0
push 0xd
call fcn.004e87a0
mov esi, eax
push esi
push str.data_subtitle.ini
push edi
call fcn.0076f680
add esp, 0x10
test esi, esi
je 0x493924
mov eax, dword [esi + 4]
dec eax
mov dword [esi + 4], eax
jne 0x493924
mov edx, dword [esi]
mov ecx, esi
call dword [edx]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
mov byte [eax + 0x88], 1
call fcn.005dd410
jmp 0x49398f
mov ecx, dword [esp + 0x1c]
lea edi, [ecx + 0xa0]
lea ecx, [esp + 0x18]
call fcn.004027b0
mov esi, eax
mov ecx, edi
lea ebx, [esi + 1]
push ebx
call fcn.005dd330
push esi
mov ecx, edi
call fcn.004029d0
mov esi, dword [esp + 0x18]
mov edi, dword [edi]
mov ecx, ebx
mov eax, dword [esp + 0x1c]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x493985
add eax, 0x74
jmp 0x493987
xor eax, eax
push eax
mov ecx, ebp
call fcn.00435230
lea ecx, [esp + 0x14]
call fcn.005dd410
lea ecx, [esp + 0x18]
call fcn.005dd410
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x10
ret