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

Disassembly:
push 0xffffffffffffffff
push 0x101f7680
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
mov eax, dword [esp + 0xb4]
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0xb0]
cmp eax, ebx
mov ebp, ecx
mov dword [esp + 0x10], ebx
jne 0x101ad284
cmp edi, ebx
jne 0x101ad284
xor al, al
jmp 0x101ad6a4
lea ecx, [esp + 0x4c]
call fcn.101af2f0
lea ecx, [ebp + 0x78]
mov dword [esp + 0xa4], ebx
call fcn.101b0570
cmp eax, 0xffffffff
je 0x101ad2ea
mov eax, dword [esp + 0xac]
lea esi, [ebp + 0xec]
push eax
mov ecx, esi
call fcn.101b1e70
test al, al
je 0x101ad2ea
mov ecx, dword [esp + 0xac]
mov edx, dword [ebp + 0x130]
and ecx, 0xffff
mov eax, dword [edx + ecx*4]
lea ecx, [esp + 0x4c]
push eax
call fcn.101ad700
lea ecx, [esp + 0x4c]
push ecx
push 0
push 1
mov ecx, esi
call fcn.101ad6c0
push edi
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::CString_1
mov eax, dword [esp + 0xb8]
mov byte [esp + 0xa4], 1
test eax, eax
jne 0x101ad328
lea edx, [esp + 0x38]
lea ecx, [esp + 0x4c]
push edx
call fcn.101afe90
mov ebx, 1
mov dword [esp + 0x10], ebx
mov eax, dword [eax]
mov byte [esp + 0xa4], 2
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::CString_1
mov esi, 4
test bl, 1
mov dword [esp + 0xa4], esi
je 0x101ad353
and ebx, 0xfffffffe
lea ecx, [esp + 0x38]
mov dword [esp + 0x10], ebx
call sub.MFC42u.DLL_CString::CString
push 0x1023ec2c
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::TrimRight_2
mov al, byte [esp + 0xb4]
test al, al
je 0x101ad38f
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.101acb60
add esp, 8
or ebx, 2
mov dword [esp + 0x10], ebx
mov byte [esp + 0xa4], 5
jmp 0x101ad3b4
mov edx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x38]
push edx
push eax
call fcn.101acc50
add esp, 0xc
or ebx, esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xa4], 6
push eax
lea ecx, [esp + 0x28]
push 0x1023ec2c
push ecx
call sub.MFC42u.DLL_operator
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0xa8], 7
call fcn.10071080
lea ecx, [esp + 0x24]
mov byte [esp + 0xa4], 6
call sub.MFC42u.DLL_CString::CString
test bl, 4
mov dword [esp + 0xa4], 5
je 0x101ad40a
and ebx, 0xfffffffb
lea ecx, [esp + 0x34]
mov dword [esp + 0x10], ebx
call sub.MFC42u.DLL_CString::CString
test bl, 2
mov dword [esp + 0xa4], esi
je 0x101ad41f
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp + 0x78]
call fcn.101b0570
mov esi, dword [esp + 0xac]
cmp eax, 0xffffffff
je 0x101ad4c1
push esi
lea ecx, [ebp + 0xec]
call fcn.101b1e70
test al, al
je 0x101ad4c1
mov eax, dword [ebp + 0x130]
mov edx, esi
and edx, 0xffff
mov ecx, dword [eax + edx*4]
mov edx, dword [ecx + 0x24]
shr edx, 4
and dl, 1
mov byte [esp + 0x23], dl
je 0x101ad4c1
mov eax, dword [esp + 0x14]
push eax
call fcn.101ace70
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x18]
add esp, 4
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x18]
mov byte [esp + 0xa4], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0xa4], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov dword [esp + 0xa4], 0xffffffff
call fcn.101af390
mov al, 1
jmp 0x101ad6a4
push esi
mov ecx, ebp
call fcn.101abc00
test al, al
jne 0x101ad50a
lea ecx, [esp + 0x18]
mov byte [esp + 0xa4], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0xa4], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov dword [esp + 0xa4], 0xffffffff
call fcn.101af390
xor al, al
jmp 0x101ad6a4
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x101ad52c
test al, 1
je 0x101ad52c
mov ecx, dword [esp + 0x14]
and al, 0xfe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.101ac9f0
mov eax, dword [eax]
mov byte [esp + 0xac], 8
push eax
call fcn.101ace70
add esp, 0xc
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa4], 4
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x14]
push 0x1021
push ecx
lea ecx, [esp + 0x44]
call fcn.1007102c
mov ebx, dword [esp + 0xbc]
xor edi, edi
cmp ebx, edi
mov byte [esp + 0xa4], 9
je 0x101ad596
lea ecx, [esp + 0x4c]
call fcn.101afca0
mov dword [esp + 0x10], eax
jmp 0x101ad59a
mov dword [esp + 0x10], edi
mov edx, dword [esp + 0xc4]
push 0
push edx
lea ecx, [esp + 0x30]
call fcn.101b1400
mov eax, dword [esp + 0x30]
mov byte [esp + 0xa4], 0xa
push eax
mov eax, dword [esp + 0x30]
push eax
mov ecx, ebp
call fcn.101abea0
mov esi, eax
test esi, esi
je 0x101ad5f8
mov ecx, dword [esp + 0x2c]
push esi
push ecx
lea ecx, [esp + 0x44]
call sub.MFC42u.DLL_CFile::Write
add edi, esi
test ebx, ebx
je 0x101ad5f8
mov edx, dword [esp + 0xc0]
mov eax, dword [esp + 0x10]
push edx
push edi
push eax
call ebx
add esp, 0xc
test al, al
je 0x101ad600
mov eax, dword [esp + 0x30]
cmp esi, eax
je 0x101ad5b9
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x40]
call dword [edx + 0x20]
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa4], 0xb
call dword [eax + 0x54]
mov ecx, dword [esp + 0x10]
push 0
push ecx
mov ecx, ebp
call fcn.101ac2c0
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0xa4], 0xa
call sub.MFC42u.DLL_CString::CString
cmp esi, 1
lea ecx, [esp + 0x28]
sete bl
mov byte [esp + 0xa4], 9
call fcn.101b1480
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa4], 4
call fcn.101b39a6
lea ecx, [esp + 0x18]
mov byte [esp + 0xa4], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0xa4], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov dword [esp + 0xa4], 0xffffffff
call fcn.101af390
mov al, bl
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x98
ret 0x1c