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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
mov eax, dword [ecx + 0x34]
push edi
mov dword [ecx + 0x2c], 1
mov esi, ecx
xor ebx, ebx
mov edx, dword [eax + 0x18]
mov ecx, dword [esi + 0x3c]
mov edi, dword [edx + ecx*4]
mov eax, dword [esi + 0x38]
add eax, 0x582
cmp byte [eax], 0
je 0x411d4a
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x411d4a
mov eax, dword [esi + 0x38]
add eax, 0x582
push eax
push eax
call fcn.0040c352
add esp, 8
test eax, eax
je 0x411d50
inc ebx
cmp ebx, 5
jl 0x411d1b
mov eax, dword [esi + 0x38]
cmp byte [eax + 0x582], 0
je 0x411d9d
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x411d66
mov eax, dword [edi + 0x10]
push 0x41f8d0
push eax
call fcn.00418090
add esp, 8
test eax, eax
jne 0x411d9d
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x411d82
mov eax, dword [edi + 0x10]
push eax
lea ecx, [ebp - 0x118]
mov eax, dword [esi + 0x38]
add eax, 0x582
push eax
push ecx
call fcn.0040c414
add esp, 0xc
jmp 0x411db7
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x411da7
mov eax, dword [edi + 0x10]
push eax
lea ecx, [ebp - 0x118]
push ecx
call fcn.00417c10
add esp, 8
xor edi, edi
push esi
call fcn.00401190
add esp, 4
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x10], 0x401120
mov dword [ebp - 0xc], 3
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x38]
add eax, 0x582
push eax
push str.All_Files_._
push str.Save_file
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040bf78
push esi
mov dword [ebp - 4], eax
call fcn.0040120e
add esp, 4
mov dword [esi + 0x20], edi
cmp dword [ebp - 4], edi
je 0x411f3d
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x3c]
mov edx, dword [eax + 0x18]
mov eax, dword [esi + 0x38]
add eax, 0x582
mov ebx, dword [edx + ecx*4]
push eax
lea ecx, [ebp - 0x118]
push ecx
call fcn.0040c352
add esp, 8
lea ecx, [ebp - 0x118]
push ecx
push ecx
call fcn.0040c2f2
add esp, 8
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x411e54
push eax
call fcn.00417e50
add esp, 4
lea eax, [ebp - 0x118]
push eax
call fcn.0041a200
add esp, 4
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x2c], 1
xor ebx, ebx
mov eax, dword [esi + 0x34]
cmp dword [eax + 0x1c], edi
jle 0x411f1e
mov dword [ebp - 8], edi
mov eax, dword [esi + 0x34]
mov edx, dword [ebp - 8]
mov ecx, dword [eax + 0x18]
mov ecx, dword [ecx + edx]
cmp dword [ecx + 0x2c], 0
je 0x411ec5
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x411e9a
mov eax, dword [ecx + 0x10]
push eax
lea ecx, [ebp - 0x118]
mov eax, dword [esi + 0x38]
add eax, 0x582
push eax
push ecx
call fcn.0040c414
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x411ed4
inc ebx
mov eax, dword [esi + 0x34]
add dword [ebp - 8], 4
cmp dword [eax + 0x1c], ebx
jg 0x411e7e
jmp 0x411f1e
mov ecx, dword [esi + 0x30]
push 0x31
mov eax, dword [ecx]
push str.Attention
push str.same_file_name_exists._r_nOverwrite_OK_
call dword [eax + 0x90]
dec eax
cmp eax, 1
sbb eax, eax
neg eax
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x411f1e
xor ecx, ecx
mov eax, dword [esi + 0x34]
cmp dword [eax + 0x1c], edi
jle 0x411f1e
xor edx, edx
mov eax, dword [esi + 0x34]
inc ecx
mov ebx, dword [eax + 0x18]
mov eax, dword [ebx + edx]
add edx, 4
mov dword [eax + 0x2c], edi
mov eax, dword [esi + 0x34]
cmp dword [eax + 0x1c], ecx
jg 0x411f06
cmp dword [ebp - 4], edi
je 0x411db9
push 1
mov ecx, dword [esi + 0x38]
call fcn.0040e3c3
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
jmp 0x411f36