Function at 0x1000b880
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x11a]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp + 0x10]
jae 0x1000bd1a
cmp dword [ebp + 8], 0
je 0x1000bd1a
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 2
jne 0x1000b9be
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x11e]
sub eax, dword [edx + 0x122]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x28]
jb 0x1000b8fe
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x13a]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x28]
mov dword [ebp - 0x10], ecx
jmp 0x1000b8a5
push 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 0x122]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 2]
push edx
call fcn.10033a60
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp + 0x10]
jae 0x1000b9b2
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp - 0x18]
cmp edx, 0x7d00
jae 0x1000b947
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
jmp 0x1000b94e
mov dword [ebp - 0x30], 0x7d00
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x28]
jbe 0x1000b968
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 2]
push edx
mov eax, dword [ebp - 0x24]
push eax
push 1
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10032e00
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x24]
je 0x1000b9a3
jmp 0x1000b9b2
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x28]
jne 0x1000b9ad
jmp 0x1000b9b2
jmp 0x1000b922
mov dword [ebp - 0x10], 0
jmp 0x1000bd09
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 1
jne 0x1000bb28
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x11e]
cmp ecx, dword [eax + 0x116]
jbe 0x1000ba11
push 0x2c7
push str..datablk.C
push str.DATABLK:_endOffset___bufSize
push 2
push 0x40003
call fcn.10002bc0
add esp, 0x14
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x116]
mov dword [edx + 0x11e], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 0x122]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x11e]
jb 0x1000ba53
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x11e]
sub ecx, dword [eax + 0x122]
mov edx, dword [ebp - 0x10]
sub edx, ecx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x13a]
mov dword [ebp + 8], ecx
jmp 0x1000b8a5
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov ecx, dword [ecx + 0x11e]
sub ecx, dword [edx + 0x122]
cmp eax, ecx
jbe 0x1000ba93
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x11e]
sub ecx, dword [eax + 0x122]
sub ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x11a], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x14]
jae 0x1000bb1c
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x18]
cmp edx, 0x7d00
jae 0x1000bac0
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
jmp 0x1000bac7
mov dword [ebp - 0x34], 0x7d00
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x112]
mov edx, dword [ebp + 8]
add ecx, dword [edx + 0x122]
mov eax, dword [ebp + 8]
add ecx, dword [eax + 0x11a]
push ecx
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10031ea0
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x11a]
add eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x11a], eax
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x24]
mov dword [ebp - 0x18], edx
jmp 0x1000ba9f
mov dword [ebp - 0x10], 0
jmp 0x1000bd09
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 3
jne 0x1000bd04
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x126]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x1000bbce
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
add edx, dword [ecx + 0x122]
mov eax, dword [ebp - 0x2c]
cmp edx, dword [eax + 8]
jb 0x1000bbc0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
add edx, dword [ecx + 0x122]
add edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x2c]
add ecx, dword [eax + 0xc]
cmp edx, ecx
ja 0x1000bbc0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x10]
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 0x122]
mov edx, dword [ebp - 0x2c]
sub eax, dword [edx + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.10031ea0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x11a], ecx
mov eax, dword [ebp + 0x10]
jmp 0x1000bd2c
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x2c], ecx
jmp 0x1000bb43
mov edx, dword [ebp + 8]
cmp dword [edx + 0x11e], 0
jne 0x1000bbf6
mov eax, dword [ebp + 8]
push eax
call fcn.1000ae30
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000bbf6
xor eax, eax
jmp 0x1000bd2c
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x11e]
sub eax, dword [edx + 0x122]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x28]
jb 0x1000bc2d
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x13a]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x28]
mov dword [ebp - 0x10], ecx
jmp 0x1000b8a5
mov edx, dword [ebp + 8]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x38]
mov edx, dword [eax + 2]
or edx, dword [ecx + 6]
jne 0x1000bc48
xor eax, eax
jmp 0x1000bd2c
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0x122]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 2]
push eax
call fcn.10033a60
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp + 0x10]
jae 0x1000bcfb
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0x18]
cmp eax, 0x7d00
jae 0x1000bc90
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp - 0x18]
mov dword [ebp - 0x3c], ecx
jmp 0x1000bc97
mov dword [ebp - 0x3c], 0x7d00
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x28]
jbe 0x1000bcb1
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 8]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 2]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
push 1
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x18]
push edx
call fcn.10032e00
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x24]
je 0x1000bcec
jmp 0x1000bcfb
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x28]
jne 0x1000bcf6
jmp 0x1000bcfb
jmp 0x1000bc6c
mov dword [ebp - 0x10], 0
jmp 0x1000bd09
mov eax, dword [ebp - 0x18]
jmp 0x1000bd2c
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x13a]
mov dword [ebp + 8], edx
jmp 0x1000b8a5
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x11a], eax
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret