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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
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 0x411d06
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x411d06
mov eax, dword [esi + 0x38]
add eax, 0x582
push eax
push eax
call fcn.0040c38a
add esp, 8
test eax, eax
je 0x411d0c
inc ebx
cmp ebx, 5
jl 0x411cd7
mov eax, dword [esi + 0x38]
cmp byte [eax + 0x582], 0
je 0x411d80
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x411d22
mov eax, dword [edi + 0x10]
push 0x41f8d0
push eax
call fcn.004180a0
add esp, 8
test eax, eax
jne 0x411d80
mov ebx, dword [edi + 0xc]
test ebx, ebx
jne 0x411d3e
mov ebx, dword [edi + 0x10]
mov edi, dword [esi + 0x38]
add edi, 0x582
cmp byte [edi], 0
je 0x411d61
push edi
call fcn.00417f20
add esp, 4
cmp byte [edi + eax - 1], 0x5c
mov eax, 0x41d880
jne 0x411d66
mov eax, 0x41d268
push ebx
lea ecx, [ebp - 0x120]
push eax
push edi
push str._s_s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
jmp 0x411d9a
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x411d8a
mov eax, dword [edi + 0x10]
push eax
lea ecx, [ebp - 0x120]
push ecx
call fcn.00417c20
add esp, 8
xor ebx, ebx
push esi
call fcn.00401190
add esp, 4
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x18], 0x401120
mov dword [ebp - 0x14], 3
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x38]
add eax, 0x582
push eax
push str.All_Files_._
push str.Save_file
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0040bfb0
push esi
mov dword [ebp - 4], eax
call fcn.0040120e
add esp, 4
mov dword [esi + 0x20], ebx
cmp dword [ebp - 4], ebx
je 0x411f54
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x3c]
mov ecx, dword [eax + 0x18]
mov eax, dword [esi + 0x38]
add eax, 0x582
mov edi, dword [ecx + edx*4]
push eax
lea ecx, [ebp - 0x120]
push ecx
call fcn.0040c38a
add esp, 8
lea ecx, [ebp - 0x120]
push ecx
push ecx
call fcn.0040c32a
add esp, 8
mov eax, dword [edi + 0xc]
test eax, eax
je 0x411e37
push eax
call fcn.00417e60
add esp, 4
lea eax, [ebp - 0x120]
push eax
call fcn.0041a210
add esp, 4
mov dword [edi + 0xc], eax
mov dword [edi + 0x2c], 1
mov eax, dword [esi + 0x34]
mov dword [ebp - 8], ebx
cmp dword [eax + 0x1c], ebx
jle 0x411f35
mov dword [ebp - 0xc], ebx
mov eax, dword [esi + 0x34]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax + 0x18]
mov ecx, dword [ecx + edx]
cmp dword [ecx + 0x2c], ebx
je 0x411ed3
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x411e7d
mov eax, dword [ecx + 0x10]
mov edi, dword [esi + 0x38]
mov dword [ebp - 0x10], eax
add edi, 0x582
cmp byte [edi], bl
je 0x411ea2
push edi
call fcn.00417f20
add esp, 4
cmp byte [edi + eax - 1], 0x5c
mov eax, 0x41d880
jne 0x411ea7
mov eax, 0x41d268
push dword [ebp - 0x10]
push eax
push edi
lea ecx, [ebp - 0x120]
push str._s_s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x411eeb
mov ecx, dword [esi + 0x34]
inc dword [ebp - 8]
add dword [ebp - 0xc], 4
mov eax, dword [ebp - 8]
cmp dword [ecx + 0x1c], eax
jg 0x411e62
jmp 0x411f35
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, ebx
jne 0x411f35
xor ecx, ecx
mov eax, dword [esi + 0x34]
cmp dword [eax + 0x1c], ebx
jle 0x411f35
xor edx, edx
mov eax, dword [esi + 0x34]
inc ecx
mov edi, dword [eax + 0x18]
mov eax, dword [edi + edx]
add edx, 4
mov dword [eax + 0x2c], ebx
mov eax, dword [esi + 0x34]
cmp dword [eax + 0x1c], ecx
jg 0x411f1d
cmp dword [ebp - 4], ebx
je 0x411d9c
push 1
mov ecx, dword [esi + 0x38]
call fcn.0040e341
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
jmp 0x411f4d