Function at 0x101358c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013a952
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb4
push esi
mov dword [ebp - 0x98], 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 0x10147af0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.MSVCR80.dll_fopen_s]
add esp, 0xc
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x1013594c
jmp 0x10135b67
push 2
push 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.MSVCR80.dll_fseek]
add esp, 0xc
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.MSVCR80.dll_ftell]
add esp, 4
cdq
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
push 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.MSVCR80.dll_fseek]
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x34]
sub edx, dword [ecx]
mov eax, dword [ebp - 0x30]
sbb eax, dword [ecx + 4]
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0x9c], eax
js 0x10135b5f
jg 0x101359b5
cmp dword [ebp - 0xa0], 0
jbe 0x10135b5f
cmp dword [ebp - 0x30], 0
jl 0x101359dc
jg 0x101359c6
cmp dword [ebp - 0x34], 0x19000
jbe 0x101359dc
mov dword [ebp - 0xa8], 0x19000
mov dword [ebp - 0xa4], 0
jmp 0x101359ee
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0xa8], ecx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0xa4], edx
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x10]
push ecx
push 1
mov edx, dword [ebp - 0x44]
push edx
push 0x101899a8
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x10
test eax, eax
jae 0x10135a18
jmp 0x10135b67
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 eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0xac]
ja 0x10135b45
jb 0x10135a56
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0xb0]
jae 0x10135b45
mov edx, dword [ebp - 0x24]
add edx, 0x101899a8
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
cmp dword [eax], 0
je 0x10135ab4
mov ecx, dword [ebp - 0x64]
mov eax, dword [ecx]
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 0x10135ab9
ja 0x10135ab4
mov eax, dword [ebp - 0xb8]
cmp eax, dword [ebp - 0xc0]
jbe 0x10135ab9
jmp 0x10135b45
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx]
sub edx, 4
push edx
mov eax, dword [ebp - 0x64]
add eax, 4
push 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
mov ecx, dword [ebp - 0x98]
add ecx, 4
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 4]
mov edx, dword [eax + 8]
call 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
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 eax, [ebp - 0x60]
push eax
mov esi, dword [ebp + 0xc]
call fcn.100610f0
mov ecx, dword [ebp - 0x64]
mov eax, dword [ecx]
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 0x10135a26
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
add eax, dword [ebp - 0x24]
mov ecx, dword [edx + 4]
adc ecx, dword [ebp - 0x20]
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov byte [ebp - 0x25], 1
xor eax, eax
jne 0x10135928
cmp dword [ebp - 0x10], 0
je 0x10135b7a
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.MSVCR80.dll_fclose]
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 0xc