Function at 0x100205e0
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
cmp ebp, 1
mov eax, edi
sbb eax, 0
jl 0x1002064b
mov esi, ecx
mov ebx, dword [esp + 0x1c]
cmp dword [ecx + 0x38], 0
mov dword [esp], ecx
je 0x10020654
nop dword [eax + eax]
mov ecx, esi
push edi
push ebp
push ebx
call fcn.1000b4b0
cmp dword [0x1007d88c], 0xa
jl 0x1002092c
mov ecx, dword [0x1007d888]
lea esi, [ecx + 1]
imul esi, ecx
and esi, 1
je 0x1002092c
mov esi, dword [esp]
mov ecx, esi
push edi
push ebp
push ebx
call fcn.1000b4b0
jmp 0x10020610
xor eax, eax
xor edx, edx
jmp 0x1002092c
mov eax, dword [esi + 0x1c]
cmp dword [eax], 0
je 0x1002082a
mov eax, dword [esi + 0x2c]
mov eax, dword [eax]
mov dword [esp + 4], eax
test eax, eax
je 0x1002082a
nop word cs:[eax + eax]
mov eax, dword [esp + 4]
cmp eax, ebp
mov edi, ebp
cmovb edi, eax
mov eax, dword [esi + 0x1c]
mov esi, dword [eax]
cmp dword [0x1007d224], 0xa
jl 0x100206b0
mov eax, dword [0x1007d220]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
jne 0x100206d4
nop dword [eax]
push edi
push esi
push ebx
call fcn.1004b4a0
add esp, 0xc
cmp dword [0x1007d224], 0xa
jl 0x100206f0
mov eax, dword [0x1007d220]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
je 0x100206f0
push edi
push esi
push ebx
call fcn.1004b4a0
add esp, 0xc
jmp 0x100206b0
add ebx, edi
sub ebp, edi
cmp dword [0x1007d904], 0xa
mov esi, dword [esp]
jl 0x10020710
mov eax, dword [0x1007d900]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
jne 0x10020733
mov eax, dword [esi + 0x2c]
sub dword [eax], edi
mov eax, dword [esi + 0x1c]
add dword [eax], edi
cmp dword [0x1007d904], 0xa
jl 0x10020740
mov eax, dword [0x1007d900]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
je 0x10020740
mov eax, dword [esi + 0x2c]
sub dword [eax], edi
mov eax, dword [esi + 0x1c]
add dword [eax], edi
jmp 0x10020710
cmp dword [0x1007d88c], 0xa
jl 0x1002082a
mov eax, dword [0x1007d888]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
je 0x1002082a
mov eax, dword [esp + 4]
mov edi, eax
cmp eax, ebp
jb 0x1002076d
mov edi, ebp
mov eax, dword [esi + 0x1c]
mov esi, dword [eax]
cmp dword [0x1007d224], 0xa
jl 0x10020790
mov eax, dword [0x1007d220]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
jne 0x100207b4
nop dword [eax + eax]
push edi
push esi
push ebx
call fcn.1004b4a0
add esp, 0xc
cmp dword [0x1007d224], 0xa
jl 0x100207d0
mov eax, dword [0x1007d220]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
je 0x100207d0
push edi
push esi
push ebx
call fcn.1004b4a0
add esp, 0xc
jmp 0x10020790
add ebx, edi
sub ebp, edi
cmp dword [0x1007d904], 0xa
mov esi, dword [esp]
jl 0x100207f0
mov eax, dword [0x1007d900]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
jne 0x1002081e
mov eax, dword [esi + 0x2c]
sub dword [eax], edi
mov eax, dword [esi + 0x1c]
add dword [eax], edi
mov ecx, dword [0x1007d900]
lea eax, [ecx + 1]
imul eax, ecx
and eax, 1
cmp dword [0x1007d904], 0xa
jl 0x10020680
test eax, eax
je 0x10020680
mov eax, dword [esi + 0x2c]
sub dword [eax], edi
mov eax, dword [esi + 0x1c]
add dword [eax], edi
jmp 0x100207f0
cmp dword [esi + 0x4c], 0
je 0x1002091f
mov ecx, esi
call fcn.1001f640
jmp 0x1002084b
cmp eax, 0xfff
jne 0x1002091f
cmp ebp, 0x1000
jb 0x100208cf
push dword [esi + 0x4c]
push 0xfff
push 1
push ebx
call fcn.10052f48
add esp, 0x10
add ebx, eax
sub ebp, eax
cmp dword [0x1007d88c], 0xa
jl 0x10020840
nop word cs:[eax + eax]
mov ecx, dword [0x1007d888]
lea edx, [ecx + 1]
imul edx, ecx
and edx, 1
je 0x10020840
push dword [esi + 0x4c]
push 0xfff
push 1
push ebx
call fcn.10052f48
add esp, 0x10
mov edi, eax
add ebx, eax
push dword [esi + 0x4c]
push 0xfff
push 1
push ebx
call fcn.10052f48
add esp, 0x10
add ebx, eax
add edi, eax
sub ebp, edi
cmp dword [0x1007d88c], 0xa
jge 0x10020880
jmp 0x10020840
test ebp, ebp
je 0x1002091d
nop word cs:[eax + eax]
push dword [esi + 0x4c]
push ebp
push 1
push ebx
call fcn.10052f48
add esp, 0x10
sub ebp, eax
cmp dword [0x1007d88c], 0xa
jl 0x1002091f
mov eax, dword [0x1007d888]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
je 0x1002091f
push dword [esi + 0x4c]
push ebp
push 1
push ebx
call fcn.10052f48
add esp, 0x10
sub ebp, eax
jmp 0x100208e0
xor ebp, ebp
mov eax, dword [esp + 0x20]
sub eax, ebp
mov edx, dword [esp + 0x24]
sbb edx, 0
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 0xc