Function at 0x5fde1d
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 8], ecx
jne 0x5fde38
mov eax, 0x80070057
jmp 0x5fde70
push edi
call fcn.005b87e0
cmp dword [ebp + 0xc], 1
mov dword [ebp - 0xc], ebx
jne 0x5fdf2b
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push SysReAllocString
push esi
call fcn.006a4279
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x5fde76
call fcn.005b9bd7
mov eax, 0x80004005
pop edi
pop esi
pop ebx
leave
ret 0x14
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5fde9c
mov esi, 0x80004005
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.005b9bd7
mov eax, esi
jmp 0x5fde6f
push ebx
push edi
call fcn.005efd1a
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0xc], esi
jne 0x5fdeb3
mov esi, 0x8007000e
jmp 0x5fde8a
push ebx
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push dword [ebp + 8]
jne 0x5fdee0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call sym.osetup.dll_void___stdcall_NetUI::HFree_void__
mov esi, 0x80004005
jmp 0x5fde93
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push esi
call fcn.00619310
cmp al, bl
mov byte [ebp + 0xb], al
jne 0x5fdf38
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
dec eax
neg eax
sbb al, al
inc al
mov byte [ebp + 0x18], al
je 0x5fdf16
cmp word [esi], 0xfeff
jne 0x5fdf16
inc esi
inc esi
dec edi
dec edi
jmp 0x5fdf38
cmp word [esi], 0xbbef
jne 0x5fdf38
cmp byte [esi + 2], 0xbf
jne 0x5fdf38
add esi, 3
sub edi, 3
jmp 0x5fdf38
mov edi, dword [ebp + 0x14]
push edi
push esi
call fcn.00619310
mov byte [ebp + 0xb], al
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], ebx
call fcn.005fde0b
push eax
mov eax, dword [ebp - 8]
push dword [eax + 0x24]
push eax
call fcn.005f6cf8
cmp eax, ebx
mov dword [ebp + 0xc], eax
jl 0x5fe090
mov eax, dword [ebp - 8]
push dword [eax + 0x18]
mov ecx, dword [ebp - 4]
call fcn.005fdc9d
cmp byte [ebp + 0xb], bl
jne 0x5fdff7
cmp dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], ebx
je 0x5fdf8a
mov dword [ebp + 0xc], 0x80004005
jmp 0x5fe090
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], ebx
call fcn.006091c1
cmp eax, ebx
mov ecx, dword [ebp + 8]
mov dword [ebp + 0xc], eax
jge 0x5fdfb5
cmp ecx, ebx
mov dword [ebp + 8], ebx
je 0x5fe072
mov eax, dword [ecx]
call dword [eax + 0x28]
jmp 0x5fe072
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x20]
mov dword [ecx + 0x20], eax
push dword [ebp - 4]
mov ecx, dword [ebp + 8]
call fcn.00606aae
push dword [ebp + 8]
lea ecx, [ebp + 0x14]
call fcn.005fdc5b
push dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
push edi
push ebx
push ebx
push esi
call fcn.0060afde
cmp edi, ebx
mov dword [ebp + 0xc], eax
je 0x5fdff2
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x28]
mov ecx, dword [ebp + 8]
jmp 0x5fdfa0
lea ecx, [ebp + 0x18]
mov dword [ebp + 0x18], ebx
call fcn.005fdc85
push eax
call fcn.00604d4b
cmp eax, ebx
mov dword [ebp + 0xc], eax
jl 0x5fe060
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 8]
push dword [edx + 0x20]
add ecx, 0xc
mov dword [ebp - 0x24], 0x4583a4
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
mov eax, dword [ecx]
call dword [eax + 8]
push dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
call fcn.006032c8
mov ecx, dword [ebp + 0x18]
lea eax, [ebp - 0x24]
push eax
call fcn.00606060
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x24], 0x4583a4
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 0x18]
cmp eax, ebx
mov dword [ebp + 0x18], ebx
je 0x5fe072
lea ecx, [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp + 0xc], ebx
jl 0x5fe090
mov eax, dword [ebp - 8]
cmp byte [eax + 0x29], bl
je 0x5fe090
mov ecx, dword [ebp - 4]
push dword [ecx + 0xb8]
lea ecx, [eax + 0x1c]
call fcn.005b6274
cmp dword [ebp - 0xc], ebx
je 0x5fe09d
push dword [ebp - 0xc]
call sym.osetup.dll_void___stdcall_NetUI::HFree_void__
mov ecx, dword [ebp - 4]
cmp ecx, ebx
mov dword [ebp - 4], ebx
je 0x5fe0ac
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0xc]
jmp 0x5fde93