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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x102e91c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x10194b5b
mov ecx, dword [0x102eec4c]
test ecx, ecx
je 0x10194b23
cmp byte [0x102eec26], 0
jne 0x10194b2e
call fcn.1018f140
mov ecx, dword [0x102eec4c]
mov eax, dword [ecx]
push str.file_handler_to_read_not_initialized
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101cff65
mov esp, ebp
pop ebp
ret 0x10
lea eax, [edi + 0xc]
push eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x10]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x10194bf2
mov eax, dword [0x102eec4c]
test eax, eax
je 0x10194b8a
cmp byte [0x102eec26], 0
jne 0x10194b94
call fcn.1018f140
mov eax, dword [0x102eec4c]
cmp dword [edi + 0xac], 8
lea ecx, [edi + 0x98]
jb 0x10194ba5
mov ecx, dword [ecx]
mov esi, dword [eax]
push ecx
push str.failed_to_get_the_file_size_of__s
push 0x1025b044
mov esi, dword [esi + 0x24]
mov ecx, esi
push eax
call dword [0x1024852c]
call esi
add esp, 0x10
mov dword [edi + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x28], eax
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101cff65
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0xc]
test eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
ja 0x10194c62
jb 0x10194c08
test eax, eax
jne 0x10194c62
mov ecx, dword [0x102eec4c]
test ecx, ecx
je 0x10194c1b
cmp byte [0x102eec26], 0
jne 0x10194c26
call fcn.1018f140
mov ecx, dword [0x102eec4c]
mov eax, dword [ecx]
push str.start_address_to_read_the_file_is_past_the_file_size.
push 0x1025b044
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x1024852c]
call esi
mov eax, dword [ebp - 0x24]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101cff65
mov esp, ebp
pop ebp
ret 0x10
push 0
xorps xmm0, xmm0
push 0
movlpd qword [ebp - 0x20], xmm0
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x10194d7d
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x14], 0
push eax
call fcn.101d062a
add esp, 4
mov dword [ebx], eax
lea eax, [ebp - 0x14]
push 0
push eax
push dword [ebp - 0x18]
push dword [ebx]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x10194ceb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
jne 0x10194ceb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
jne 0x10194dd3
mov ecx, dword [ebx]
lea edi, [eax - 0x25]
mov eax, dword [ebp - 0x14]
mov byte [eax + ecx], 0
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
mov dword [esi + 4], 0
jmp 0x10194dd6
mov ecx, dword [ebp - 0x18]
xor eax, eax
cmp dword [ebp - 0x14], ecx
jne 0x10194d14
cmp eax, dword [ebp - 0x28]
jne 0x10194d14
lea edi, [eax + 1]
mov eax, dword [ebx]
mov byte [ecx + eax], 0
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
mov dword [esi + 4], 0
jmp 0x10194dd6
mov dword [edi + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x28], eax
mov edi, dword [0x102eec4c]
test edi, edi
je 0x10194d37
cmp byte [0x102eec26], 0
jne 0x10194d42
call fcn.1018f140
mov edi, dword [0x102eec4c]
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esi + 0x24]
mov ecx, esi
push eax
push str.failed_to_read_data._Error_code____d
push 0x1025b044
push edi
call dword [0x1024852c]
call esi
mov esi, dword [ebx]
push esi
call fcn.101d0625
mov edi, dword [ebp - 0x1c]
add esp, 0x14
test esi, esi
je 0x10194dd6
mov dword [ebx], 0x8123
jmp 0x10194dd6
mov dword [edi + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x28], eax
mov edi, dword [0x102eec4c]
test edi, edi
je 0x10194da0
cmp byte [0x102eec26], 0
jne 0x10194dab
call fcn.1018f140
mov edi, dword [0x102eec4c]
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esi + 0x24]
mov ecx, esi
push eax
push str.file_pointer_set_error____d
push 0x1025b044
push edi
call dword [0x1024852c]
call esi
add esp, 0x10
xor edi, edi
jmp 0x10194dd6
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
cmp edi, 1
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.101cff65
mov esp, ebp
pop ebp
ret 0x10