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

Disassembly:
push 0x24
mov eax, 0x1032a785
call fcn.102790e7
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp + 8]
test edi, edi
jne 0x101899f4
mov eax, 0x80070057
jmp 0x10189bb4
call fcn.10182ee4
xor ecx, ecx
cmp dword [ebp + 0xc], 1
mov dword [ebp - 4], ecx
mov dword [ebp - 0x18], ecx
jne 0x10189ae1
push ecx
push ecx
push 3
push ecx
push ecx
push SysReAllocStringLen
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10189a3b
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10189a45
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0x80004005
jmp 0x10189bad
push 0
push esi
call fcn.101894a2
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
jne 0x10189a67
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0x8007000e
jmp 0x10189bad
and dword [ebp + 0x14], 0
lea eax, [ebp + 0x14]
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
test eax, eax
jne 0x10189a8d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call sym.osetup.dll_void___stdcall_NetUI::HFree_void__
jmp 0x10189a3b
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
call fcn.101e8c6a
mov byte [ebp + 0xb], al
test al, al
jne 0x10189aee
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
dec eax
neg eax
sbb al, al
add al, 1
mov byte [ebp + 0x18], al
je 0x10189ac9
mov eax, 0xfeff
cmp word [edi], ax
jne 0x10189ac9
add edi, 2
sub esi, 2
jmp 0x10189aee
mov eax, 0xbbef
cmp word [edi], ax
jne 0x10189aee
cmp byte [edi + 2], 0xbf
jne 0x10189aee
add edi, 3
sub esi, 3
jmp 0x10189aee
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.101e8c6a
mov byte [ebp + 0xb], al
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
and dword [ebp - 0x14], 0
push eax
mov byte [ebp - 4], 1
call fcn.1018993a
push eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x24]
push eax
call fcn.101b1464
mov ebx, eax
test ebx, ebx
js 0x10189b8c
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push dword [eax + 0x18]
lea ecx, [ecx + 0xc4]
call fcn.10177272
cmp byte [ebp + 0xb], 0
jne 0x10189c10
xor edx, edx
mov dword [ebp + 0xc], edx
mov byte [ebp - 4], 3
cmp dword [ebp + 0x10], edx
je 0x10189b48
mov ebx, 0x80004005
jmp 0x10189b8c
lea eax, [ebp + 8]
mov dword [ebp + 8], edx
push eax
call fcn.101bab7f
mov ebx, eax
test ebx, ebx
jns 0x10189bbc
mov ecx, dword [ebp + 8]
and dword [ebp + 8], 0
mov byte [ebp - 4], 1
test ecx, ecx
je 0x10189b6e
mov eax, dword [ecx]
call dword [eax + 0x28]
mov esi, dword [ebp - 0x10]
test ebx, ebx
js 0x10189b8c
cmp byte [esi + 0x29], 0
je 0x10189b8c
mov eax, dword [ebp - 0x14]
lea ecx, [esi + 0x1c]
push dword [eax + 0xc8]
call fcn.10177272
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10189b99
push eax
call sym.osetup.dll_void___stdcall_NetUI::HFree_void__
mov ecx, dword [ebp - 0x14]
and dword [ebp - 0x14], 0
mov byte [ebp - 4], 0
test ecx, ecx
je 0x10189bad
mov edx, dword [ecx]
call dword [edx + 4]
call fcn.101800f7
mov eax, ebx
call fcn.102790b8
ret 0x14
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x20]
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], ecx
push dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
call fcn.101be6bf
push dword [ebp + 8]
lea ecx, [ebp + 0xc]
call fcn.1018962b
call fcn.10258997
push dword [ebp + 0x18]
mov ecx, eax
push esi
mov esi, dword [ebp + 0xc]
mov edx, dword [eax]
push esi
push 0
push 0
push edi
call dword [edx]
mov byte [ebp - 4], 2
mov ebx, eax
test esi, esi
je 0x10189b5a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
jmp 0x10189b5a
and dword [ebp + 0x18], 0
lea eax, [ebp + 0x18]
push eax
mov byte [ebp - 4], 4
call fcn.101bebd9
mov ebx, eax
test ebx, ebx
jns 0x10189c47
mov ecx, dword [ebp + 0x18]
and dword [ebp + 0x18], 0
mov byte [ebp - 4], 1
test ecx, ecx
je 0x10189b6e
add ecx, 0xc
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10189b6e
mov dword [ebp - 0x2c], 0x104d0ee4
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp - 0x10]
add ecx, 0xc
mov byte [ebp - 4], 5
mov eax, dword [ecx]
push dword [esi + 0x20]
call dword [eax + 8]
push dword [ebp - 0x14]
mov ecx, dword [ebp + 0x18]
call fcn.101c236f
mov ecx, dword [ebp + 0x18]
lea edx, [ebp - 0x2c]
add ecx, 8
push edx
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, dword [ebp + 0x18]
xor edx, edx
mov dword [ebp - 0x2c], 0x104d0ee4
mov ebx, eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov byte [ebp - 4], 1
mov dword [ebp + 0x18], edx
test ecx, ecx
je 0x10189b71
add ecx, 0xc
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10189b71