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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4d82d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x1ff
lea eax, [ebp - 0x203]
mov edi, ecx
mov ebx, edx
push 0
push eax
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x218], esi
mov byte [ebp - 0x204], 0
call fcn.00401f80
add esp, 0xc
mov edx, edi
call fcn.00439c56
test eax, eax
jne 0x48af98
mov edx, ebx
call fcn.00439c56
test eax, eax
jne 0x48af98
test esi, esi
jne 0x48ae92
mov dword [ebp - 0x218], 0x4a8c9f
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.00401f80
push edi
call fcn.00401a80
add esp, 0x10
cmp eax, 0x104
jb 0x48afa9
mov eax, edi
call fcn.00439e21
push ebx
mov esi, eax
call fcn.00438395
mov edi, eax
pop ecx
mov dword [ebp - 0x214], edi
test esi, esi
je 0x48af8d
test edi, edi
je 0x48af86
push edi
push esi
call fcn.0040375c
pop ecx
pop ecx
mov dword [ebp - 0x208], eax
test eax, eax
jne 0x48af70
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x48af70
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bl, 2
je 0x48af2c
xor ebx, 2
push ebx
push esi
call edi
push dword [ebp - 0x214]
push esi
call fcn.0040375c
pop ecx
pop ecx
mov dword [ebp - 0x208], eax
test eax, eax
jne 0x48af70
test bl, 4
je 0x48af50
xor ebx, 4
push ebx
push esi
call edi
push dword [ebp - 0x214]
push esi
call fcn.0040375c
pop ecx
pop ecx
mov dword [ebp - 0x208], eax
test eax, eax
jne 0x48af70
test bl, 1
je 0x48af70
xor ebx, 1
push ebx
push esi
call edi
push dword [ebp - 0x214]
push esi
call fcn.0040375c
pop ecx
pop ecx
mov dword [ebp - 0x208], eax
push esi
call fcn.00401a00
push dword [ebp - 0x214]
call fcn.00401a00
jmp 0x48b05c
push esi
call fcn.00401a00
pop ecx
test edi, edi
je 0x48af98
push edi
call fcn.00401a00
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret
push ebx
push edi
call fcn.0040382f
pop ecx
pop ecx
mov dword [ebp - 0x208], eax
test eax, eax
jne 0x48b06b
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x48af98
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test bl, 2
je 0x48b002
xor ebx, 2
push ebx
push dword [ebp - 0x210]
call edi
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
call fcn.0040382f
pop ecx
pop ecx
mov dword [ebp - 0x208], eax
test eax, eax
jne 0x48b06b
test bl, 4
je 0x48b030
xor ebx, 4
push ebx
push dword [ebp - 0x210]
call edi
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
call fcn.0040382f
pop ecx
pop ecx
mov dword [ebp - 0x208], eax
test eax, eax
jne 0x48b06b
test bl, 1
je 0x48af98
xor ebx, 1
push ebx
push dword [ebp - 0x210]
call edi
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
call fcn.0040382f
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
pop ecx
pop ecx
je 0x48af98
xor edi, edi
push edi
push 4
push edi
push dword [ebp - 0x208]
call fcn.00403846
add esp, 0x10
test eax, eax
je 0x48b0bc
inc dword [0x4ecc44]
cmp dword [0x4ecc44], 0xa
jge 0x48b0bc
push str._GetLastError_
push dword [ebp - 0x20c]
lea eax, [ebp - 0x204]
push dword [ebp - 0x210]
push str.:2:fopen_wrapper___s_____s___EAP:_setvbuf__IONBF__FAILED:__s
push 0x200
push eax
call fcn.004392d1
add esp, 0x18
xor ebx, ebx
cmp dword [0x4ed1e8], ebx
je 0x48b154
cmp edi, 0xff
jge 0x48b0de
inc edi
cmp dword [edi*4 + 0x4ed1e8], ebx
jne 0x48b0ca
jmp 0x48b154
xor edi, edi
or edx, 0xffffffff
xor eax, eax
mov ecx, dword [eax*4 + 0x4ed5e8]
cmp ecx, edx
jae 0x48b0f4
mov edi, eax
mov edx, ecx
inc eax
cmp eax, 0x100
jl 0x48b0e5
inc dword [0x4ecce4]
cmp dword [0x4ecce4], 0xa
jge 0x48b137
push dword [edi*4 + 0x4ecce8]
lea eax, [ebp - 0x204]
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
push str.:8:fopen_wrapper___s_____s___EAP:_the_register_is_full__This_indicates_an_fopen_fclose_leak__The_oldest_entry___s__has_been_deleted.
push 0x200
push eax
call fcn.004392d1
add esp, 0x18
lea esi, [edi*4 + 0x4ecce8]
mov eax, dword [esi]
mov dword [edi*4 + 0x4ed1e8], ebx
cmp eax, ebx
je 0x48b154
push eax
call fcn.00401a00
pop ecx
mov dword [esi], ebx
mov eax, dword [ebp - 0x208]
mov esi, edi
mov dword [esi*4 + 0x4ed1e8], eax
call fcn.0041b82a
push dword [ebp - 0x210]
mov dword [esi*4 + 0x4ed5e8], eax
call fcn.00401a80
pop ecx
push 1
push dword [ebp - 0x218]
mov ebx, eax
call fcn.00401a80
pop ecx
lea eax, [eax + ebx + 0xa]
push eax
call fcn.00401a3a
pop ecx
pop ecx
mov dword [esi*4 + 0x4ecce8], eax
test eax, eax
jne 0x48b1b4
and dword [esi*4 + 0x4ed1e8], eax
mov eax, dword [ebp - 0x208]
jmp 0x48af9a
push dword [ebp - 0x210]
push eax
call fcn.00401ba0
push str.rwbt
push dword [ebp - 0x20c]
mov byte [edi + 0x4ed0e8], 0
call fcn.004395ea
add esp, 0x10
test eax, eax
je 0x48b1e5
mov byte [edi + 0x4ed0e8], 1
push 0x4ab85c
push dword [ebp - 0x20c]
call fcn.004395ea
pop ecx
pop ecx
test eax, eax
je 0x48b202
or byte [edi + 0x4ed0e8], 2
push 0x4ab860
push dword [ebp - 0x20c]
call fcn.004395ea
pop ecx
pop ecx
test eax, eax
je 0x48b21f
or byte [edi + 0x4ed0e8], 4
push 0x4ab864
push dword [ebp - 0x20c]
call fcn.004395ea
pop ecx
pop ecx
test eax, eax
je 0x48b23c
or byte [edi + 0x4ed0e8], 8
push 0x4a8eec
push dword [ebp - 0x20c]
call fcn.004395ea
pop ecx
pop ecx
test eax, eax
je 0x48b259
or byte [edi + 0x4ed0e8], 0x10
push 0x4ab868
push dword [ebp - 0x20c]
call fcn.004395ea
pop ecx
pop ecx
test eax, eax
je 0x48b276
or byte [edi + 0x4ed0e8], 0x20
mov eax, dword [esi*4 + 0x4ecce8]
push dword [ebp - 0x218]
lea eax, [eax + ebx + 1]
push eax
mov dword [esi*4 + 0x4ed9e8], eax
call fcn.00401ba0
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
lea edx, [ebp - 0x204]
mov dword [esi*4 + 0x4edde8], eax
call fcn.00439c56
test eax, eax
jne 0x48b1a9
cmp dword [0x4ee1e8], eax
jne 0x48b1a9
and dword [0x4ee1e8], eax
jmp 0x48b1a9