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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4e22e4]
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.00439e45
test eax, eax
jne 0x48d4cc
mov edx, ebx
call fcn.00439e45
test eax, eax
jne 0x48d4cc
test esi, esi
jne 0x48d3c6
mov dword [ebp - 0x218], 0x4af213
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 0x48d4dd
mov eax, edi
call fcn.0043a010
push ebx
mov esi, eax
call fcn.0043850c
mov edi, eax
pop ecx
mov dword [ebp - 0x214], edi
test esi, esi
je 0x48d4c1
test edi, edi
je 0x48d4ba
push edi
push esi
call fcn.00403e4c
pop ecx
pop ecx
mov dword [ebp - 0x208], eax
test eax, eax
jne 0x48d4a4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x48d4a4
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bl, 2
je 0x48d460
xor ebx, 2
push ebx
push esi
call edi
push dword [ebp - 0x214]
push esi
call fcn.00403e4c
pop ecx
pop ecx
mov dword [ebp - 0x208], eax
test eax, eax
jne 0x48d4a4
test bl, 4
je 0x48d484
xor ebx, 4
push ebx
push esi
call edi
push dword [ebp - 0x214]
push esi
call fcn.00403e4c
pop ecx
pop ecx
mov dword [ebp - 0x208], eax
test eax, eax
jne 0x48d4a4
test bl, 1
je 0x48d4a4
xor ebx, 1
push ebx
push esi
call edi
push dword [ebp - 0x214]
push esi
call fcn.00403e4c
pop ecx
pop ecx
mov dword [ebp - 0x208], eax
push esi
call fcn.00401a00
push dword [ebp - 0x214]
call fcn.00401a00
jmp 0x48d590
push esi
call fcn.00401a00
pop ecx
test edi, edi
je 0x48d4cc
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.00403f1f
pop ecx
pop ecx
mov dword [ebp - 0x208], eax
test eax, eax
jne 0x48d59f
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x48d4cc
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test bl, 2
je 0x48d536
xor ebx, 2
push ebx
push dword [ebp - 0x210]
call edi
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
call fcn.00403f1f
pop ecx
pop ecx
mov dword [ebp - 0x208], eax
test eax, eax
jne 0x48d59f
test bl, 4
je 0x48d564
xor ebx, 4
push ebx
push dword [ebp - 0x210]
call edi
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
call fcn.00403f1f
pop ecx
pop ecx
mov dword [ebp - 0x208], eax
test eax, eax
jne 0x48d59f
test bl, 1
je 0x48d4cc
xor ebx, 1
push ebx
push dword [ebp - 0x210]
call edi
push dword [ebp - 0x20c]
push dword [ebp - 0x210]
call fcn.00403f1f
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
pop ecx
pop ecx
je 0x48d4cc
xor edi, edi
push edi
push 4
push edi
push dword [ebp - 0x208]
call fcn.00403f36
add esp, 0x10
test eax, eax
je 0x48d5f0
inc dword [0x4fa84c]
cmp dword [0x4fa84c], 0xa
jge 0x48d5f0
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.004394bf
add esp, 0x18
xor ebx, ebx
cmp dword [0x4faef8], ebx
je 0x48d688
cmp edi, 0xff
jge 0x48d612
inc edi
cmp dword [edi*4 + 0x4faef8], ebx
jne 0x48d5fe
jmp 0x48d688
xor edi, edi
or edx, 0xffffffff
xor eax, eax
mov ecx, dword [eax*4 + 0x4fb2f8]
cmp ecx, edx
jae 0x48d628
mov edi, eax
mov edx, ecx
inc eax
cmp eax, 0x100
jl 0x48d619
inc dword [0x4fa954]
cmp dword [0x4fa954], 0xa
jge 0x48d66b
push dword [edi*4 + 0x4fa9f8]
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.004394bf
add esp, 0x18
lea esi, [edi*4 + 0x4fa9f8]
mov eax, dword [esi]
mov dword [edi*4 + 0x4faef8], ebx
cmp eax, ebx
je 0x48d688
push eax
call fcn.00401a00
pop ecx
mov dword [esi], ebx
mov eax, dword [ebp - 0x208]
mov esi, edi
mov dword [esi*4 + 0x4faef8], eax
call fcn.0041a958
push dword [ebp - 0x210]
mov dword [esi*4 + 0x4fb2f8], 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 + 0x4fa9f8], eax
test eax, eax
jne 0x48d6e8
and dword [esi*4 + 0x4faef8], eax
mov eax, dword [ebp - 0x208]
jmp 0x48d4ce
push dword [ebp - 0x210]
push eax
call fcn.00401ba0
push str.rwbt
push dword [ebp - 0x20c]
mov byte [edi + 0x4fadf8], 0
call fcn.004397d9
add esp, 0x10
test eax, eax
je 0x48d719
mov byte [edi + 0x4fadf8], 1
push 0x4b2174
push dword [ebp - 0x20c]
call fcn.004397d9
pop ecx
pop ecx
test eax, eax
je 0x48d736
or byte [edi + 0x4fadf8], 2
push 0x4b2178
push dword [ebp - 0x20c]
call fcn.004397d9
pop ecx
pop ecx
test eax, eax
je 0x48d753
or byte [edi + 0x4fadf8], 4
push 0x4b217c
push dword [ebp - 0x20c]
call fcn.004397d9
pop ecx
pop ecx
test eax, eax
je 0x48d770
or byte [edi + 0x4fadf8], 8
push 0x4af460
push dword [ebp - 0x20c]
call fcn.004397d9
pop ecx
pop ecx
test eax, eax
je 0x48d78d
or byte [edi + 0x4fadf8], 0x10
push 0x4b2180
push dword [ebp - 0x20c]
call fcn.004397d9
pop ecx
pop ecx
test eax, eax
je 0x48d7aa
or byte [edi + 0x4fadf8], 0x20
mov eax, dword [esi*4 + 0x4fa9f8]
push dword [ebp - 0x218]
lea eax, [eax + ebx + 1]
push eax
mov dword [esi*4 + 0x4fb6f8], eax
call fcn.00401ba0
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
lea edx, [ebp - 0x204]
mov dword [esi*4 + 0x4fbaf8], eax
call fcn.00439e45
test eax, eax
jne 0x48d6dd
cmp dword [0x4fa9f4], eax
jne 0x48d6dd
and dword [0x4fa9f4], eax
jmp 0x48d6dd