Function at 0x100402c0
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 0x100402ff
mov eax, dword [esi + 8]
imul eax, dword [esi]
push eax
push 0
push dword [esi + 0x28]
call fcn.100a2020
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.1000c0f0
mov ebx, eax
add esp, 0x18
mov eax, dword [esi + 4]
cmp ebx, eax
je 0x10040344
push eax
push ebx
push str._Warning_:_short_read___d____d_._n
push edi
call fcn.1000ac80
add esp, 0x10
test ebx, ebx
jg 0x10040344
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 0x100403d9
cmp al, 7
jb 0x1004037e
cmp dword [esi + 0x18], 0
jne 0x1004037a
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.1000ac80
mov edx, dword [esi + 0x2c]
add esp, 0x10
xor eax, eax
jmp 0x10040381
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 0x100404d1
cmp al, 7
jb 0x10040405
cmp dword [esi + 0x18], 0
jne 0x10040401
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.1000ac80
mov edx, dword [esi + 0x2c]
add esp, 0x10
xor eax, eax
jmp 0x10040408
movzx eax, al
mov word [esp + 0xc], ax
mov al, byte [edx + 1]
cmp al, 7
jb 0x1004043c
cmp dword [esi + 0x18], 0
jne 0x10040438
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.1000ac80
mov edx, dword [esi + 0x2c]
add esp, 0x10
xor eax, eax
jmp 0x1004043f
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 0x1004050a
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 0x100404e0
mov eax, dword [esi + 8]
push ebp
mov ebp, dword [esi]
imul eax, ebp
lea edi, [ebp*2]
cmp edi, eax
jge 0x100405f2
mov eax, dword [esi + 0x28]
mov ecx, edi
mov ax, word [eax + edi*2]
and ax, 0xf
movzx ebx, ax
and ecx, 0x80000001
jns 0x1004053f
dec ecx
or ecx, 0xfffffffe
inc ecx
xor eax, eax
cmp ebp, 1
cmovle ecx, eax
mov eax, dword [ebx*4 + 0x10258848]
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 0x10040575
mov eax, 0x10
mov word [esp + ecx*2 + 0x24], ax
test bl, 8
je 0x1004057d
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 + 0x102588a4]
sub eax, ebp
mov ebp, dword [esi + 0x28]
movsx eax, word [ebp + eax*2]
imul eax, dword [edx*4 + 0x10258888]
add ecx, eax
movsx eax, bx
imul eax, dword [esp + 0x18]
sar ecx, 8
add ecx, eax
cmp ecx, 0x7fff
jle 0x100405ce
mov ecx, 0x7fff
jmp 0x100405dc
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 0x10040522
pop ebp
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0xc
ret