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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10b0
call fcn.00543e90
mov eax, dword [0x5c0c70]
xor eax, ebp
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x41ba91
xor eax, eax
jmp 0x41be62
mov ecx, dword [ebp - 0x28]
and ecx, 0x10
neg ecx
sbb ecx, ecx
and ecx, 0x2000000
mov dword [ebp - 0x1c], ecx
push 0
mov edx, dword [ebp - 0x1c]
push edx
push 3
push 0
push 1
push SysReAllocString
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x41bacf
xor eax, eax
jmp 0x41be62
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.0041e4a0
add esp, 0xc
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x24], ecx
lea edx, [ebp - 0x1078]
push edx
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x1078]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 0x1064]
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
push 0x24
push 0
lea eax, [ebp - 0x58]
push eax
call fcn.0053ef70
add esp, 0xc
movzx ecx, word [ebp - 4]
shl ecx, 0x10
movzx edx, word [ebp - 0x1064]
or ecx, edx
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x38]
or eax, dword [ebp - 0x28]
mov dword [ebp - 0x38], eax
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
je 0x41bc0d
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x108c]
call fcn.0041c8a0
push 0xfde9
lea eax, [ebp - 0x108c]
push eax
lea ecx, [ebp - 0x107c]
push ecx
call fcn.0041b980
add esp, 0xc
lea ecx, [ebp - 0x108c]
call fcn.0040f740
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 - 0x58]
push edx
lea ecx, [ebp - 0x107c]
call fcn.0041c870
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00406390
add esp, 0x48
test eax, eax
je 0x41bbfd
mov dword [ebp - 0x1090], 0
lea ecx, [ebp - 0x107c]
call fcn.0041c850
lea ecx, [ebp - 0x18]
call fcn.0041cd00
mov eax, dword [ebp - 0x1090]
jmp 0x41be62
lea ecx, [ebp - 0x107c]
call fcn.0041c850
jmp 0x41bca0
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x1094]
call fcn.0041c8a0
push 0
lea edx, [ebp - 0x1094]
push edx
lea eax, [ebp - 0x1080]
push eax
call fcn.0041b980
add esp, 0xc
lea ecx, [ebp - 0x1094]
call fcn.0040f740
push 9
push 8
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x1080]
call fcn.0041c870
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.004065a0
add esp, 0x28
test eax, eax
je 0x41bc95
mov dword [ebp - 0x1098], 0
lea ecx, [ebp - 0x1080]
call fcn.0041c850
lea ecx, [ebp - 0x18]
call fcn.0041cd00
mov eax, dword [ebp - 0x1098]
jmp 0x41be62
lea ecx, [ebp - 0x1080]
call fcn.0041c850
mov eax, dword [ebp + 8]
push eax
push fcn.00407030
lea ecx, [ebp - 0x1070]
push ecx
call fcn.0041e460
add esp, 0xc
lea edx, [ebp - 0x1070]
mov dword [ebp - 0x1060], edx
mov eax, dword [ebp - 0x28]
and eax, 0x10
je 0x41bcf4
mov dword [ebp - 0x109c], 1
lea ecx, [ebp - 0x1070]
call fcn.0041ccb0
lea ecx, [ebp - 0x18]
call fcn.0041cd00
mov eax, dword [ebp - 0x109c]
jmp 0x41be62
mov dword [ebp - 0x105c], 0x1000
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x41bd40
mov dword [ebp - 0x10a0], 0
lea ecx, [ebp - 0x1070]
call fcn.0041ccb0
lea ecx, [ebp - 0x18]
call fcn.0041cd00
mov eax, dword [ebp - 0x10a0]
jmp 0x41be62
cmp dword [ebp - 0x2c], 0
jl 0x41be3f
jg 0x41bd56
cmp dword [ebp - 0x30], 0
jbe 0x41be3f
cmp dword [ebp - 0x2c], 0
jl 0x41bd73
jg 0x41bd67
cmp dword [ebp - 0x30], 0x1000
jbe 0x41bd73
mov dword [ebp - 0x10b0], 0x1000
jmp 0x41bd7c
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x10b0], ecx
mov edx, dword [ebp - 0x10b0]
mov dword [ebp - 0x1084], edx
mov dword [ebp - 0x1088], 0
push 0
lea eax, [ebp - 0x1088]
push eax
mov ecx, dword [ebp - 0x1084]
push ecx
lea edx, [ebp - 0x1058]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41bddf
mov dword [ebp - 0x10a4], 0
lea ecx, [ebp - 0x1070]
call fcn.0041ccb0
lea ecx, [ebp - 0x18]
call fcn.0041cd00
mov eax, dword [ebp - 0x10a4]
jmp 0x41be62
mov ecx, dword [ebp - 0x1088]
push ecx
lea edx, [ebp - 0x1058]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00406700
add esp, 0xc
test eax, eax
jge 0x41be22
mov dword [ebp - 0x10a8], 0
lea ecx, [ebp - 0x1070]
call fcn.0041ccb0
lea ecx, [ebp - 0x18]
call fcn.0041cd00
mov eax, dword [ebp - 0x10a8]
jmp 0x41be62
mov ecx, dword [ebp - 0x1088]
xor edx, edx
mov eax, dword [ebp - 0x30]
sub eax, ecx
mov ecx, dword [ebp - 0x2c]
sbb ecx, edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
jmp 0x41bd40
mov dword [ebp - 0x10ac], 1
lea ecx, [ebp - 0x1070]
call fcn.0041ccb0
lea ecx, [ebp - 0x18]
call fcn.0041cd00
mov eax, dword [ebp - 0x10ac]
mov ecx, dword [ebp - 0x34]
xor ecx, ebp
call fcn.0053ea90
mov esp, ebp
pop ebp
ret