Function at 0x100a0220
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x18]
inc dword [esi + 0x14]
mov eax, dword [esi + 0x14]
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
cmp eax, dword [esi + 0xc]
jle 0x100a025f
mov eax, dword [esi + 8]
imul eax, dword [esi]
push eax
push 0
push dword [esi + 0x28]
call fcn.1011e7c0
add esp, 0xc
mov eax, 1
pop esi
add esp, 0xc
ret
mov eax, dword [esi + 4]
push ebx
push edi
mov edi, dword [esp + 0x1c]
push edi
cdq
push edx
push eax
push 0
push 1
push dword [esi + 0x2c]
call fcn.1006c070
mov ebx, eax
add esp, 0x18
mov eax, dword [esi + 4]
cmp ebx, eax
je 0x100a02a4
push eax
push ebx
push str._Warning_:_short_read___d____d_._n
push edi
call fcn.1006ac00
add esp, 0x10
test ebx, ebx
jg 0x100a02a4
pop edi
pop ebx
mov eax, 1
pop esi
add esp, 0xc
ret
cmp dword [esi], 1
mov edx, dword [esi + 0x2c]
mov al, byte [edx]
jne 0x100a0339
cmp al, 7
jb 0x100a02de
cmp dword [esi + 0x18], 0
jne 0x100a02da
push 7
movzx eax, al
push eax
push str.MS_ADPCM_synchronisation_error___u_should_be____u_._n
push edi
mov dword [esi + 0x18], 1
call fcn.1006ac00
mov edx, dword [esi + 0x2c]
add esp, 0x10
xor eax, eax
jmp 0x100a02e1
movzx eax, al
movzx ecx, byte [edx + 2]
mov edi, 7
mov word [esp + 0xc], ax
movzx eax, byte [edx + 1]
shl cx, 8
or cx, ax
xor eax, eax
mov word [esp + 0x20], cx
movzx ecx, byte [edx + 4]
mov word [esp + 0x22], ax
movzx eax, byte [edx + 3]
shl cx, 8
or cx, ax
mov eax, dword [esi + 0x28]
mov word [eax + 2], cx
mov eax, dword [esi + 0x2c]
movzx ecx, byte [eax + 6]
movzx eax, byte [eax + 5]
shl cx, 8
or cx, ax
mov eax, dword [esi + 0x28]
mov word [eax], cx
jmp 0x100a0431
cmp al, 7
jb 0x100a0365
cmp dword [esi + 0x18], 0
jne 0x100a0361
push 7
movzx eax, al
push eax
push str.MS_ADPCM_synchronisation_error___u_should_be____u_._n
push edi
mov dword [esi + 0x18], 1
call fcn.1006ac00
mov edx, dword [esi + 0x2c]
add esp, 0x10
xor eax, eax
jmp 0x100a0368
movzx eax, al
mov word [esp + 0xc], ax
mov al, byte [edx + 1]
cmp al, 7
jb 0x100a039c
cmp dword [esi + 0x18], 0
jne 0x100a0398
push 7
movzx eax, al
push eax
push str.MS_ADPCM_synchronisation_error___u_should_be____u_._n
push edi
mov dword [esi + 0x18], 1
call fcn.1006ac00
mov edx, dword [esi + 0x2c]
add esp, 0x10
xor eax, eax
jmp 0x100a039f
movzx eax, al
movzx ecx, byte [edx + 3]
mov edi, 0xe
shl cx, 8
mov word [esp + 0xe], ax
movzx eax, byte [edx + 2]
or cx, ax
movzx eax, byte [edx + 4]
mov word [esp + 0x20], cx
movzx ecx, byte [edx + 5]
shl cx, 8
or cx, ax
movzx eax, byte [edx + 6]
mov word [esp + 0x22], cx
movzx ecx, byte [edx + 7]
shl cx, 8
or cx, ax
mov eax, dword [esi + 0x28]
mov word [eax + 4], cx
mov eax, dword [esi + 0x2c]
movzx ecx, byte [eax + 9]
movzx eax, byte [eax + 8]
shl cx, 8
or cx, ax
mov eax, dword [esi + 0x28]
mov word [eax + 6], cx
mov eax, dword [esi + 0x2c]
movzx ecx, byte [eax + 0xb]
movzx eax, byte [eax + 0xa]
shl cx, 8
or cx, ax
mov eax, dword [esi + 0x28]
mov word [eax], cx
mov eax, dword [esi + 0x2c]
movzx ecx, byte [eax + 0xd]
movzx eax, byte [eax + 0xc]
shl cx, 8
or cx, ax
mov eax, dword [esi + 0x28]
mov word [eax + 2], cx
mov ebx, dword [esi]
add ebx, ebx
cmp edi, dword [esi + 4]
jge 0x100a046a
nop word [eax + eax]
mov eax, dword [esi + 0x2c]
lea ebx, [ebx + 2]
movzx edx, byte [eax + edi]
inc edi
mov eax, dword [esi + 0x28]
mov cx, dx
shr cx, 4
and edx, 0xf
mov word [eax + ebx*2 - 4], cx
mov eax, dword [esi + 0x28]
mov word [eax + ebx*2 - 2], dx
cmp edi, dword [esi + 4]
jl 0x100a0440
mov eax, dword [esi + 8]
push ebp
mov ebp, dword [esi]
imul eax, ebp
lea edi, [ebp*2]
cmp edi, eax
jge 0x100a0552
mov eax, dword [esi + 0x28]
mov ecx, edi
mov ax, word [eax + edi*2]
and ax, 0xf
movzx ebx, ax
and ecx, 0x80000001
jns 0x100a049f
dec ecx
or ecx, 0xfffffffe
inc ecx
xor eax, eax
cmp ebp, 1
cmovle ecx, eax
mov eax, dword [ebx*4 + 0x102ef970]
movsx edx, word [esp + ecx*2 + 0x24]
imul eax, edx
mov dword [esp + 0x18], edx
sar eax, 8
movzx eax, ax
mov word [esp + ecx*2 + 0x24], ax
cmp ax, 0x10
jge 0x100a04d5
mov eax, 0x10
mov word [esp + ecx*2 + 0x24], ax
test bl, 8
je 0x100a04dd
sub ebx, 0x10
movsx edx, word [esp + ecx*2 + 0x10]
lea eax, [ebp*2]
mov ecx, edi
sub ecx, eax
mov eax, dword [esi + 0x28]
movsx ecx, word [eax + ecx*2]
mov eax, edi
imul ecx, dword [edx*4 + 0x102ef9cc]
sub eax, ebp
mov ebp, dword [esi + 0x28]
movsx eax, word [ebp + eax*2]
imul eax, dword [edx*4 + 0x102ef9b0]
add ecx, eax
movsx eax, bx
imul eax, dword [esp + 0x18]
sar ecx, 8
add ecx, eax
cmp ecx, 0x7fff
jle 0x100a052e
mov ecx, 0x7fff
jmp 0x100a053c
cmp ecx, 0xffff8000
mov eax, 0xffff8000
cmovl ecx, eax
mov word [ebp + edi*2], cx
inc edi
mov eax, dword [esi + 8]
mov ebp, dword [esi]
imul eax, ebp
cmp edi, eax
jl 0x100a0482
pop ebp
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0xc
ret