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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
mov eax, dword [0x1075004]
mov esi, 0x1075004
cmp eax, esi
je 0x1035b81
test byte [eax + 0x1c], 4
je 0x1035b81
cmp byte [eax + 0x19], 5
jb 0x1035b81
mov ebx, 0x1002380
push ebx
push 0x139
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
jmp 0x1035b86
mov ebx, 0x1002380
push edi
push edi
push 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1035bd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1035e6e
test byte [eax + 0x1c], 4
je 0x1035e6e
cmp byte [eax + 0x19], 2
jb 0x1035e6e
push dword [ebp - 4]
push ebx
push 0x13a
jmp 0x1035e0c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call edi
test eax, eax
jne 0x1035c22
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1035e6e
test byte [eax + 0x1c], 4
je 0x1035e6e
cmp byte [eax + 0x19], 2
jb 0x1035e6e
push dword [ebp - 4]
push ebx
push 0x13b
jmp 0x1035e0c
cmp dword [ebp - 0xc], 4
je 0x1035c66
push 0x26
pop ecx
mov dword [ebp - 4], ecx
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1035e90
test byte [eax + 0x1c], 4
je 0x1035e90
cmp byte [eax + 0x19], 2
jb 0x1035e90
push ecx
push ebx
push 0x13c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
jmp 0x1035e90
push dword [ebp - 8]
call fcn.0105c184
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1035cab
mov dword [ebp - 4], 8
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1035e74
test byte [eax + 0x1c], 4
je 0x1035e74
cmp byte [eax + 0x19], 2
jb 0x1035e74
push dword [ebp - 8]
push ebx
push 0x13d
jmp 0x1035e44
push 0
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 8]
push eax
push dword [ebp + 8]
call edi
test eax, eax
jne 0x1035cf6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1035e6e
test byte [eax + 0x1c], 4
je 0x1035e6e
cmp byte [eax + 0x19], 2
jb 0x1035e6e
push dword [ebp - 4]
push ebx
push 0x13e
jmp 0x1035e0c
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
je 0x1035d31
push 0x26
pop ecx
mov dword [ebp - 4], ecx
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1035e74
test byte [eax + 0x1c], 4
je 0x1035e74
cmp byte [eax + 0x19], 2
jb 0x1035e74
push ecx
push ebx
push 0x13f
jmp 0x1035e44
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x1035d79
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1035e6e
test byte [eax + 0x1c], 4
je 0x1035e6e
cmp byte [eax + 0x19], 2
jb 0x1035e6e
push dword [ebp - 4]
push ebx
push 0x140
jmp 0x1035e0c
sub eax, dword [ebp - 8]
sub eax, 8
mov ebx, eax
push ebx
call fcn.0105c184
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x1035dd0
mov dword [ebp - 4], 8
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1035e74
test byte [eax + 0x1c], 4
je 0x1035e74
cmp byte [eax + 0x19], 2
jb 0x1035e74
push 0x1002380
push 0x141
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
jmp 0x1035e74
push 0
lea ecx, [ebp - 0xc]
push ecx
push ebx
push eax
push dword [ebp + 8]
call edi
test eax, eax
jne 0x1035e19
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1035e6e
test byte [eax + 0x1c], 4
je 0x1035e6e
cmp byte [eax + 0x19], 2
jb 0x1035e6e
push dword [ebp - 4]
push 0x1002380
push 0x142
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
jmp 0x1035e6e
cmp ebx, dword [ebp - 0xc]
je 0x1035e51
push 0x26
pop ecx
mov dword [ebp - 4], ecx
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1035e74
test byte [eax + 0x1c], 4
je 0x1035e74
cmp byte [eax + 0x19], 2
jb 0x1035e74
push ecx
push 0x1002380
push 0x143
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
jmp 0x1035e74
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
mov dword [eax], ebx
cmp dword [ebp - 4], 0
je 0x1035e90
cmp dword [ebp - 0x10], 0
je 0x1035e82
push dword [ebp - 0x10]
call fcn.0105c21c
cmp dword [ebp - 0x14], 0
je 0x1035e90
push dword [ebp - 0x14]
call fcn.0105c21c
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x14