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

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebx, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x429b7d
mov ecx, dword [0x830294]
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 0x429b70
mov eax, dword [edi + 4]
dec eax
mov dword [edi + 4], eax
jne 0x429b70
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
pop edi
mov byte [ebx + 0x35], 1
pop esi
pop ebx
add esp, 8
ret 4
mov ecx, dword [0x809d38]
test esi, esi
mov dword [esp + 0x10], ecx
je 0x429b99
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jmp 0x429b9b
xor ecx, ecx
push ebp
inc ecx
push 1
push ecx
lea ecx, [esp + 0x1c]
call fcn.005dcfa0
push esi
lea ecx, [esp + 0x18]
call fcn.00409020
push 0x5c
push esi
call fcn.0078c8a0
add esp, 8
test eax, eax
je 0x429c02
lea esi, [eax + 1]
test esi, esi
je 0x429c02
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 + 0x14]
lea ebp, [edi + 1]
push ebp
call fcn.005dd330
push edi
lea ecx, [esp + 0x18]
call fcn.004029d0
mov edi, dword [esp + 0x14]
mov ecx, ebp
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 + 0x18]
mov dword [esp + 0x18], eax
call fcn.005dcfa0
mov ecx, dword [esp + 0x10]
mov dl, byte [0x83ec0c]
lea eax, [esp + 0x10]
mov byte [ecx], dl
lea ecx, [ebx + 0x1c]
push eax
mov dword [esp + 0x20], ecx
call fcn.004350e0
test al, al
je 0x429d9c
mov ecx, dword [0x809d38]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x10]
call fcn.004027b0
test eax, eax
jle 0x429c6a
push 0
lea ecx, [esp + 0x14]
call fcn.004027b0
inc eax
lea ecx, [esp + 0x20]
push eax
call fcn.005dcfa0
lea edx, [esp + 0x10]
lea ecx, [esp + 0x1c]
push edx
call fcn.0041f5a0
mov edi, dword [esp + 0x10]
mov eax, dword [0x809d38]
xor esi, esi
cmp edi, eax
je 0x429ca8
mov esi, dword [edi - 4]
test esi, esi
jne 0x429ca8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
lea ecx, [esp + 0x10]
push esi
call fcn.004029d0
mov edi, dword [esp + 0x10]
cmp byte [esi + edi - 1], 0x5c
je 0x429d02
lea ecx, [esp + 0x1c]
call fcn.004027b0
mov ebp, 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 + 0x1c]
lea edi, [esi + ebp]
lea eax, [edi + 1]
push eax
call fcn.005dd230
push edi
lea ecx, [esp + 0x20]
call fcn.004029d0
mov edx, dword [esp + 0x1c]
lea ecx, [esi + 1]
mov eax, ecx
mov esi, 0x7f7618
lea edi, [edx + ebp]
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 + 0x14]
call fcn.004027b0
mov ebp, eax
test ebp, ebp
jle 0x429d51
lea ecx, [esp + 0x1c]
call fcn.004027b0
mov edi, eax
lea esi, [edi + ebp]
lea ecx, [esi + 1]
push ecx
lea ecx, [esp + 0x20]
call fcn.005dd230
push esi
lea ecx, [esp + 0x20]
call fcn.004029d0
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
lea ecx, [ebp + 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 + 0x1c]
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 0x429d8d
mov eax, dword [esi + 4]
dec eax
mov dword [esi + 4], eax
jne 0x429d8d
mov edx, dword [esi]
mov ecx, esi
call dword [edx]
lea ecx, [esp + 0x1c]
mov byte [ebx + 0x35], 1
call fcn.005dd410
jmp 0x429dec
lea ecx, [esp + 0x14]
lea edi, [ebx + 0x30]
call fcn.004027b0
mov esi, eax
mov ecx, edi
lea ebp, [esi + 1]
push ebp
call fcn.005dd330
push esi
mov ecx, edi
call fcn.004029d0
mov esi, dword [esp + 0x14]
mov edi, dword [edi]
mov ecx, ebp
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]
test ebx, ebx
mov byte [ebx + 0x34], 1
je 0x429de0
lea eax, [ebx + 8]
jmp 0x429de2
xor eax, eax
mov ecx, dword [esp + 0x1c]
push eax
call fcn.00435230
lea ecx, [esp + 0x10]
call fcn.005dd410
lea ecx, [esp + 0x14]
call fcn.005dd410
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 4