Function at 0x45eb78
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 0x45ebb1
xor edx, edx
mov dword [eax], edx
lea eax, [ebp - 8]
call fcn.00404ec4
lea eax, [ebp - 0xc]
call fcn.00404ec4
lea eax, [ebp + 8]
call fcn.00404ec4
xor eax, eax
push ebp
push 0x45eef6
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040490c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00404b0c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x45eeac
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, 0x45ef0c
call fcn.0040a314
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0040490c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00404b0c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x45eeac
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, 0x45ef1c
call fcn.0040a314
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0040490c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00404b0c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x45eeac
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, 0x45ef1c
call fcn.0040a314
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.0040490c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00404b0c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x45eeac
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, 0x45ef34
call fcn.0040a314
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.0040490c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00404b0c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x45eeac
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, 0x45ef44
call fcn.0040a314
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0040490c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00404b0c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x45eeac
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, 0x45ef5c
call fcn.0040a314
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.0040490c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00404b0c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x45eeac
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, 0x45ef78
call fcn.0040a314
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 4]
call fcn.0040490c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00404b0c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x45eeac
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, 0x45ef94
call fcn.0040a314
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.0040490c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00404b0c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x45eeac
call fcn.0045e880
mov esi, eax
cmp word [esi], 0
je 0x45eeaa
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, 0x45efb8
call fcn.0040a314
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 4]
call fcn.0040490c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00404b0c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x45eeac
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45eefd
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.004048e8
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.004048e8
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.004048e8
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004048e8
lea eax, [ebp + 8]
call fcn.004048d0
ret