Function at 0x1000c7a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x11a]
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0xc], 0
je 0x1000c7fe
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 0x11e]
sub ecx, dword [eax + 0x122]
cmp dword [ebp - 0xc], ecx
jb 0x1000c7fe
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 0x11e]
sub ecx, dword [eax + 0x122]
mov edx, dword [ebp - 0xc]
sub edx, ecx
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x13a]
mov dword [ebp + 0xc], ecx
jmp 0x1000c7b9
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0xc], 0
je 0x1000c9d3
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp + 0x10]
jae 0x1000c9d3
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x122]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x11e]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp - 0x10]
cmp dword [ebp - 0x14], ecx
jbe 0x1000c854
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
cmp ecx, 1
jne 0x1000c8a9
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x112]
add ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1000be60
add esp, 0xc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x14]
je 0x1000c8a4
cmp dword [ebp - 0x1c], 0
je 0x1000c899
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.10009d90
add esp, 4
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x10]
jmp 0x1000c9e8
jmp 0x1000c9b9
cmp dword [ebp - 0x1c], 0
jne 0x1000c903
lea edx, [ebp - 0x1c]
push edx
call fcn.10009b30
add esp, 4
mov word [ebp - 4], ax
movzx eax, word [ebp - 4]
test eax, eax
je 0x1000c8cf
mov eax, dword [ebp - 0x10]
jmp 0x1000c9e8
mov dword [ebp - 8], 0x7d00
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.10009ed0
add esp, 8
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x1000c903
mov eax, dword [ebp - 0x1c]
push eax
call fcn.10009d90
add esp, 4
mov eax, dword [ebp - 0x10]
jmp 0x1000c9e8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x11e]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0x10]
cmp dword [ebp - 0x14], eax
jbe 0x1000c926
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
push 0
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 2]
push ecx
call fcn.10033a60
add esp, 0xc
cmp dword [ebp - 0x14], 0
jbe 0x1000c9b9
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 8]
jae 0x1000c951
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
jmp 0x1000c957
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 2]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push 1
mov eax, dword [ebp - 0x24]
push eax
call fcn.10032e00
add esp, 0x10
cmp eax, dword [ebp - 0x20]
jne 0x1000c994
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.1000be60
add esp, 0xc
cmp eax, dword [ebp - 0x20]
je 0x1000c9a5
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.10009d90
add esp, 4
mov eax, dword [ebp - 0x10]
jmp 0x1000c9e8
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x20]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
jmp 0x1000c93b
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x20]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x13a]
mov dword [ebp + 0xc], eax
jmp 0x1000c805
cmp dword [ebp - 0x1c], 0
je 0x1000c9e5
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.10009d90
add esp, 4
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret