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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x569c53
push eax
mov eax, dword [esp + 0x24]
mov dword fs:[0], esp
sub esp, 0x2c
push ebp
xor ebp, ebp
cmp eax, ebp
jne 0x4f1ce7
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4f1ce7
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret 0x18
push ebx
push esi
push edi
mov edi, dword [esp + 0x5c]
cmp edi, ebp
je 0x4f1e2f
cmp dword [edi], 0xffffffff
jne 0x4f1e15
mov dword [edi], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x60], ebp
mov edx, dword [0x5d2a60]
mov ecx, 0x5d2a60
mov byte [esp + 0x44], 1
mov dword [esp + 0x10], ecx
call dword [edx + 4]
mov eax, dword [0x5cb0cc]
mov bl, 2
cmp eax, ebp
mov byte [esp + 0x44], bl
jne 0x4f1d85
cmp dword [0x5cb0c8], ebp
jne 0x4f1d85
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov byte [esp + 0x44], 3
je 0x4f1d5b
mov ecx, eax
call fcn.0045e9d0
jmp 0x4f1d5d
xor eax, eax
mov dword [0x5cb0c8], eax
mov eax, dword [0x5b5c48]
push eax
push 0x41ebd0
mov ecx, 0x5d0190
mov byte [esp + 0x4c], bl
call fcn.00406500
mov dword [0x5cb0cc], 1
mov edx, dword [0x5d2a60]
mov esi, dword [0x5cb0c8]
mov ecx, 0x5d2a60
mov byte [esp + 0x44], 1
call dword [edx + 8]
mov eax, dword [esi]
lea ecx, [esp + 0x5c]
push ecx
push esi
call dword [eax + 8]
mov ecx, dword [esp + 0x5c]
test eax, eax
jl 0x4f1dec
cmp ecx, ebp
je 0x4f1dec
mov esi, dword [esp + 0x60]
lea eax, [esp + 0x60]
mov dword [esp + 0x60], ebp
mov edx, dword [ecx]
push eax
push 0x5b68d0
push ecx
call dword [edx]
cmp esi, ebp
je 0x4f1dd6
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
mov eax, dword [esp + 0x60]
cmp eax, ebp
je 0x4f1e29
mov edx, dword [eax]
push edi
push eax
call dword [edx + 0x90]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
cmp eax, ebp
mov byte [esp + 0x44], 0
je 0x4f1e03
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x5c]
cmp ecx, ebp
mov dword [esp + 0x44], 0xffffffff
je 0x4f1e15
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, dword [edi]
mov ebx, dword [esp + 0x4c]
cmp eax, 1
jne 0x4f1e33
mov ecx, ebx
call fcn.00482ad0
jmp 0x4f1e33
mov ecx, dword [esp + 0x5c]
jmp 0x4f1df0
mov ebx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x58]
xor eax, eax
cmp ecx, ebp
je 0x4f1e49
cmp dword [ecx], 1
jne 0x4f1e49
mov eax, 1
mov dword [ecx], ebp
mov esi, dword [esp + 0x50]
push eax
push esi
mov ecx, ebx
call fcn.00482420
cmp eax, ebp
mov dword [esp + 0x4c], eax
je 0x4f1f4c
mov cl, byte [esp + 0x54]
test cl, cl
je 0x4f1f4c
mov al, byte [esp + 0x54]
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x18], al
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
lea ecx, [esp + 0x28]
mov dword [esp + 0x44], 4
call fcn.0052e7e0
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 5
push ecx
push esi
lea ecx, [esp + 0x30]
call fcn.0052e850
mov ecx, dword [esp + 0x1c]
cmp ecx, ebp
jne 0x4f1eb3
xor eax, eax
jmp 0x4f1ebc
mov eax, dword [esp + 0x20]
sub eax, ecx
sar eax, 4
cmp eax, ebp
jle 0x4f1ee6
xor esi, esi
mov edi, eax
jmp 0x4f1eca
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + ecx + 4]
cmp eax, ebp
jne 0x4f1ed7
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push ebp
push eax
mov ecx, ebx
call fcn.00482420
add esi, 0x10
dec edi
jne 0x4f1ec6
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 4
call fcn.0052e820
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
mov edi, eax
je 0x4f1f3f
lea esi, [ecx + 4]
mov ecx, dword [esi]
cmp ecx, ebp
je 0x4f1f29
mov al, byte [ecx - 1]
test al, al
je 0x4f1f1d
cmp al, 0xff
je 0x4f1f1d
dec al
mov byte [ecx - 1], al
jmp 0x4f1f29
add ecx, 0xfffffffe
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi], ebp
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
add esi, 0x10
lea edx, [esi - 4]
cmp edx, edi
jne 0x4f1f05
mov ecx, dword [esp + 0x1c]
push ecx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x50]
add esp, 4
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
pop ebp
mov dword fs:[0], ecx
add esp, 0x38
ret 0x18