Function at 0x11020a60
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x34
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 4]
push ebp
push esi
push edi
push 0
push eax
push 4
lea eax, [esp + 0x20]
mov edi, ecx
push eax
push edi
call ebx
cmp dword [esp + 0x10], 4
jne 0x11020d64
mov esi, dword [esp + 0x14]
test esi, esi
je 0x11020ad2
mov ecx, dword [0x110e4584]
lea ebp, [esi + 0xa]
sub ecx, dword [0x110e457c]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebp
jae 0x11020ad2
cmp ebp, 0xaaaaaaa
ja 0x11020d6e
push ebp
mov ecx, 0x110e457c
call fcn.11020fd0
mov esi, dword [esp + 0x14]
xor ebp, ebp
test esi, esi
je 0x11020be7
lea esp, [esp]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x40], 0
push eax
push 0x14
lea eax, [esp + 0x34]
push eax
push edi
call ebx
cmp dword [esp + 0x10], 0x14
jne 0x11020c38
mov ecx, dword [0x110e4580]
cmp ecx, dword [0x110e4584]
jne 0x11020b23
push ecx
mov ecx, 0x110e457c
call fcn.11021280
mov ecx, dword [0x110e4580]
test ecx, ecx
je 0x11020b56
mov eax, dword [esp + 0x28]
mov dword [ecx], eax
mov eax, dword [esp + 0x2c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x30]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 0x14], eax
mov ecx, dword [0x110e4580]
mov eax, dword [0x110e453c]
add ecx, 0x18
mov dword [0x110e4580], ecx
mov esi, dword [eax]
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x2c]
push eax
push dword [esi + 4]
push esi
call fcn.11021630
mov ecx, dword [0x110e4540]
mov edx, eax
mov eax, 0xaaaaaa9
sub eax, ecx
cmp eax, 1
jb 0x11020d82
inc ecx
mov dword [0x110e4540], ecx
mov ecx, 0x110e4538
mov dword [esi + 4], edx
mov eax, dword [edx + 4]
mov dword [eax], edx
mov eax, dword [0x110e453c]
mov eax, dword [eax]
push eax
add eax, 8
push eax
lea eax, [esp + 0x20]
push eax
call fcn.11021310
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [esp + 0x34]
push dword [esp + 0x3c]
push str.LOADSAVE:_Critter_PID_ID:__d__d__saved_base_stat:__d__value:__d__def:__d_n
call fcn.11014530
inc ebp
add esp, 0x18
cmp ebp, dword [esp + 0x14]
jb 0x11020ae0
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea eax, [esp + 0x20]
push eax
push edi
call ebx
cmp dword [esp + 0x10], 4
jne 0x11020c38
mov esi, dword [esp + 0x14]
test esi, esi
je 0x11020c51
mov ecx, dword [0x110e4578]
lea ebp, [esi + 0xa]
sub ecx, dword [0x110e4570]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebp
jae 0x11020c51
cmp ebp, 0xaaaaaaa
jbe 0x11020c42
jmp 0x11020d78
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
push ebp
mov ecx, 0x110e4570
call fcn.11020fd0
mov esi, dword [esp + 0x14]
mov dword [esp + 0x18], 0
test esi, esi
je 0x11020d64
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x40], 0
push eax
push 0x14
lea eax, [esp + 0x34]
push eax
push edi
call ebx
cmp dword [esp + 0x10], 0x14
jne 0x11020c38
mov eax, dword [0x110e4574]
cmp eax, dword [0x110e4578]
jne 0x11020c9e
push ecx
mov ecx, 0x110e4570
call fcn.11021280
mov eax, dword [0x110e4574]
test eax, eax
je 0x11020cd0
mov ecx, dword [esp + 0x28]
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0x14], ecx
mov eax, dword [0x110e4574]
add eax, 0x18
mov dword [0x110e4574], eax
mov eax, dword [0x110e453c]
mov esi, dword [eax]
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x2c]
push eax
push dword [esi + 4]
push esi
call fcn.11021630
mov edx, dword [0x110e4540]
mov ecx, 0xaaaaaa9
sub ecx, edx
mov ebp, eax
cmp ecx, 1
jb 0x11020d82
inc edx
mov ecx, 0x110e4538
mov dword [0x110e4540], edx
mov dword [esi + 4], ebp
mov eax, dword [ebp + 4]
mov dword [eax], ebp
mov eax, dword [0x110e453c]
mov eax, dword [eax]
push eax
add eax, 8
push eax
lea eax, [esp + 0x28]
push eax
call fcn.11021310
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [esp + 0x34]
push dword [esp + 0x3c]
push str.LOADSAVE:_Critter_PID_ID:__d__d__saved_bonus_stat:__d__value:__d__def:__d_n
call fcn.11014530
mov ebp, dword [esp + 0x30]
add esp, 0x18
inc ebp
mov dword [esp + 0x18], ebp
cmp ebp, dword [esp + 0x14]
jb 0x11020c61
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x34
ret
push str.vector_T__too_long
call fcn.1107d07e
push str.vector_T__too_long
call fcn.1107d07e
push str.list_T__too_long
call fcn.1107d07e
int3