Function at 0x1035f40
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 0x1035f8e
test byte [eax + 0x1c], 4
je 0x1035f8e
cmp byte [eax + 0x19], 5
jb 0x1035f8e
mov ebx, 0x1002380
push ebx
push 0x139
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
jmp 0x1035f93
mov ebx, 0x1002380
push edi
push edi
push 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1035fdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x103627b
test byte [eax + 0x1c], 4
je 0x103627b
cmp byte [eax + 0x19], 2
jb 0x103627b
push dword [ebp - 4]
push ebx
push 0x13a
jmp 0x1036219
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 0x103602f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x103627b
test byte [eax + 0x1c], 4
je 0x103627b
cmp byte [eax + 0x19], 2
jb 0x103627b
push dword [ebp - 4]
push ebx
push 0x13b
jmp 0x1036219
cmp dword [ebp - 0xc], 4
je 0x1036073
push 0x26
pop ecx
mov dword [ebp - 4], ecx
mov eax, dword [0x1075004]
cmp eax, esi
je 0x103629d
test byte [eax + 0x1c], 4
je 0x103629d
cmp byte [eax + 0x19], 2
jb 0x103629d
push ecx
push ebx
push 0x13c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
jmp 0x103629d
push dword [ebp - 8]
call fcn.0105c544
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x10360b8
mov dword [ebp - 4], 8
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1036281
test byte [eax + 0x1c], 4
je 0x1036281
cmp byte [eax + 0x19], 2
jb 0x1036281
push dword [ebp - 8]
push ebx
push 0x13d
jmp 0x1036251
push 0
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 8]
push eax
push dword [ebp + 8]
call edi
test eax, eax
jne 0x1036103
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x103627b
test byte [eax + 0x1c], 4
je 0x103627b
cmp byte [eax + 0x19], 2
jb 0x103627b
push dword [ebp - 4]
push ebx
push 0x13e
jmp 0x1036219
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
je 0x103613e
push 0x26
pop ecx
mov dword [ebp - 4], ecx
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1036281
test byte [eax + 0x1c], 4
je 0x1036281
cmp byte [eax + 0x19], 2
jb 0x1036281
push ecx
push ebx
push 0x13f
jmp 0x1036251
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x1036186
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x103627b
test byte [eax + 0x1c], 4
je 0x103627b
cmp byte [eax + 0x19], 2
jb 0x103627b
push dword [ebp - 4]
push ebx
push 0x140
jmp 0x1036219
sub eax, dword [ebp - 8]
sub eax, 8
mov ebx, eax
push ebx
call fcn.0105c544
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x10361dd
mov dword [ebp - 4], 8
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1036281
test byte [eax + 0x1c], 4
je 0x1036281
cmp byte [eax + 0x19], 2
jb 0x1036281
push 0x1002380
push 0x141
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
jmp 0x1036281
push 0
lea ecx, [ebp - 0xc]
push ecx
push ebx
push eax
push dword [ebp + 8]
call edi
test eax, eax
jne 0x1036226
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x103627b
test byte [eax + 0x1c], 4
je 0x103627b
cmp byte [eax + 0x19], 2
jb 0x103627b
push dword [ebp - 4]
push 0x1002380
push 0x142
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
jmp 0x103627b
cmp ebx, dword [ebp - 0xc]
je 0x103625e
push 0x26
pop ecx
mov dword [ebp - 4], ecx
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1036281
test byte [eax + 0x1c], 4
je 0x1036281
cmp byte [eax + 0x19], 2
jb 0x1036281
push ecx
push 0x1002380
push 0x143
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
jmp 0x1036281
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 0x103629d
cmp dword [ebp - 0x10], 0
je 0x103628f
push dword [ebp - 0x10]
call fcn.0105c5dc
cmp dword [ebp - 0x14], 0
je 0x103629d
push dword [ebp - 0x14]
call fcn.0105c5dc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x14