Function at 0x10261cc1
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
mov dword [ebp - 8], ecx
cmp esi, ebx
jne 0x10261cdc
mov eax, 0x80070057
jmp 0x10261d14
push edi
call fcn.1021338f
cmp dword [ebp + 0xc], 1
mov dword [ebp - 0xc], ebx
jne 0x10261dd5
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push SysReAllocString
push esi
call fcn.101f6153
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x10261d1a
call fcn.1021499c
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 0x10261d40
mov esi, 0x80004005
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1021499c
mov eax, esi
jmp 0x10261d13
push ebx
push edi
call fcn.102572dc
mov esi, eax
mov dword [ebp - 0xc], esi
cmp esi, ebx
jne 0x10261d57
mov esi, 0x8007000e
jmp 0x10261d2e
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]
push dword [ebp + 8]
test eax, eax
jne 0x10261d84
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call sym.osetup.dll_void___stdcall_NetUI::HFree_void__
mov esi, 0x80004005
jmp 0x10261d37
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push esi
call fcn.1029e7a6
mov byte [ebp + 0xb], al
cmp al, bl
jne 0x10261de2
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 0x10261dbd
mov eax, 0xfeff
cmp word [esi], ax
jne 0x10261dbd
inc esi
inc esi
dec edi
dec edi
jmp 0x10261de2
mov eax, 0xbbef
cmp word [esi], ax
jne 0x10261de2
cmp byte [esi + 2], 0xbf
jne 0x10261de2
add esi, 3
sub edi, 3
jmp 0x10261de2
mov edi, dword [ebp + 0x14]
push edi
push esi
call fcn.1029e7a6
mov byte [ebp + 0xb], al
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], ebx
call fcn.10261b33
push eax
mov eax, dword [ebp - 8]
push dword [eax + 0x24]
push eax
call fcn.1025e27b
cmp eax, ebx
mov dword [ebp + 0xc], eax
jl 0x10261f3a
mov eax, dword [ebp - 8]
push dword [eax + 0x18]
mov ecx, dword [ebp - 4]
call fcn.102619c1
cmp byte [ebp + 0xb], bl
jne 0x10261ea1
mov dword [ebp + 0x14], ebx
cmp dword [ebp + 0x10], ebx
je 0x10261e34
mov dword [ebp + 0xc], 0x80004005
jmp 0x10261f3a
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], ebx
call fcn.102729ea
cmp eax, ebx
mov ecx, dword [ebp + 8]
mov dword [ebp + 0xc], eax
jge 0x10261e5f
mov dword [ebp + 8], ebx
cmp ecx, ebx
je 0x10261f1c
mov eax, dword [ecx]
call dword [eax + 0x28]
jmp 0x10261f1c
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.1027039e
push dword [ebp + 8]
lea ecx, [ebp + 0x14]
call fcn.1026197f
push dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
push edi
push ebx
push ebx
push esi
call fcn.102ceb47
mov dword [ebp + 0xc], eax
cmp edi, ebx
je 0x10261e9c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x28]
mov ecx, dword [ebp + 8]
jmp 0x10261e4a
lea ecx, [ebp + 0x18]
mov dword [ebp + 0x18], ebx
call fcn.102619a9
push eax
call fcn.1026df05
cmp eax, ebx
mov dword [ebp + 0xc], eax
jl 0x10261f0a
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 8]
push dword [edx + 0x20]
add ecx, 0xc
mov dword [ebp - 0x24], 0x1008ee40
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.1026c885
mov ecx, dword [ebp + 0x18]
lea eax, [ebp - 0x24]
push eax
call fcn.1026f77c
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x24], 0x1008ee40
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]
mov dword [ebp + 0x18], ebx
cmp eax, ebx
je 0x10261f1c
lea ecx, [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp + 0xc], ebx
jl 0x10261f3a
mov eax, dword [ebp - 8]
cmp byte [eax + 0x29], bl
je 0x10261f3a
mov ecx, dword [ebp - 4]
push dword [ecx + 0xc4]
lea ecx, [eax + 0x1c]
call fcn.10259db7
cmp dword [ebp - 0xc], ebx
je 0x10261f47
push dword [ebp - 0xc]
call sym.osetup.dll_void___stdcall_NetUI::HFree_void__
mov ecx, dword [ebp - 4]
mov dword [ebp - 4], ebx
cmp ecx, ebx
je 0x10261f56
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0xc]
jmp 0x10261d37