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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495b70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x234
push ebx
mov ebx, ecx
push esi
push edi
mov ecx, dword [ebx + 0xe8]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x30], ebx
mov eax, dword [ecx]
call dword [eax + 0x40]
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x41af80
cmp byte [eax], 1
jne 0x41af80
lea ecx, [ebp - 0x13c]
push 0x100
push ecx
push 0
mov dword [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [ebp - 0x13c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, 0x5c
cmp byte [ebp + ecx - 0x13c], al
je 0x41ad9a
mov dl, byte [ebp + ecx - 0x13d]
dec ecx
cmp dl, al
jne 0x41ad8e
mov al, byte [0x52aaf0]
mov byte [ebp + ecx - 0x13b], 0
test al, al
je 0x41adce
xor eax, eax
mov cl, byte [eax + 0x52a0c8]
mov byte [ebp + eax - 0x13c], cl
inc eax
test cl, cl
jne 0x41adad
lea edx, [ebp - 0x13c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
jmp 0x41ade7
mov eax, dword [ebx + 0xe4]
lea edx, [ebp - 0x13c]
mov ecx, dword [eax + 0x40]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x41addd
lea ecx, [ebp - 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41ae08
lea edx, [ebp - 0x13c]
push edx
call fcn.00452da0
add esp, 4
mov eax, dword [ebx + 0xe4]
or ecx, 0xffffffff
lea edx, [ebp - 0x13c]
mov edi, dword [eax + 0x3c]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [ebp - 0x13c]
lea esi, [ebp - 0x13c]
test al, al
je 0x41ae58
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x41ae50
mov ecx, dword [ebx + 0xe8]
xor eax, eax
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x24], 0x46
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x23], 0x44
mov byte [ebp - 0x22], 0x53
mov byte [ebp - 0x21], 0x1a
mov dword [ebp - 0x18], eax
mov edx, dword [ecx]
mov dword [ebp - 4], 0
call dword [edx + 0x34]
mov byte [ebp - 0x20], al
mov al, byte [0x528b96]
test al, al
je 0x41af9a
mov ecx, str..zsv
mov edx, esi
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x41ae9c
mov eax, dword [ebx + 0xe4]
lea edx, [ebp - 0x240]
mov ecx, dword [eax + 0x3c]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x41aeb5
lea edi, [ebp - 0x240]
or ecx, 0xffffffff
xor eax, eax
mov dl, byte [0x4a0a0c]
repne scasb al, byte es:[edi]
mov ecx, dword [0x4a0a08]
dec edi
mov dword [edi], ecx
mov ecx, dword [ebx + 0xe8]
mov byte [edi + 4], dl
mov eax, dword [ecx]
call dword [eax + 0x34]
and eax, 0xff
mov ecx, eax
shl ecx, 0xb
sub ecx, eax
shl ecx, 3
sub ecx, eax
lea edi, [ecx*4 + 0x10]
push edi
mov dword [ebp - 0x14], edi
call fcn.0048ac32
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41af91
mov eax, dword [ebp - 0x24]
mov edx, ebx
mov esi, dword [ebp - 0x2c]
mov dword [edx], eax
mov ecx, dword [ebp - 0x20]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x1c]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x240]
mov dword [edx + 0xc], ecx
lea ecx, [edi - 0x10]
mov edx, ecx
lea edi, [ebx + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp - 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x13c]
push ecx
push edx
push ebx
call fcn.0047a7f0
add esp, 0x10
test eax, eax
jne 0x41af77
lea eax, [ebp - 0x34]
push 0x49c69c
push eax
mov dword [ebp - 0x34], str.cant_save
call fcn.0048b19d
push ebx
call fcn.0048ace4
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
test al, al
jne 0x41af80
mov ebx, dword [ebp - 0x30]
mov ecx, str..sdk
mov edx, esi
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x41afa1
lea ecx, [ebp - 0x13c]
push 0x4a0820
push ecx
call fcn.0048b5ca
mov esi, eax
add esp, 8
test esi, esi
mov dword [ebp - 0x28], esi
jne 0x41afdd
lea edx, [ebp - 0x38]
push 0x49c69c
push edx
mov dword [ebp - 0x38], str.cant_open_save_disk_file
call fcn.0048b19d
push esi
push 1
lea eax, [ebp - 0x24]
push 0x10
push eax
call fcn.0048b700
mov ecx, dword [ebx + 0xe8]
add esp, 0x10
mov edx, dword [ecx]
call dword [edx + 0x34]
and eax, 0xff
mov edx, dword [ebp - 0x2c]
mov ecx, eax
push esi
shl ecx, 0xb
sub ecx, eax
push 1
shl ecx, 3
sub ecx, eax
shl ecx, 2
push ecx
push edx
call fcn.0048b700
push esi
call fcn.0048b90e
mov ecx, dword [ebp - 0xc]
add esp, 0x14
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret