Function at 0x1009f5e0
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 0x1009f61f
mov eax, dword [esi + 8]
imul eax, dword [esi]
push eax
push 0
push dword [esi + 0x28]
call fcn.1010f560
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.1006b440
mov ebx, eax
add esp, 0x18
mov eax, dword [esi + 4]
cmp ebx, eax
je 0x1009f664
push eax
push ebx
push str._Warning_:_short_read___d____d_._n
push edi
call fcn.10069fd0
add esp, 0x10
test ebx, ebx
jg 0x1009f664
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 0x1009f6f9
cmp al, 7
jb 0x1009f69e
cmp dword [esi + 0x18], 0
jne 0x1009f69a
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.10069fd0
mov edx, dword [esi + 0x2c]
add esp, 0x10
xor eax, eax
jmp 0x1009f6a1
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 0x1009f7f1
cmp al, 7
jb 0x1009f725
cmp dword [esi + 0x18], 0
jne 0x1009f721
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.10069fd0
mov edx, dword [esi + 0x2c]
add esp, 0x10
xor eax, eax
jmp 0x1009f728
movzx eax, al
mov word [esp + 0xc], ax
mov al, byte [edx + 1]
cmp al, 7
jb 0x1009f75c
cmp dword [esi + 0x18], 0
jne 0x1009f758
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.10069fd0
mov edx, dword [esi + 0x2c]
add esp, 0x10
xor eax, eax
jmp 0x1009f75f
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 0x1009f82a
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 0x1009f800
mov eax, dword [esi + 8]
push ebp
mov ebp, dword [esi]
imul eax, ebp
lea edi, [ebp*2]
cmp edi, eax
jge 0x1009f912
mov eax, dword [esi + 0x28]
mov ecx, edi
mov ax, word [eax + edi*2]
and ax, 0xf
movzx ebx, ax
and ecx, 0x80000001
jns 0x1009f85f
dec ecx
or ecx, 0xfffffffe
inc ecx
xor eax, eax
cmp ebp, 1
cmovle ecx, eax
mov eax, dword [ebx*4 + 0x102e49a8]
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 0x1009f895
mov eax, 0x10
mov word [esp + ecx*2 + 0x24], ax
test bl, 8
je 0x1009f89d
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 + 0x102e4a04]
sub eax, ebp
mov ebp, dword [esi + 0x28]
movsx eax, word [ebp + eax*2]
imul eax, dword [edx*4 + 0x102e49e8]
add ecx, eax
movsx eax, bx
imul eax, dword [esp + 0x18]
sar ecx, 8
add ecx, eax
cmp ecx, 0x7fff
jle 0x1009f8ee
mov ecx, 0x7fff
jmp 0x1009f8fc
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 0x1009f842
pop ebp
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0xc
ret