Function at 0x102bad30
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
cmp dword [esp + 0x10], 0xb
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov dword [esp + 8], esi
jae 0x102bad4c
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, dword [esi]
push edi
push 0x1c
push eax
mov eax, dword [eax]
call eax
mov edi, eax
add esp, 8
test edi, edi
jne 0x102bad7a
push str.failed_to_allocate_segment_in_jbig2_parse_segment_header
push 0xffffffffffffffff
push 3
push esi
call fcn.10283d90
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0xc
ret
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 3]
shl ecx, 8
or ecx, eax
mov dword [edi], ecx
mov al, byte [ebx + 4]
mov byte [edi + 4], al
mov cl, byte [ebx + 5]
mov al, cl
and al, 0xe0
push ebp
cmp al, 0xe0
jne 0x102badea
movzx eax, byte [ebx + 7]
movzx ebp, cl
and eax, 0x1fffff
movzx ecx, byte [ebx + 6]
and ebp, 0x1f
shl ebp, 0x10
or ebp, eax
shl ecx, 0x10
movzx eax, byte [ebx + 8]
or ecx, eax
shl ebp, 8
and ecx, 0x1fffffff
or ebp, ecx
lea eax, [ebp + 1]
cdq
and edx, 7
lea esi, [edx + eax]
sar esi, 3
add esi, 9
jmp 0x102badf5
movzx ebp, cl
mov esi, 6
shr ebp, 5
mov eax, dword [edi]
mov dword [esp + 0x14], ebp
mov dword [edi + 0x10], ebp
cmp eax, 0x100
ja 0x102bae0c
mov ebp, 1
jmp 0x102bae1b
mov ecx, 0x10000
cmp ecx, eax
sbb ebp, ebp
and ebp, 2
add ebp, 2
mov ecx, dword [esp + 0x14]
mov edx, ebp
imul edx, ecx
mov eax, 1
test byte [edi + 4], 0x40
mov dword [esp + 0x18], 4
cmovne eax, dword [esp + 0x18]
add eax, 4
add eax, edx
add eax, esi
cmp eax, dword [esp + 0x20]
jbe 0x102bae72
mov ebx, dword [esp + 0x10]
push 0xffffffffffffffff
push str.jbig2_parse_segment_header___called_with_insufficient_data
push dword [edi]
push 0
push ebx
call fcn.10283d90
mov eax, dword [ebx]
push edi
push eax
mov eax, dword [eax + 4]
call eax
add esp, 0x1c
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
test ecx, ecx
je 0x102baf3d
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
cmp edx, 0x3fffffc0
jae 0x102baf21
lea eax, [edx*4]
push eax
mov eax, dword [ecx]
push ecx
call eax
mov ecx, eax
add esp, 8
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x102baf1d
xor ecx, ecx
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x14], ecx
jle 0x102baf14
cmp ebp, 1
jne 0x102baebd
movzx edx, byte [esi + ebx]
jmp 0x102baee4
cmp ebp, 2
jne 0x102baed6
movzx eax, byte [esi + ebx]
shl ax, 8
movzx edx, ax
movzx eax, byte [ebx + esi + 1]
or edx, eax
jmp 0x102baee4
lea ecx, [esi + ebx]
call fcn.10283f90
mov ecx, dword [esp + 0x20]
mov edx, eax
mov eax, dword [esp + 0x18]
add esi, ebp
push edx
mov dword [eax + ecx*4], edx
mov ecx, dword [edi]
push ecx
push str.segment__d_refers_to_segment__d
push ecx
push 0
push dword [esp + 0x24]
call fcn.10283d90
mov ecx, dword [esp + 0x38]
add esp, 0x18
inc ecx
mov dword [esp + 0x20], ecx
cmp ecx, dword [esp + 0x14]
jl 0x102baeb2
mov eax, dword [esp + 0x18]
mov dword [edi + 0x14], eax
jmp 0x102baf44
mov eax, dword [esp + 0x10]
push str.could_not_allocate_referred_to_segments_in_jbig2_parse_segment_header
push 0xffffffffffffffff
push 3
push eax
call fcn.10283d90
add esp, 0x10
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov dword [edi + 0x14], 0
test byte [edi + 4], 0x40
je 0x102baf74
movzx ecx, byte [esi + ebx]
movzx eax, byte [esi + ebx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + ebx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + ebx + 3]
shl ecx, 8
or ecx, eax
add esi, 4
mov dword [edi + 8], ecx
jmp 0x102baf7c
movzx eax, byte [esi + ebx]
inc esi
mov dword [edi + 8], eax
push dword [edi + 8]
mov eax, dword [edi]
push eax
push str.segment__d_is_associated_with_page__d
push eax
push 0
push dword [esp + 0x24]
call fcn.10283d90
movzx ecx, byte [esi + ebx]
add esp, 0x18
movzx eax, byte [esi + ebx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + ebx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + ebx + 3]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x18], 0
mov eax, dword [esp + 0x24]
mov dword [edi + 0xc], ecx
lea ecx, [esi + 4]
pop ebp
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0xc
ret