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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 8], 0xffffffff
cmp dword [ebp + 8], 0
jne 0x40c744
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040e25c
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40c6fb
jmp 0x40c8e8
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 4]
cmp eax, dword [ebp - 8]
je 0x40c744
mov ecx, dword [ebp + 0x14]
cmp dword [ecx + 4], 0x1b5de6b6
je 0x40c744
cmp dword [ebp - 8], 0x1b5de6b6
je 0x40c744
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx]
push eax
movsx ecx, word [ebp + 0x10]
push ecx
push 1
call fcn.00412a9b
add esp, 0x14
mov dword [ebp - 0xc], eax
jmp 0x40c8e8
mov edx, dword [ebp + 0x14]
movsx eax, word [edx + 8]
sub eax, 1
imul eax, eax, 0x94
add eax, 0xac
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx]
push eax
call fcn.00414460
add esp, 4
sub eax, 0x41
push eax
call fcn.00412208
add esp, 8
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 4]
jae 0x40c7b2
cmp dword [0x438bb4], 0
jne 0x40c7b2
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx]
push edx
movsx eax, word [ebp + 0x10]
push eax
push 2
call fcn.00412a9b
add esp, 0x14
mov dword [ebp - 0xc], eax
jmp 0x40c8e8
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.0040d119
add esp, 4
mov edx, dword [ebp + 0x18]
push edx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov dx, word [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040de34
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40c7f5
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.0040cf77
add esp, 4
jmp 0x40c8e8
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0040d34e
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x40c821
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00414cb1
add esp, 4
mov dword [ebp - 0x14], 0xffffffff
mov edx, dword [ebp + 0x14]
push edx
call fcn.0040cf77
add esp, 4
cmp dword [ebp - 0xc], 0
je 0x40c892
movsx eax, byte [0x4389ac]
test eax, eax
je 0x40c862
push 0x4389ac
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40c862
mov ecx, dword [0x4316f8]
push ecx
push 0x4389ac
call fcn.0040e5b0
add esp, 8
movsx edx, byte [0x438ab0]
test edx, edx
je 0x40c890
push 0x438ab0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40c890
mov eax, dword [0x4316fc]
push eax
push 0x438ab0
call fcn.0040e5b0
add esp, 8
jmp 0x40c8e8
cmp dword [ebp + 8], 0
jne 0x40c8e8
mov ecx, dword [0x4316f8]
push ecx
push 0x4389ac
call fcn.0040e5b0
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40c8b7
jmp 0x40c8e8
movsx edx, byte [0x438ab0]
test edx, edx
je 0x40c8e8
push 0x438ab0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40c8e8
mov eax, dword [0x4316fc]
push eax
push 0x438ab0
call fcn.0040e5b0
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x40c8fa
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00414cb1
add esp, 4
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret