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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x41567d
xor edx, edx
mov dword [eax], edx
lea eax, [ebp - 8]
call fcn.00404710
lea eax, [ebp - 0xc]
call fcn.00404710
lea eax, [ebp + 8]
call fcn.00404710
xor eax, eax
push ebp
push 0x4159c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.004043f8
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00404548
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x415978
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xf
lea edx, [ebp - 0x18]
xor ecx, ecx
mov eax, 0x4159d8
call fcn.004085d0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004043f8
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00404548
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x415978
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xf
lea edx, [ebp - 0x18]
xor ecx, ecx
mov eax, 0x4159e8
call fcn.004085d0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004043f8
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00404548
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x415978
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xf
lea edx, [ebp - 0x18]
xor ecx, ecx
mov eax, 0x4159e8
call fcn.004085d0
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.004043f8
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00404548
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x415978
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xf
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xf
lea edx, [ebp - 0x34]
mov ecx, 1
mov eax, 0x415a00
call fcn.004085d0
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.004043f8
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00404548
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x415978
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xf
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xf
lea edx, [ebp - 0x34]
mov ecx, 1
mov eax, 0x415a10
call fcn.004085d0
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.004043f8
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00404548
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x415978
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xf
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xf
lea edx, [ebp - 0x34]
mov ecx, 1
mov eax, 0x415a28
call fcn.004085d0
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.004043f8
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00404548
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x415978
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0xf
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0xf
mov eax, dword [ebp - 8]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0xf
lea edx, [ebp - 0x58]
mov ecx, 2
mov eax, 0x415a44
call fcn.004085d0
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 4]
call fcn.004043f8
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00404548
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x415978
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0xf
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0xf
mov eax, dword [ebp - 8]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0xf
lea edx, [ebp - 0x58]
mov ecx, 2
mov eax, 0x415a60
call fcn.004085d0
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.004043f8
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00404548
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x415978
call fcn.0041534c
mov esi, eax
cmp word [esi], 0
je 0x415976
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x34], esi
mov byte [ebp - 0x30], 0xa
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xf
lea edx, [ebp - 0x34]
mov ecx, 1
mov eax, 0x415a84
call fcn.004085d0
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 4]
call fcn.004043f8
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00404548
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x415978
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4159c9
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.004043d4
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.004043d4
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.004043d4
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004043d4
lea eax, [ebp + 8]
call fcn.004043bc
ret