Function at 0x42bcbf
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
jmp 0x42bcbf
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x6294a0]
xor eax, ebp
mov dword [ebp + 0x194], eax
push ebx
mov ebx, dword [ebp + 0x1a4]
push esi
mov esi, dword [ebp + 0x1a8]
push edi
mov edi, dword [ebp + 0x1a0]
push 0x1ff
lea eax, [ebp - 0x6b]
push 0
push eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x80], esi
mov byte [ebp - 0x6c], 0
call fcn.00508d00
push edi
call fcn.004010dc
add esp, 0x10
test eax, eax
jne 0x42be2c
push ebx
call fcn.004010dc
test eax, eax
pop ecx
jne 0x42be2c
test esi, esi
jne 0x42bd37
mov dword [ebp - 0x80], 0x587a02
push 0x200
lea eax, [ebp - 0x6c]
push 0
push eax
call fcn.00508d00
push edi
call fcn.00508320
add esp, 0x10
cmp eax, 0x104
jb 0x42be46
push edi
call fcn.0040262b
push ebx
mov esi, eax
call fcn.00401bae
test esi, esi
pop ecx
mov edi, eax
pop ecx
mov dword [ebp - 0x7c], edi
je 0x42be1e
test edi, edi
je 0x42be14
push edi
push esi
call fcn.005129f0
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x70], eax
jne 0x42bdfa
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42bdfa
test bl, 2
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
je 0x42bdc2
xor ebx, 2
push ebx
push esi
call edi
push dword [ebp - 0x7c]
push esi
call fcn.005129f0
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x70], eax
jne 0x42bdfa
test bl, 4
je 0x42bde0
xor ebx, 4
push ebx
push esi
call edi
push dword [ebp - 0x7c]
push esi
call fcn.005129f0
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x70], eax
jne 0x42bdfa
test bl, 1
je 0x42bdfa
xor ebx, 1
push ebx
push esi
call edi
push dword [ebp - 0x7c]
push esi
call fcn.005129f0
pop ecx
pop ecx
mov dword [ebp - 0x70], eax
push 1
push esi
call fcn.0050a6d0
push 1
push dword [ebp - 0x7c]
call fcn.0050a6d0
add esp, 0x10
jmp 0x42bed4
push 1
push esi
call fcn.0050a6d0
pop ecx
pop ecx
test edi, edi
je 0x42be2c
push 1
push edi
call fcn.0050a6d0
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp + 0x194]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00508cf0
add ebp, 0x198
leave
ret
push ebx
push edi
call fcn.00512720
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x70], eax
jne 0x42bede
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42be2c
test bl, 2
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
je 0x42be90
xor ebx, 2
push ebx
push dword [ebp - 0x78]
call edi
push dword [ebp - 0x74]
push dword [ebp - 0x78]
call fcn.00512720
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x70], eax
jne 0x42bede
test bl, 4
je 0x42beb2
xor ebx, 4
push ebx
push dword [ebp - 0x78]
call edi
push dword [ebp - 0x74]
push dword [ebp - 0x78]
call fcn.00512720
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x70], eax
jne 0x42bede
test bl, 1
je 0x42be2c
xor ebx, 1
push ebx
push dword [ebp - 0x78]
call edi
push dword [ebp - 0x74]
push dword [ebp - 0x78]
call fcn.00512720
pop ecx
pop ecx
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
je 0x42be2c
xor edi, edi
push edi
push 4
push edi
push dword [ebp - 0x70]
call fcn.00512240
add esp, 0x10
test eax, eax
je 0x42bf23
inc dword [0x6370f8]
cmp dword [0x6370f8], 0xa
jge 0x42bf23
push str._GetLastError_
push dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push dword [ebp - 0x78]
push str.:2:fopen_wrapper___s_____s___EAP:_setvbuf__IONBF__FAILED:__s
push 0x200
push eax
call fcn.00402dbf
add esp, 0x18
xor ebx, ebx
cmp dword [0x6360f8], ebx
je 0x42bfb5
cmp edi, 0xff
jge 0x42bf45
inc edi
cmp dword [edi*4 + 0x6360f8], ebx
jne 0x42bf31
jmp 0x42bfb5
xor edi, edi
or edx, 0xffffffff
xor eax, eax
mov ecx, dword [eax*4 + 0x6364f8]
cmp ecx, edx
jae 0x42bf5b
mov edi, eax
mov edx, ecx
inc eax
cmp eax, 0x100
jl 0x42bf4c
inc dword [0x6370fc]
cmp dword [0x6370fc], 0xa
jge 0x42bf95
push dword [edi*4 + 0x635bf8]
lea eax, [ebp - 0x6c]
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push 0x5941c0
push 0x200
push eax
call fcn.00402dbf
add esp, 0x18
lea esi, [edi*4 + 0x635bf8]
mov eax, dword [esi]
cmp eax, ebx
mov dword [edi*4 + 0x6360f8], ebx
je 0x42bfb5
push 1
push eax
call fcn.0050a6d0
pop ecx
pop ecx
mov dword [esi], ebx
mov eax, dword [ebp - 0x70]
mov esi, edi
shl esi, 2
mov dword [esi + 0x6360f8], eax
call fcn.00401e97
push dword [ebp - 0x78]
mov dword [esi + 0x6364f8], eax
call fcn.00508320
mov dword [esp], 0x1aa3
push str..File.c
push 1
push 1
push dword [ebp - 0x80]
mov ebx, eax
call fcn.00508320
pop ecx
lea eax, [eax + ebx + 0xa]
push eax
call fcn.00509d00
add esp, 0x14
test eax, eax
mov dword [esi + 0x635bf8], eax
jne 0x42c016
and dword [esi + 0x6360f8], eax
mov eax, dword [ebp - 0x70]
jmp 0x42be2e
push dword [ebp - 0x78]
push eax
call fcn.0050d660
push 0x5941bc
push dword [ebp - 0x74]
mov byte [edi + 0x635ff8], 0
call fcn.004020db
add esp, 0x10
test eax, eax
je 0x42c041
or byte [edi + 0x635ff8], 1
push 0x5941b8
push dword [ebp - 0x74]
call fcn.004020db
test eax, eax
pop ecx
pop ecx
je 0x42c05b
or byte [edi + 0x635ff8], 2
push 0x5941b4
push dword [ebp - 0x74]
call fcn.004020db
test eax, eax
pop ecx
pop ecx
je 0x42c075
or byte [edi + 0x635ff8], 4
push 0x5941b0
push dword [ebp - 0x74]
call fcn.004020db
test eax, eax
pop ecx
pop ecx
je 0x42c08f
or byte [edi + 0x635ff8], 8
push 0x587a00
push dword [ebp - 0x74]
call fcn.004020db
test eax, eax
pop ecx
pop ecx
je 0x42c0a9
or byte [edi + 0x635ff8], 0x10
push str.tbwr
push dword [ebp - 0x74]
call fcn.004020db
test eax, eax
pop ecx
pop ecx
je 0x42c0c3
or byte [edi + 0x635ff8], 0x20
mov eax, dword [esi + 0x635bf8]
push dword [ebp - 0x80]
lea eax, [eax + ebx + 1]
push eax
mov dword [esi + 0x6368f8], eax
call fcn.0050d660
mov eax, dword [ebp + 0x1ac]
mov dword [esi + 0x636cf8], eax
lea eax, [ebp - 0x6c]
push eax
call fcn.004010dc
add esp, 0xc
test eax, eax
jne 0x42c00e
cmp dword [0x637100], eax
jne 0x42c00e
lea eax, [ebp - 0x6c]
push eax
push 0x583d40
mov dword [0x637100], 1
call fcn.00401375
and dword [0x637100], 0
pop ecx
pop ecx
jmp 0x42c00e