Function at 0x10088470
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
lea eax, [esp]
push ebx
push esi
push edi
mov esi, ecx
push esi
push 1
push 4
push eax
call fcn.100f6e6a
add esp, 0x10
cmp eax, 1
jne 0x100886dc
mov edi, dword [esp + 0xc]
test edi, edi
je 0x100884df
mov ecx, dword [0x101540fc]
lea ebx, [edi + 0xa]
sub ecx, dword [0x101540f4]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebx
jae 0x100884df
cmp ebx, 0xaaaaaaa
ja 0x100886e5
push ebx
mov ecx, 0x101540f4
call fcn.100889d0
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
je 0x100885aa
nop dword [eax]
push esi
push 1
lea eax, [esp + 0x28]
mov dword [esp + 0x3c], 0
push 0x14
push eax
call fcn.100f6e6a
add esp, 0x10
cmp eax, 1
jne 0x100885fa
lea eax, [esp + 0x20]
mov ecx, 0x101540f4
push eax
call fcn.10088790
mov eax, dword [0x101540b4]
mov edi, dword [eax]
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
push dword [edi + 4]
push edi
call fcn.10088fb0
mov ecx, dword [0x101540b8]
mov edx, eax
mov eax, 0xaaaaaa9
sub eax, ecx
cmp eax, 1
jb 0x100886f9
inc ecx
mov dword [0x101540b8], ecx
mov ecx, 0x101540b0
mov dword [edi + 4], edx
mov eax, dword [edx + 4]
mov dword [eax], edx
mov eax, dword [0x101540b4]
mov eax, dword [eax]
push eax
add eax, 8
push eax
lea eax, [esp + 0x18]
push eax
call fcn.10088c90
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x2c]
push dword [esp + 0x34]
push str._nLOADSAVE:_Critter_PID_ID:__d__d_saved_base_stat:__d__value:__d__def:__d
call fcn.100124e0
inc ebx
add esp, 0x18
cmp ebx, dword [esp + 0xc]
jb 0x100884f0
push esi
push 1
lea eax, [esp + 0x14]
push 4
push eax
call fcn.100f6e6a
add esp, 0x10
cmp eax, 1
jne 0x100885fa
mov edi, dword [esp + 0xc]
test edi, edi
je 0x10088612
mov ecx, dword [0x101540f0]
lea ebx, [edi + 0xa]
sub ecx, dword [0x101540e8]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebx
jae 0x10088612
cmp ebx, 0xaaaaaaa
jbe 0x10088603
jmp 0x100886ef
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
mov ecx, 0x101540e8
call fcn.100889d0
mov edi, dword [esp + 0xc]
mov dword [esp + 0x10], 0
test edi, edi
je 0x100886dc
push esi
push 1
lea eax, [esp + 0x28]
mov dword [esp + 0x3c], 0
push 0x14
push eax
call fcn.100f6e6a
add esp, 0x10
cmp eax, 1
jne 0x100885fa
lea eax, [esp + 0x20]
mov ecx, 0x101540e8
push eax
call fcn.10088790
mov eax, dword [0x101540b4]
mov edi, dword [eax]
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
push dword [edi + 4]
push edi
call fcn.10088fb0
mov edx, dword [0x101540b8]
mov ecx, 0xaaaaaa9
sub ecx, edx
mov ebx, eax
cmp ecx, 1
jb 0x100886f9
inc edx
mov ecx, 0x101540b0
mov dword [0x101540b8], edx
mov dword [edi + 4], ebx
mov eax, dword [ebx + 4]
mov dword [eax], ebx
mov eax, dword [0x101540b4]
mov eax, dword [eax]
push eax
add eax, 8
push eax
lea eax, [esp + 0x20]
push eax
call fcn.10088c90
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x2c]
push dword [esp + 0x34]
push str._nLOADSAVE:_Critter_PID_ID:__d__d_saved_bonus_stat:__d__value:__d__def:__d
call fcn.100124e0
mov ebx, dword [esp + 0x28]
add esp, 0x18
inc ebx
mov dword [esp + 0x10], ebx
cmp ebx, dword [esp + 0xc]
jb 0x10088622
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push str.vector_T__too_long
call fcn.100e89e5
push str.vector_T__too_long
call fcn.100e89e5
push str.list_T__too_long
call fcn.100e89e5
int3