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

Disassembly:
push 0xf4
mov eax, 0x59765b
call fcn.004103bb
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xfc], ecx
push ecx
mov dword [ebp - 4], ecx
xor eax, eax
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x28]
push 0x59a528
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00401c7b
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 1
call fcn.0042a60e
call fcn.0041149d
test al, al
je 0x41bc0a
pop edx
push esi
pop edx
push esi
push ebp
push esp
pop edi
push eax
pop edi
push edx
pop esi
pop esi
push ecx
pop ebx
pop ebx
push ebp
pop esp
push esi
pop ebp
pop eax
pop ecx
push ecx
push eax
pop edi
push esi
pop ebp
push esi
pop ebx
pop ecx
push eax
pop ebp
push edi
call fcn.004114e2
test al, al
je 0x41bc24
pop esi
push esp
push ecx
pop edx
push ebp
pop edx
push eax
pop eax
push esp
pop ebx
push ebp
push eax
pop esi
pop eax
pop ebx
push edi
push esp
call fcn.004117d9
test al, al
je 0x41bc4d
push edx
push esp
pop esp
pop esi
push ebx
pop eax
pop edi
push eax
push ecx
pop esp
pop edi
push edi
pop esp
pop ebp
pop ecx
pop ecx
push eax
push eax
push ecx
pop edi
pop ebp
pop ebp
push esp
pop ebx
push ebp
push eax
push ecx
push ebx
pop ebp
pop esp
pop eax
pop ecx
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41bec3
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
xor edi, edi
push edi
push 0x80
push 4
push edi
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xe8], eax
cmp eax, 0xffffffff
jne 0x41bcb7
mov ecx, dword [ebp - 0xec]
push 0x59a528
call fcn.00401680
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.00401b31
push edi
jmp 0x41bee0
call fcn.00411344
test al, al
je 0x41bce0
pop esp
pop edx
pop ebx
push esp
push esp
pop esp
push ecx
push ebp
push eax
push eax
push ebx
pop ebx
push ecx
push ecx
push esi
pop edx
pop esi
pop ebp
push eax
push ebx
push ecx
push eax
push edx
pop eax
push esi
push eax
push esp
pop ebx
pop edx
pop esi
pop ecx
push edi
call fcn.0041163b
test al, al
je 0x41bd01
push ebp
pop edi
pop edi
push edi
push ebp
pop edi
pop eax
pop edx
pop esp
pop esp
pop edi
pop eax
push ebx
push esi
pop ebx
push ebx
push esp
pop esi
pop ebp
pop ebp
push esi
pop eax
xor edi, edi
push edi
push dword [ebp - 0xe8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xf4], eax
inc eax
push eax
mov dword [ebp - 0xf8], eax
call fcn.00410461
mov esi, eax
mov dword [ebp - 0xf0], esi
pop ecx
test esi, esi
je 0x41bc96
call fcn.0041156c
test al, al
je 0x41bd54
push eax
push eax
pop edx
push esp
pop ebp
push esp
push edx
push edi
pop esp
pop ecx
pop esi
push ebx
pop ebp
push esi
pop esi
push eax
pop esi
pop edx
pop edx
mov esi, dword [ebp - 0xf0]
call fcn.00411389
test al, al
je 0x41bd7a
push edx
push esi
pop ebx
push esi
push eax
pop edi
push esi
pop ecx
push ecx
pop edi
pop ebx
pop edx
push edx
pop ebx
push edi
push ebx
pop ebp
pop edi
pop esp
push edx
push esp
push esi
pop ecx
push esp
pop ebx
push esi
pop ebp
xor edi, edi
push dword [ebp - 0xf8]
push edi
push esi
call fcn.00430680
add esp, 0xc
lea eax, [ebp - 0x100]
push edi
push eax
push dword [ebp - 0xf4]
push esi
push dword [ebp - 0xe8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
call fcn.00411344
test al, al
je 0x41bdd5
pop ebp
push esi
push esp
pop esp
push ecx
pop esp
push ecx
push eax
pop eax
pop esp
push edx
push esp
pop edx
push esp
push edi
push ebx
pop edi
pop esp
pop ecx
pop ebx
push ebx
push edx
push ebx
pop esp
push edx
push esi
pop esi
push edi
push edx
push esp
pop esi
mov esi, dword [ebp - 0xf0]
xor edi, edi
push dword [ebp - 0xe8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xf4]
lea ecx, [ebp - 0xe4]
push esi
call fcn.0042afdc
push esi
call fcn.0041046a
pop ecx
call fcn.0041170a
test al, al
je 0x41be14
push edx
push edi
push edx
pop eax
pop esi
push ebx
pop edx
push ebx
push eax
push esi
pop ebp
pop edx
pop eax
push esi
push ebx
pop ebp
push ebp
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xe4]
call fcn.0042a827
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.004182cf
pop ecx
pop ecx
push edi
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.00404b6e
call fcn.004114e2
test al, al
je 0x41be68
push eax
pop esi
pop edi
pop esp
push esi
pop edi
pop ecx
pop ebp
push ebx
pop ebp
push ecx
push ecx
push eax
push edi
push ebx
pop esi
pop eax
pop edx
push esi
push esp
push edi
pop ecx
pop ebx
push ecx
pop ebx
push edx
pop edx
pop esp
pop edx
call fcn.0041111c
test al, al
je 0x41be87
push ebp
pop ecx
push esp
pop edx
push ecx
push ebx
push edi
push esp
pop ebx
pop eax
pop edx
pop edx
push ebx
pop esi
pop ecx
push ebx
push esi
pop ecx
push ebx
push edx
push ebp
pop edi
call fcn.004112ff
test al, al
je 0x41bea1
push edi
pop esp
pop edx
push eax
push edx
pop ebp
push ebx
push esp
push esp
pop esi
pop esp
pop eax
push ebx
push ecx
push esp
push esp
pop ecx
cmp dword [ebp - 0x30], 0
jbe 0x41beb7
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401bbf
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00401b31
mov ecx, dword [ebp - 0xec]
lea eax, [ebp - 0x28]
push eax
call fcn.004050da
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00401b31
push 0
push 1
lea ecx, [ebp + 0xc]
call fcn.00401b31
mov eax, dword [ebp - 0xec]
call fcn.00410376
ret