Function at 0x45bbd0
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x543aba
mov eax, dword fs:[0]
push eax
mov eax, 0x10dc
call fcn.00489eb0
mov eax, dword [0x580280]
xor eax, ebp
mov dword [ebp - 0x74], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10e4], ecx
mov ecx, dword [ebp + 0x10]
call fcn.004012c0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0xffffffff
jne 0x45bc24
xor eax, eax
jmp 0x45bffc
mov eax, dword [ebp - 0x44]
and eax, 0x10
neg eax
sbb eax, eax
and eax, 0x2000000
mov dword [ebp - 0x38], eax
push 0
mov ecx, dword [ebp - 0x38]
push ecx
push 3
push 0
push 1
push closesocket
mov ecx, dword [ebp + 0x10]
call fcn.004012c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x45bc66
xor eax, eax
jmp 0x45bffc
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.0045ef30
add esp, 0xc
mov dword [ebp - 4], 0
lea edx, [ebp - 0x34]
mov dword [ebp - 0x40], edx
lea eax, [ebp - 0x1084]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x1084]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea ecx, [ebp - 0x107c]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
push 0x24
push 0
lea ecx, [ebp - 0x70]
push ecx
call fcn.00486c20
add esp, 0xc
movzx edx, word [ebp - 0x1c]
shl edx, 0x10
movzx eax, word [ebp - 0x107c]
or edx, eax
mov dword [ebp - 0x58], edx
mov ecx, dword [ebp - 0x50]
or ecx, dword [ebp - 0x44]
mov dword [ebp - 0x50], ecx
movzx edx, byte [ebp + 0x14]
test edx, edx
je 0x45bda3
push 0xfde9
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10a0]
push ecx
mov ecx, dword [ebp - 0x10e4]
call fcn.0045ba70
mov byte [ebp - 4], 1
push 0x800
push 0
push 0
push 0
push 0
push 8
push 0xfffffffffffffff1
push 0
push 9
push 8
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x70]
push edx
lea ecx, [ebp - 0x10a0]
call fcn.00405ff0
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004a8fd0
add esp, 0x48
test eax, eax
je 0x45bd8f
mov dword [ebp - 0x10c8], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10a0]
call fcn.00405fb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0045d7d0
mov eax, dword [ebp - 0x10c8]
jmp 0x45bffc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10a0]
call fcn.00405fb0
jmp 0x45be2f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x10bc]
push edx
mov ecx, dword [ebp - 0x10e4]
call fcn.0045ba70
mov byte [ebp - 4], 2
push 9
push 8
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x10bc]
call fcn.00405ff0
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004a91e0
add esp, 0x28
test eax, eax
je 0x45be20
mov dword [ebp - 0x10cc], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10bc]
call fcn.00405fb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0045d7d0
mov eax, dword [ebp - 0x10cc]
jmp 0x45bffc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10bc]
call fcn.00405fb0
mov edx, dword [ebp + 8]
push edx
push fcn.004a9c90
lea eax, [ebp - 0x18]
push eax
call fcn.0045ef30
add esp, 0xc
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x44]
and edx, 0x10
je 0x45be7e
mov dword [ebp - 0x10d0], 1
lea ecx, [ebp - 0x18]
call fcn.0045d800
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0045d7d0
mov eax, dword [ebp - 0x10d0]
jmp 0x45bffc
mov dword [ebp - 0x1078], 0x1000
xor eax, eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x45bece
mov dword [ebp - 0x10d4], 0
lea ecx, [ebp - 0x18]
call fcn.0045d800
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0045d7d0
mov eax, dword [ebp - 0x10d4]
jmp 0x45bffc
cmp dword [ebp - 0x48], 0
jl 0x45bfd5
jg 0x45bee4
cmp dword [ebp - 0x4c], 0
jbe 0x45bfd5
cmp dword [ebp - 0x48], 0
jl 0x45bf01
jg 0x45bef5
cmp dword [ebp - 0x4c], 0x1000
jbe 0x45bf01
mov dword [ebp - 0x10e8], 0x1000
jmp 0x45bf0a
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x10e8], eax
mov ecx, dword [ebp - 0x10e8]
mov dword [ebp - 0x10c0], ecx
mov dword [ebp - 0x10c4], 0
push 0
lea edx, [ebp - 0x10c4]
push edx
mov eax, dword [ebp - 0x10c0]
push eax
lea ecx, [ebp - 0x1074]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45bf71
mov dword [ebp - 0x10d8], 0
lea ecx, [ebp - 0x18]
call fcn.0045d800
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0045d7d0
mov eax, dword [ebp - 0x10d8]
jmp 0x45bffc
mov eax, dword [ebp - 0x10c4]
push eax
lea ecx, [ebp - 0x1074]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004a9230
add esp, 0xc
test eax, eax
jge 0x45bfb8
mov dword [ebp - 0x10dc], 0
lea ecx, [ebp - 0x18]
call fcn.0045d800
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0045d7d0
mov eax, dword [ebp - 0x10dc]
jmp 0x45bffc
mov eax, dword [ebp - 0x10c4]
xor ecx, ecx
mov edx, dword [ebp - 0x4c]
sub edx, eax
mov eax, dword [ebp - 0x48]
sbb eax, ecx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], eax
jmp 0x45bece
mov dword [ebp - 0x10e0], 1
lea ecx, [ebp - 0x18]
call fcn.0045d800
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0045d7d0
mov eax, dword [ebp - 0x10e0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x74]
xor ecx, ebp
call fcn.00486c08
mov esp, ebp
pop ebp
ret 0x10