Function at 0x10135b90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013a965
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4
push esi
mov dword [ebp - 0xa0], ecx
mov byte [ebp - 0x25], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x10], 0
push 0x19000
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x2c], eax
push 0x10147aec
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.MSVCR80.dll_fopen_s]
add esp, 0xc
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x10135c32
jmp 0x10135e76
push 2
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.MSVCR80.dll_fseek]
add esp, 0xc
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.MSVCR80.dll_ftell]
add esp, 4
cdq
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
push 0
push 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.MSVCR80.dll_fseek]
add esp, 0xc
cmp dword [ebp - 0x30], 0
jl 0x10135e6a
jg 0x10135c7e
cmp dword [ebp - 0x34], 0
jbe 0x10135e6a
cmp dword [ebp - 0x30], 0
jl 0x10135ca5
jg 0x10135c8f
cmp dword [ebp - 0x34], 0x19000
jbe 0x10135ca5
mov dword [ebp - 0xa8], 0x19000
mov dword [ebp - 0xa4], 0
jmp 0x10135cb7
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0xa4], ecx
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 0x44], edx
push 0
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.MSVCR80.dll_fseek]
add esp, 0xc
mov edx, dword [ebp - 0x10]
push edx
push 1
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x10
test eax, eax
jae 0x10135cf3
jmp 0x10135e6a
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x44]
cdq
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], edx
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0xac]
ja 0x10135e41
jb 0x10135d31
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0xb0]
jae 0x10135e41
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
cmp dword [edx], 0
jne 0x10135d56
mov eax, dword [ebp - 0x24]
add eax, 8
mov ecx, dword [ebp - 0x20]
adc ecx, 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
jmp 0x10135d01
mov edx, dword [ebp - 0x64]
mov eax, dword [edx]
cdq
mov ecx, eax
add ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
adc esi, edx
mov eax, dword [ebp - 0x44]
cdq
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], edx
mov edx, dword [ebp - 0xb4]
cmp edx, dword [ebp - 0xbc]
jb 0x10135db5
ja 0x10135da0
mov eax, dword [ebp - 0xb8]
cmp eax, dword [ebp - 0xc0]
jbe 0x10135db5
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x20], edx
mov byte [ebp - 0x25], 0
jmp 0x10135e41
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
sub ecx, 4
push ecx
mov edx, dword [ebp - 0x64]
add edx, 4
push edx
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
sub ecx, 4
push ecx
mov edx, dword [ebp - 0x64]
add edx, 4
push edx
mov ecx, dword [ebp - 0xa0]
add ecx, 4
mov eax, dword [ebp - 0xa0]
mov edx, dword [eax + 4]
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx]
sub edx, 4
push edx
mov eax, dword [ebp - 0x64]
add eax, 4
push eax
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___unsigned_int_]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x60]
push ecx
mov esi, dword [ebp + 0xc]
call fcn.100610f0
mov edx, dword [ebp - 0x64]
mov eax, dword [edx]
cdq
add eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
adc ecx, edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x10135d01
mov edx, dword [ebp - 0x34]
sub edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x30]
sbb eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x18]
adc edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
jmp 0x10135c68
mov byte [ebp - 0x25], 1
xor eax, eax
jne 0x10135c0e
cmp dword [ebp - 0x10], 0
je 0x10135e89
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x6c]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov al, byte [ebp - 0x25]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 8