Function at 0x10015bd0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x14]
mov ebx, dword [ecx + 0x18]
test byte [eax], 4
jne 0x10015dfb
mov al, 1
test ebx, ebx
je 0x10016401
cmp byte [ebx], 3
jne 0x10015c20
mov eax, dword [ecx]
mov eax, dword [eax]
mov edx, dword [eax + 0x30]
movsx esi, word [ebx + 2]
mov edi, ecx
movzx ecx, si
shl esi, 4
test byte [edx + esi], 4
lea edx, [ebp - 0x30]
jne 0x10015c3a
push edx
push ecx
push eax
call dbg.FACTAudioEngine_GetGlobalVariable
jmp 0x10015c42
movzx ecx, word [ebx + 6]
test ecx, ecx
je 0x10015c7d
mov eax, dword [ebx + 8]
cmp ecx, 1
jne 0x10015c91
xorps xmm2, xmm2
xor edx, edx
jmp 0x10015cc8
push edx
push ecx
push edi
call dbg.FACTCue_GetVariable
add esp, 0xc
mov eax, dword [edi + 0x18]
movzx edx, word [eax + 6]
test edx, edx
je 0x10015c82
movss xmm0, dword [ebp - 0x30]
mov esi, dword [eax + 8]
add esi, 8
xor ecx, ecx
jmp 0x10015c6c
inc ecx
add esi, 0x10
cmp edx, ecx
je 0x100163ff
movss xmm1, dword [esi]
ucomiss xmm1, xmm0
jb 0x10015c60
ucomiss xmm0, dword [esi - 4]
jb 0x10015c60
jmp 0x10015c84
xorps xmm2, xmm2
jmp 0x10015ce0
xor ecx, ecx
cmp ecx, edx
jne 0x10015d62
jmp 0x100163ff
mov ebx, ecx
and ebx, 0xfffffffe
lea esi, [eax + 0x18]
xorps xmm0, xmm0
xor edx, edx
nop
movss xmm1, dword [esi - 0x10]
movss xmm2, dword [esi]
subss xmm1, dword [esi - 0x14]
addss xmm1, xmm0
subss xmm2, dword [esi - 4]
addss xmm2, xmm1
add edx, 2
add esi, 0x20
movaps xmm0, xmm2
cmp ebx, edx
jne 0x10015ca0
test cl, 1
je 0x10015ce0
shl edx, 4
movss xmm0, dword [eax + edx + 8]
subss xmm0, dword [eax + edx + 4]
addss xmm2, xmm0
movss dword [ebp - 0x10], xmm2
call dbg.stb_rand
movss xmm2, dword [ebp - 0x10]
movd xmm0, eax
por xmm0, xmmword [0x10036490]
subsd xmm0, qword [0x100364a0]
mulsd xmm0, qword [0x100364a8]
cvtsd2ss xmm0, xmm0
mulss xmm0, xmm2
movss dword [ebp - 0x30], xmm0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
movzx edx, word [eax + 6]
test edx, edx
mov ecx, 1
cmovle ecx, edx
dec ecx
mov esi, edx
shl esi, 4
add esi, 0xfffffff8
nop word cs:[eax + eax]
cmp edx, 2
jl 0x10015d62
dec edx
mov edi, dword [eax + 8]
movss xmm1, dword [edi + esi]
subss xmm1, dword [edi + esi - 4]
subss xmm2, xmm1
add esi, 0xfffffff0
ucomiss xmm0, xmm2
jbe 0x10015d40
mov ecx, edx
cmp byte [eax + 4], 0
mov edx, dword [ebp + 8]
mov edx, dword [edx]
je 0x10015da5
movzx esi, word [edx + 0x14]
test esi, esi
je 0x100163ff
mov eax, dword [eax + 8]
shl ecx, 4
mov eax, dword [eax + ecx]
mov ecx, dword [edx + 0x30]
lea edi, [esi + esi*8]
lea edi, [edi + edi*2]
add edi, esi
xor esi, esi
nop
cmp eax, dword [ecx]
je 0x10015df3
add esi, 0xffffffe4
add ecx, 4
mov ebx, edi
add ebx, esi
jne 0x10015d90
jmp 0x100163ff
mov esi, dword [edx]
mov eax, dword [eax + 8]
shl ecx, 4
lea edi, [eax + ecx]
mov dword [ebp - 0x10], edi
mov ebx, dword [esi + 0x40]
test ebx, ebx
je 0x100164a9
mov edx, dword [edx + 0x1c]
movzx eax, byte [eax + ecx + 2]
mov esi, dword [edx + eax*4]
nop dword [eax]
mov edi, dword [ebx]
push dword [edi + 0x14]
push esi
call dword [sym.imp.ucrtbase.dll_strcmp]
add esp, 8
test eax, eax
je 0x100164ab
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x10015dd0
jmp 0x100164ab
mov ebx, dword [edx + 0x2c]
sub ebx, esi
mov ecx, dword [ebp + 8]
mov al, 1
test ebx, ebx
je 0x10016401
movzx eax, word [ebp + 0xc]
mov word [ebp - 0x10], ax
movzx edi, word [ebx + 2]
mov ecx, dword [ecx]
cmp edi, 0xffff
je 0x10015e4c
mov edx, dword [ecx]
mov esi, dword [edx + 0x2c]
lea eax, [edi + edi*2]
movzx edx, byte [esi + eax*8 + 0x11]
mov dword [ebp - 0x14], eax
cmp dl, byte [esi + eax*8]
mov dword [ebp - 0x18], esi
jae 0x10016409
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
lea eax, [eax + ecx*8]
add eax, 0x11
inc byte [eax]
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
jmp 0x10015e4f
mov esi, dword [ebp + 8]
mov eax, dword [ecx]
push 0x28
call dword [eax + 0x68]
add esp, 4
mov edi, eax
mov dword [eax + 0x24], esi
mov dword [eax], ebx
mov dword [eax + 0x18], 0x3f800000
movaps xmm0, xmmword [0x100364b0]
movups xmmword [eax + 8], xmm0
cmp word [ebp - 0x10], 0
setne byte [eax + 0x22]
je 0x10015e86
call dbg.FAudio_timems
mov ebx, dword [edi]
jmp 0x10015e88
xor eax, eax
mov dword [edi + 0x1c], eax
movzx eax, word [ebp - 0x10]
mov word [edi + 0x20], ax
mov eax, dword [esi]
mov eax, dword [eax]
movzx ecx, byte [ebx + 0xb]
shl ecx, 4
lea ecx, [ecx + ecx*4]
push ecx
call dword [eax + 0x68]
add esp, 4
mov dword [edi + 4], eax
mov eax, dword [edi]
cmp byte [eax + 0xb], 0
mov dword [ebp - 0x14], edi
je 0x10016299
xor edi, edi
jmp 0x10015ed0
mov edi, dword [ebp - 0x28]
inc edi
movzx eax, byte [ecx + 0xb]
cmp edi, eax
jae 0x10016299
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 4]
mov ecx, edi
shl ecx, 4
lea ebx, [ecx + ecx*4]
mov dword [eax + ebx + 4], 0
mov eax, dword [esi + 4]
mov dword [eax + ebx + 8], 0
mov eax, dword [esi + 4]
mov dword [eax + ebx + 0xc], 0
mov eax, dword [esi + 4]
mov dword [eax + ebx + 0x14], 0x3f800000
mov eax, dword [esi + 4]
mov dword [eax + ebx + 0x10], 0x3f800000
mov eax, dword [esi + 4]
mov dword [eax + ebx + 0x1c], 0
mov eax, dword [esi + 4]
mov dword [eax + ebx + 0x18], 0
mov eax, dword [esi + 4]
mov dword [eax + ebx + 0x20], 0
mov eax, dword [esi + 4]
mov dword [eax + ebx + 0x24], 0
mov eax, dword [esi + 4]
mov word [eax + ebx + 0x28], 0
mov eax, dword [esi + 4]
mov dword [eax + ebx + 0x2c], 0x3f800000
mov eax, dword [esi + 4]
mov dword [eax + ebx + 0x30], 0x3f800000
mov eax, dword [esi + 4]
mov dword [eax + ebx + 0x34], 0
mov eax, dword [esi + 4]
mov dword [eax + ebx + 0x38], 0
mov eax, dword [esi + 4]
mov word [eax + ebx + 0x3c], 0
mov eax, dword [esi + 4]
mov dword [eax + ebx + 0x40], 0x3f800000
mov eax, dword [esi + 4]
mov dword [eax + ebx + 0x44], 0x3f800000
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x10]
lea edx, [edi + edi*8]
lea edx, [edx + edx*2]
mov dword [ebp - 0x28], edi
add edx, edi
mov edi, edx
movzx ecx, byte [ecx + edx + 0x14]
shl ecx, 2
lea ecx, [ecx + ecx*2]
push ecx
call dword [eax + 0x68]
add esp, 4
mov ecx, dword [esi + 4]
mov dword [ebp - 0x20], ebx
mov dword [ecx + ebx], eax
mov ecx, dword [esi]
mov eax, dword [ecx + 0x10]
cmp byte [eax + edi + 0x14], 0
je 0x10015ec0
xor esi, esi
mov dword [ebp - 0x34], edi
jmp 0x10016034
mov ecx, 0x30000
bt ecx, eax
jae 0x10016125
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edi + 0x18]
movzx eax, word [eax + ebx + 0xa]
mov edx, dword [ebp - 0x28]
lea edx, [edx + edx*4]
shl edx, 4
mov ecx, dword [ecx + edx]
mov edx, dword [ebp - 0x10]
lea edx, [edx + edx*2]
mov word [ecx + edx*4 + 4], ax
mov ebx, dword [ebp - 0x10]
inc ebx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x10]
movzx edx, byte [eax + edi + 0x14]
mov esi, ebx
cmp ebx, edx
jae 0x10015ec0
mov dword [ebp - 0x10], esi
mov eax, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x10]
shl ebx, 6
movzx eax, word [eax + ebx + 2]
mov edi, dword [ebp - 0x14]
mov ecx, dword [edi + 4]
mov esi, dword [ebp - 0x20]
mov ecx, dword [ecx + esi]
mov edx, dword [ebp - 0x10]
lea edx, [edx*4]
lea edx, [edx + edx*2]
mov dword [ecx + edx], eax
mov eax, dword [edi + 4]
mov eax, dword [eax + esi]
mov word [eax + edx + 4], 0
mov eax, dword [edi + 4]
mov eax, dword [eax + esi]
mov byte [eax + edx + 6], 0
mov eax, dword [edi + 4]
mov eax, dword [eax + esi]
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x38], edx
mov dword [eax + edx + 8], 0
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + ebx]
cmp eax, 0x12
ja 0x10016019
mov ecx, 0x5a
bt ecx, eax
jae 0x10015fe0
mov dword [ebp - 0x2c], ebx
mov esi, dword [ebp - 0x14]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edi + 0x18]
mov ebx, dword [ebp - 0x2c]
movzx eax, byte [eax + ebx + 9]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ecx + edx]
mov ebx, dword [ebp - 0x38]
mov word [ecx + ebx + 4], ax
mov eax, dword [esi + 4]
mov esi, dword [ebp - 0x2c]
mov eax, dword [eax + edx]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x18]
xor eax, eax
cmp byte [edx + esi + 0xe], 0
je 0x1001623d
lea ecx, [edx + esi]
add ecx, 8
test byte [ecx + 8], 0xf
je 0x1001623d
mov ebx, ecx
movzx edx, word [ebx + 0xa]
test edx, edx
je 0x10016147
mov eax, ebx
mov ecx, dword [ebx + 0x14]
cmp dx, 4
mov dword [ebp - 0x24], edx
jae 0x1001614f
xorps xmm2, xmm2
xor edx, edx
jmp 0x100161a6
cmp eax, 0x12
jne 0x10016019
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edi + 0x18]
movzx eax, word [eax + ebx + 0xc]
jmp 0x10016002
xorps xmm2, xmm2
jmp 0x100161d4
mov eax, edx
and eax, 0xfffffffc
xorps xmm2, xmm2
xor edx, edx
nop dword [eax]
movzx esi, byte [ecx + edx]
xorps xmm0, xmm0
cvtsi2ss xmm0, esi
addss xmm0, xmm2
movzx esi, byte [ecx + edx + 1]
xorps xmm1, xmm1
cvtsi2ss xmm1, esi
addss xmm1, xmm0
movzx esi, byte [ecx + edx + 2]
xorps xmm0, xmm0
cvtsi2ss xmm0, esi
movzx esi, byte [ecx + edx + 3]
xorps xmm2, xmm2
cvtsi2ss xmm2, esi
addss xmm0, xmm1
addss xmm2, xmm0
add edx, 4
cmp eax, edx
jne 0x10016160
mov esi, dword [ebp - 0x24]
and esi, 3
je 0x100161d4
add ecx, edx
xor eax, eax
nop word cs:[eax + eax]
movzx edx, byte [ecx + eax]
xorps xmm0, xmm0
cvtsi2ss xmm0, edx
addss xmm2, xmm0
inc eax
cmp esi, eax
jne 0x100161c0
movss dword [ebp - 0x24], xmm2
call dbg.stb_rand
movss xmm2, dword [ebp - 0x24]
movd xmm0, eax
por xmm0, xmmword [0x10036490]
subsd xmm0, qword [0x100364a0]
mulsd xmm0, qword [0x100364a8]
cvtsd2ss xmm0, xmm0
mulss xmm0, xmm2
movss dword [ebp - 0x30], xmm0
movzx eax, word [ebx + 0xa]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
nop word cs:[eax + eax]
test eax, eax
jle 0x1001624a
mov ecx, dword [ebx + 0x14]
movzx ecx, byte [ecx + eax - 1]
xorps xmm1, xmm1
cvtsi2ss xmm1, ecx
dec eax
subss xmm2, xmm1
ucomiss xmm0, xmm2
jbe 0x10016220
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx + ecx*2]
mov ebx, dword [ebp - 0x1c]
mov dword [ebx + ecx*4 + 8], eax
add edx, esi
mov esi, dword [ebp - 0x1c]
add esi, dword [ebp - 0x38]
mov dword [ebp - 0x1c], esi
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebx]
mov dword [ebp - 0x18], eax
mov ecx, dword [eax + 0x10]
add ecx, edi
mov eax, edx
mov edx, dword [ebx + 4]
mov edi, dword [ebp - 0x20]
add edx, edi
push esi
push eax
mov esi, eax
push edx
push ecx
push dword [ebp - 0x18]
push dword [ebp + 8]
call dbg.FACT_INTERNAL_GetNextWave
add esp, 0x18
mov eax, dword [ebx + 4]
mov dword [eax + edi + 0x48], esi
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + edi + 0x4c], ecx
mov edi, dword [ebp - 0x34]
jmp 0x10016019
mov eax, dword [ebp + 8]
mov dword [eax + 0x34], 0
mov eax, dword [ebp - 0x14]
mov esi, dword [eax]
cmp byte [esi + 0xb], 0
je 0x100163f6
mov dword [ebp - 0x1c], 0
xor edx, edx
jmp 0x100162d0
mov edx, dword [ebp - 0x20]
inc edx
movzx eax, byte [esi + 0xb]
cmp edx, eax
jae 0x100163f6
mov ecx, dword [esi + 0x10]
lea eax, [edx + edx*8]
lea eax, [eax + eax*2]
mov dword [ebp - 0x20], edx
add eax, edx
mov dword [ebp - 0x18], eax
cmp byte [ecx + eax + 0xc], 0
je 0x100162c0
xor ebx, ebx
nop word [eax + eax]
mov dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x24]
mov eax, dword [eax]
mov eax, dword [eax]
movzx edx, word [eax + 0x14]
mov esi, 0
test edx, edx
je 0x1001632f
mov esi, dword [ebp - 0x18]
mov ecx, dword [ecx + esi + 0x10]
mov ecx, dword [ecx + ebx*4]
mov edi, dword [eax + 0x24]
xor esi, esi
nop dword [eax]
cmp dword [edi + esi*4], ecx
je 0x10016340
inc esi
movzx esi, si
cmp esi, edx
jb 0x10016320
xor esi, esi
cmp word [esi + 4], 0
jne 0x10016380
jmp 0x10016350
lea esi, [esi + esi*2]
shl esi, 2
add esi, dword [eax + 0x34]
cmp word [esi + 4], 0
jne 0x10016380
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov ecx, dword [ecx]
mov edx, dword [ecx + 0x30]
movzx ecx, word [esi]
mov edi, ecx
shl edi, 4
test byte [edx + edi], 4
je 0x10016380
mov eax, dword [eax + 0x20]
push str.ReleaseTime
push dword [eax + ecx*4]
call dword [sym.imp.ucrtbase.dll_strcmp]
add esp, 8
test eax, eax
je 0x1001639c
mov esi, dword [ebp - 0x10]
inc ebx
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 0x18]
movzx eax, byte [ecx + eax + 0xc]
cmp ebx, eax
jb 0x100162f0
jmp 0x100162c0
mov eax, dword [esi + 8]
movzx ecx, byte [esi + 2]
lea ecx, [ecx + ecx*2]
movss xmm0, dword [eax + ecx*4 - 0xc]
movss xmm1, dword [ebp - 0x1c]
orpd xmm1, xmmword [0x10036490]
subsd xmm1, qword [0x100364a0]
cvtsd2ss xmm1, xmm1
ucomiss xmm0, xmm1
mov esi, dword [ebp - 0x10]
jbe 0x10016383
cvttss2si eax, xmm0
mov ecx, eax
sar ecx, 0x1f
subss xmm0, dword [0x100364c0]
cvttss2si edx, xmm0
and edx, ecx
or edx, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 0x14]
mov esi, dword [eax]
jmp 0x10016383
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x2c], ecx
mov al, 1
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x14]
movzx edx, byte [esi + eax*8 + 6]
cmp edx, 4
ja case.default.0x1001641d
mov ecx, dword [ecx + 4]
jmp dword [edx*4 + 0x100364c4]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x24]
and eax, 0xffffff87
or eax, 0x20
mov dword [ecx + 0x24], eax
xor eax, eax
jmp 0x10016401
mov ecx, dword [ecx + 4]
test ecx, ecx
je case.default.0x1001641d
cmp ecx, dword [ebp + 8]
je 0x10016440
mov esi, dword [ecx + 0x2c]
test esi, esi
je 0x10016440
mov edx, dword [esi]
cmp word [edx + 2], di
jne 0x10016440
test byte [ecx + 0x24], 0x30
jne 0x10016440
jmp 0x10016495
mov ecx, dword [ecx + 4]
test ecx, ecx
je case.default.0x1001641d
cmp ecx, dword [ebp + 8]
je 0x10016470
mov esi, dword [ecx + 0x2c]
test esi, esi
je 0x10016470
mov edx, dword [esi]
cmp word [edx + 2], di
jne 0x10016470
test byte [ecx + 0x24], 0x30
jne 0x10016470
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
movzx eax, word [ecx + eax*8 + 2]
mov word [ebp - 0x10], ax
jmp 0x10016582
xor edi, edi
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
mov esi, dword [ebp + 8]
lea ecx, [esi + 0x28]
push ecx
push 0
push 0
push 0
push eax
push edi
call dbg.FACTWaveBank_Prepare
add esp, 0x18
mov eax, dword [esi + 0x28]
mov dword [eax + 4], esi
jmp 0x100163ff
test ecx, ecx
je case.default.0x1001641d
mov dword [ebp - 0x20], 0xff
xor edx, edx
jmp 0x10016507
test byte [ecx + 0x24], 0x30
cmove eax, esi
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x1c]
cmove edx, ecx
nop word cs:[eax + eax]
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x10016564
cmp ecx, dword [ebp + 8]
je 0x10016500
mov esi, dword [ecx + 0x2c]
test esi, esi
je 0x10016500
mov esi, dword [esi]
cmp word [esi + 2], di
jne 0x10016500
mov dword [ebp - 0x1c], edx
movzx esi, byte [esi + 0xa]
mov eax, dword [ebp - 0x20]
movzx edx, al
cmp edx, esi
ja 0x100164e6
mov edx, dword [ebp - 0x1c]
jmp 0x10016500
test ecx, ecx
je case.default.0x1001641d
xor edx, edx
jmp 0x10016547
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x10016564
cmp ecx, dword [ebp + 8]
je 0x10016540
mov esi, dword [ecx + 0x2c]
test esi, esi
je 0x10016540
mov esi, dword [esi]
cmp word [esi + 2], di
jne 0x10016540
test byte [ecx + 0x24], 0x30
cmove edx, ecx
jmp 0x10016540
test edx, edx
je case.default.0x1001641d
mov esi, dword [edx + 0x2c]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
movzx eax, word [ecx + eax*8 + 2]
mov word [ebp - 0x10], ax
test esi, esi
je 0x100165ab
mov eax, dword [ebp - 0x14]
movzx edi, word [ecx + eax*8 + 4]
test di, di
je 0x100165bb
mov byte [esi + 0x22], 2
call dbg.FAudio_timems
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], di
mov eax, dword [esi + 0x24]
or dword [eax + 0x24], 0x10
jmp case.default.0x1001641d
push 0
push edx
call dbg.FACTCue_Stop
add esp, 8
jmp case.default.0x1001641d
push esi
call dbg.FACT_INTERNAL_DestroySound
add esp, 4
jmp case.default.0x1001641d