Function at 0x10023d50
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov ebp, dword [esp + 0x20]
cmp dword [esp + 0x1c], 1
mov eax, ebp
sbb eax, 0
jl 0x10023dbc
mov esi, ecx
mov ebx, dword [esp + 0x18]
cmp dword [ecx + 0x38], 0
je 0x10023dc5
mov ecx, esi
push ebp
push dword [esp + 0x20]
nop dword [eax + eax]
push ebx
call fcn.1000c4f0
cmp dword [0x10082c64], 0xa
jl 0x100240b5
mov ecx, dword [0x10082c60]
lea edi, [ecx + 1]
imul edi, ecx
and edi, 1
je 0x100240b5
mov ecx, esi
push ebp
mov edi, dword [esp + 0x20]
push edi
push ebx
call fcn.1000c4f0
mov ecx, esi
push ebp
push edi
jmp 0x10023d80
xor eax, eax
xor edx, edx
jmp 0x100240b5
mov eax, dword [esi + 0x1c]
mov eax, dword [eax]
test eax, eax
je 0x10023ec7
mov ecx, dword [esi + 0x2c]
mov ecx, dword [ecx]
mov dword [esp], ecx
test ecx, ecx
je 0x10023ec7
mov ecx, dword [esp + 0x1c]
jmp 0x10023dfb
add ebx, ebp
mov ecx, edi
sub ecx, ebp
mov eax, dword [esi + 0x1c]
mov eax, dword [eax]
mov edx, dword [esp]
cmp edx, ecx
mov edi, ecx
mov ebp, ecx
cmovb ebp, edx
push ebp
push eax
push ebx
call fcn.1004f970
add esp, 0xc
nop word cs:[eax + eax]
mov eax, dword [esi + 0x2c]
sub dword [eax], ebp
mov eax, dword [esi + 0x1c]
add dword [eax], ebp
cmp dword [0x10082cbc], 0xa
jl 0x10023e50
mov eax, dword [0x10082cb8]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
je 0x10023e50
mov eax, dword [esi + 0x2c]
sub dword [eax], ebp
mov eax, dword [esi + 0x1c]
add dword [eax], ebp
jmp 0x10023e20
add ebx, ebp
mov edx, edi
sub edx, ebp
cmp dword [0x10082c64], 0xa
jl 0x10023ed6
mov eax, dword [0x10082c60]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
je 0x10023ed6
mov eax, dword [esp]
cmp eax, edx
mov edi, edx
mov ebp, edx
cmovb ebp, eax
mov eax, dword [esi + 0x1c]
push ebp
push dword [eax]
push ebx
call fcn.1004f970
add esp, 0xc
nop word [eax + eax]
mov eax, dword [esi + 0x2c]
sub dword [eax], ebp
mov eax, dword [esi + 0x1c]
add dword [eax], ebp
cmp dword [0x10082cbc], 0xa
jl 0x10023df0
mov eax, dword [0x10082cb8]
lea ecx, [eax + 1]
imul ecx, eax
and ecx, 1
je 0x10023df0
mov eax, dword [esi + 0x2c]
sub dword [eax], ebp
mov eax, dword [esi + 0x1c]
add dword [eax], ebp
jmp 0x10023e90
mov edx, dword [esp + 0x1c]
cmp dword [esi + 0x4c], 0
jne 0x10023ee4
jmp 0x100240aa
mov ebp, dword [esp + 0x20]
cmp dword [esi + 0x4c], 0
je 0x100240aa
mov dword [esp], edx
lea eax, [esi + 0x3c]
nop word [eax + eax]
mov ecx, dword [esi + 0xc]
cmp dword [ecx], eax
jne 0x10023f50
jmp 0x10023f1a
mov ecx, dword [esi + 0x54]
mov edx, dword [esi + 0xc]
mov edi, dword [esi + 0x50]
mov dword [edx], edi
mov edx, dword [esi + 0x1c]
mov dword [edx], edi
sub ecx, edi
mov edx, dword [esi + 0x2c]
mov dword [edx], ecx
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x50]
mov edi, dword [esi + 0x54]
mov dword [ecx], edx
mov ecx, dword [esi + 0x1c]
mov dword [ecx], edx
sub edi, edx
mov ecx, dword [esi + 0x2c]
mov dword [ecx], edi
cmp dword [0x10081db4], 0xa
jl 0x10023f50
mov ecx, dword [0x10081db8]
lea edx, [ecx + 1]
imul edx, ecx
and edx, 1
jne 0x10023f00
nop dword [eax + eax]
cmp dword [0x10082c64], 0xa
jl 0x10023fd3
mov ecx, dword [0x10082c60]
lea edx, [ecx + 1]
imul edx, ecx
and edx, 1
je 0x10023fd3
mov ecx, dword [esi + 0xc]
cmp dword [ecx], eax
jne 0x10023ef0
jmp 0x10023f9a
mov ecx, dword [esi + 0x54]
mov edx, dword [esi + 0xc]
mov edi, dword [esi + 0x50]
mov dword [edx], edi
mov edx, dword [esi + 0x1c]
mov dword [edx], edi
sub ecx, edi
mov edx, dword [esi + 0x2c]
mov dword [edx], ecx
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x50]
mov edi, dword [esi + 0x54]
mov dword [ecx], edx
mov ecx, dword [esi + 0x1c]
mov dword [ecx], edx
sub edi, edx
mov ecx, dword [esi + 0x2c]
mov dword [ecx], edi
mov edx, dword [0x10081db8]
lea ecx, [edx + 1]
imul ecx, edx
and ecx, 1
cmp dword [0x10081db4], 0xa
jl 0x10023ef0
test ecx, ecx
jne 0x10023f80
jmp 0x10023ef0
mov edx, dword [esp]
jmp 0x10023ff1
cmp eax, 0xfff
mov edx, ebp
mov ebp, dword [esp + 0x20]
jne 0x100240aa
cmp edx, 0x1000
jb 0x1002408d
push dword [esi + 0x4c]
push 0xfff
push 1
push ebx
mov ebp, edx
call fcn.10057418
add esp, 0x10
add ebx, eax
sub ebp, eax
cmp dword [0x10082c64], 0xa
jl 0x10023fe0
mov ecx, dword [0x10082c60]
lea edx, [ecx + 1]
imul edx, ecx
and edx, 1
je 0x10023fe0
push dword [esi + 0x4c]
push 0xfff
push 1
push ebx
call fcn.10057418
add esp, 0x10
mov edi, eax
add ebx, eax
push dword [esi + 0x4c]
push 0xfff
push 1
push ebx
call fcn.10057418
add esp, 0x10
add ebx, eax
add edi, eax
sub ebp, edi
cmp dword [0x10082c64], 0xa
jl 0x1002407a
mov ecx, dword [0x10082c60]
lea edx, [ecx + 1]
imul edx, ecx
and edx, 1
jne 0x10024030
mov edx, ebp
mov ebp, dword [esp + 0x20]
cmp eax, 0xfff
je 0x10023ff1
jmp 0x100240aa
test edx, edx
je 0x100240a8
push dword [esi + 0x4c]
push edx
push 1
push ebx
mov esi, edx
call fcn.10057418
mov edx, esi
add esp, 0x10
sub edx, eax
jmp 0x100240aa
xor edx, edx
mov eax, dword [esp + 0x1c]
sub eax, edx
sbb ebp, 0
mov edx, ebp
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 0xc