Function at 0x404b80
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, edi
mov edi, edx
sub esp, 0xb0
fld dword [ebx + 4]
mov esi, dword [ebx + 0x10]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebx]
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x78], esi
mov esi, dword [ebx + 0x14]
fstp dword [ebp - 0x6c]
fld dword [ebx + 8]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x80], esi
fstp dword [ebp - 0x70]
fld dword [ebx + 0xc]
fstp dword [ebp - 0x74]
test ecx, ecx
je 0x404c2c
mov ebx, str.in_head_relative_mode
cmp eax, 1
je 0x404be8
cmp eax, 2
mov ebx, 0x42c505
mov eax, str.with_3D_processing_disabled
cmove ebx, eax
call fcn.004256b0
mov dword [eax], 0x42c5f1
mov dword [eax + 4], 0x4fc
mov eax, dword [ebp - 0x78]
mov dword [esp + 0x28], eax
fld dword [ebp - 0x74]
fstp qword [esp + 0x20]
fld dword [ebp - 0x70]
fstp qword [esp + 0x18]
fld dword [ebp - 0x6c]
mov dword [esp + 4], ebx
fstp qword [esp + 0x10]
mov dword [esp], str.__Testing_Doppler_shift__swith_listener_at__g__velocity__g_with_sound_at__g__velocity__g__frequency__luHz_n
fldz
fstp qword [esp + 8]
call fcn.00404130
xor ebx, ebx
lea esi, [ebp - 0x48]
mov dword [ebp - 0x48], 0x10001
mov word [ebp - 0x38], bx
lea ebx, [ebp - 0x4c]
mov dword [ebp - 0x44], 0x5622
mov dword [ebp - 0x40], 0xac44
mov dword [ebp - 0x3c], 0x100002
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 0x33333333
mov dword [esp + 8], 0x3fe33333
mov dword [esp], esi
call fcn.004048f0
xor edx, edx
mov dword [ebp - 0x68], eax
xor eax, eax
mov dword [ebp + eax - 0x30], edx
add eax, 4
cmp eax, 0x20
jb 0x404c7f
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x60]
mov dword [ebp - 0x34], 0x24
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x90], ecx
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx]
mov dword [esp + 8], eax
lea eax, [ebp - 0x34]
mov dword [esp], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
call dword [edx + 0xc]
sub esp, 0x10
mov dword [ebp - 0x8c], eax
call fcn.004256b0
mov edx, dword [ebp - 0x8c]
mov dword [eax], 0x42c5f1
mov dword [eax + 4], 0x512
xor eax, eax
test edx, edx
sete al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], 0x42c74b
call fcn.00404200
mov eax, dword [ebp - 0x60]
lea ecx, [ebp - 0x58]
mov edx, dword [eax]
mov dword [esp + 0x10], ecx
lea ecx, [ebp - 0x54]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], 2
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x2c]
sub esp, 0x20
mov dword [ebp - 0x8c], eax
call fcn.004256b0
mov edx, dword [ebp - 0x8c]
mov dword [eax], 0x42c5f1
mov dword [eax + 4], 0x515
xor eax, eax
test edx, edx
sete al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], 0x42c74b
call fcn.00404200
mov ecx, dword [ebp - 0x90]
mov dword [esp + 8], ecx
mov eax, dword [ebp - 0x68]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x60]
mov edx, dword [eax]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov ecx, dword [ebp - 0x58]
mov dword [esp + 8], ecx
mov ecx, dword [ebp - 0x54]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [edx + 0x4c]
sub esp, 0x14
mov dword [ebp - 0x8c], eax
call fcn.004256b0
mov edx, dword [ebp - 0x8c]
mov dword [eax], 0x42c5f1
mov dword [eax + 4], 0x518
xor eax, eax
test edx, edx
sete al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], 0x42c74b
call fcn.00404200
mov ecx, dword [ebp - 0x68]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x8c], eax
call eax
mov eax, dword [ebp - 0x80]
xor edx, edx
mov dword [ebp - 0x48], 0x10001
sub esp, 0xc
mov word [ebp - 0x38], dx
mov dword [ebp - 0x44], eax
add eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 0x100002
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 0x33333333
mov dword [esp + 8], 0x3fe33333
mov dword [esp], esi
call fcn.004048f0
xor ecx, ecx
mov dword [ebp - 0x48], 0x10001
xor edx, edx
mov word [ebp - 0x38], cx
mov dword [ebp - 0x44], 0x5622
mov dword [ebp - 0x40], 0xac44
mov dword [ebp - 0x3c], 0x100002
mov dword [ebp - 0x68], eax
xor eax, eax
mov dword [ebp + eax - 0x28], edx
add eax, 4
cmp eax, 0x18
jb 0x404e96
mov dword [ebp - 0x24], esi
mov esi, dword [ebp - 0x7c]
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x34]
mov ebx, dword [ebp - 0x4c]
mov dword [ebp - 0x34], 0x24
mov eax, dword [esi]
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 0x2c], ebx
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], esi
mov dword [esp + 0xc], 0
call dword [eax + 0xc]
sub esp, 0x10
mov esi, eax
call fcn.004256b0
mov dword [eax], 0x42c5f1
mov dword [eax + 4], 0x538
xor eax, eax
test esi, esi
sete al
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], 0x42c74b
call fcn.00404200
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x64]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x42bd60
mov dword [esp], eax
call dword [edx]
sub esp, 0xc
mov esi, eax
call fcn.004256b0
mov dword [eax], 0x42c5f1
mov dword [eax + 4], 0x53a
xor eax, eax
test esi, esi
sete al
mov dword [esp + 8], esi
lea esi, [ebp - 0x58]
mov dword [esp], eax
mov dword [esp + 4], 0x42c74b
call fcn.00404200
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax]
mov dword [esp + 0x10], esi
lea esi, [ebp - 0x54]
mov dword [esp + 0xc], esi
mov dword [esp + 0x1c], 2
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x2c]
sub esp, 0x20
mov esi, eax
call fcn.004256b0
mov dword [eax], 0x42c5f1
mov dword [eax + 4], 0x53d
xor eax, eax
test esi, esi
sete al
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], 0x42c74b
call fcn.00404200
mov dword [esp + 8], ebx
mov esi, dword [ebp - 0x68]
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov ecx, dword [ebp - 0x58]
mov dword [esp + 8], ecx
mov ecx, dword [ebp - 0x54]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [edx + 0x4c]
sub esp, 0x14
mov ebx, eax
call fcn.004256b0
mov dword [eax], 0x42c5f1
mov dword [eax + 4], 0x540
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], 0x42c74b
call fcn.00404200
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x8c]
call eax
mov eax, dword [edi]
sub esp, 0xc
fldz
fst dword [esp + 0xc]
fst dword [esp + 8]
fstp dword [esp + 4]
mov dword [esp + 0x10], 1
mov dword [esp], edi
call dword [eax + 0x38]
sub esp, 0x14
mov ebx, eax
call fcn.004256b0
mov dword [eax], 0x42c5f1
mov dword [eax + 4], 0x546
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], 0x42c74b
call fcn.00404200
mov eax, dword [edi]
mov dword [esp + 0x10], 1
fldz
mov dword [esp], edi
fst dword [esp + 0xc]
fst dword [esp + 8]
fstp dword [esp + 4]
call dword [eax + 0x40]
sub esp, 0x14
mov ebx, eax
call fcn.004256b0
mov dword [eax], 0x42c5f1
mov dword [eax + 4], 0x548
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], 0x42c74b
call fcn.00404200
mov eax, dword [ebp - 0x64]
fldz
mov edx, dword [eax]
fst dword [esp + 0xc]
fstp dword [esp + 4]
mov dword [esp + 0x10], 1
mov dword [esp + 8], 0x3f800000
mov dword [esp], eax
call dword [edx + 0x4c]
sub esp, 0x14
mov ebx, eax
call fcn.004256b0
mov dword [eax], 0x42c5f1
mov dword [eax + 4], 0x54a
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], 0x42c74b
call fcn.00404200
mov eax, dword [ebp - 0x64]
fldz
mov edx, dword [eax]
fst dword [esp + 0xc]
fstp dword [esp + 4]
mov dword [esp + 0x10], 1
mov dword [esp + 8], 0xc2700000
mov dword [esp], eax
call dword [edx + 0x50]
sub esp, 0x14
mov ebx, eax
call fcn.004256b0
mov dword [eax], 0x42c5f1
mov dword [eax + 4], 0x54c
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], 0x42c74b
call fcn.00404200
mov eax, dword [edi]
mov dword [esp], edi
call dword [eax + 0x44]
sub esp, 4
mov ebx, eax
call fcn.004256b0
mov dword [eax], 0x42c5f1
mov dword [eax + 4], 0x54e
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], 0x42c74b
call fcn.00404200
mov eax, dword [edi]
mov dword [esp + 0x10], 1
fldz
mov dword [esp], edi
fst dword [esp + 0xc]
fst dword [esp + 8]
fstp dword [esp + 4]
call dword [eax + 0x38]
sub esp, 0x14
mov ebx, eax
call fcn.004256b0
mov dword [eax], 0x42c5f1
mov dword [eax + 4], 0x551
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], 0x42c74b
call fcn.00404200
mov eax, dword [edi]
mov dword [esp + 0x10], 1
fldz
fst dword [esp + 0xc]
fld dword [ebp - 0x6c]
mov dword [esp], edi
fstp dword [esp + 8]
fstp dword [esp + 4]
call dword [eax + 0x40]
sub esp, 0x14
mov ebx, eax
call fcn.004256b0
mov dword [eax], 0x42c5f1
mov dword [eax + 4], 0x553
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], 0x42c74b
call fcn.00404200
mov eax, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x78]
mov edx, dword [eax]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 0x44]
sub esp, 8
mov ebx, eax
call fcn.004256b0
mov dword [eax], 0x42c5f1
mov dword [eax + 4], 0x556
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], 0x42c74b
call fcn.00404200
mov eax, dword [ebp - 0x64]
mov edx, dword [eax]
mov dword [esp + 8], 1
mov ecx, dword [ebp - 0x88]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [edx + 0x48]
sub esp, 0xc
mov ebx, eax
call fcn.004256b0
mov dword [eax], 0x42c5f1
mov dword [eax + 4], 0x559
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], 0x42c74b
call fcn.00404200
mov eax, dword [ebp - 0x64]
fldz
mov edx, dword [eax]
mov dword [esp + 0x10], 1
fst dword [esp + 0xc]
fld dword [ebp - 0x70]
mov dword [esp], eax
fstp dword [esp + 8]
fstp dword [esp + 4]
call dword [edx + 0x4c]
sub esp, 0x14
mov ebx, eax
call fcn.004256b0
mov dword [eax], 0x42c5f1
mov dword [eax + 4], 0x55b
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], 0x42c74b
call fcn.00404200
mov eax, dword [ebp - 0x64]
fldz
mov edx, dword [eax]
mov dword [esp + 0x10], 1
fst dword [esp + 0xc]
fld dword [ebp - 0x74]
mov dword [esp], eax
fstp dword [esp + 8]
fstp dword [esp + 4]
call dword [edx + 0x50]
sub esp, 0x14
mov ebx, eax
call fcn.004256b0
mov dword [eax], 0x42c5f1
mov dword [eax + 4], 0x55d
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], 0x42c74b
call fcn.00404200
mov eax, dword [edi]
mov dword [esp], edi
call dword [eax + 0x44]
sub esp, 4
mov ebx, eax
call fcn.004256b0
mov dword [eax], 0x42c5f1
mov dword [eax + 4], 0x560
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], 0x42c74b
call fcn.00404200
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x50], 0xdeadbeef
lea ecx, [ebp - 0x50]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x20]
sub esp, 8
mov ebx, eax
call fcn.004256b0
mov dword [eax], 0x42c5f1
mov dword [eax + 4], 0x564
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], 0x42c74b
call fcn.00404200
call fcn.004256b0
mov dword [eax], 0x42c5f1
mov dword [eax + 4], 0x565
mov eax, dword [ebp - 0x50]
mov dword [esp + 4], str.Got_frequency__lu_n
cmp esi, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00404200
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x40560d
call fcn.004256b0
mov dword [eax], 0x42c5f1
mov dword [eax + 4], 0x569
mov dword [esp], str.____Playing_a_reference_440Hz_tone_n
call fcn.00404130
mov eax, dword [ebp - 0x60]
mov edx, dword [eax]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x30]
sub esp, 0x10
mov ebx, eax
call fcn.004256b0
mov dword [eax], 0x42c5f1
mov dword [eax + 4], 0x56b
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], 0x42c74b
call fcn.00404200
mov esi, dword [sym.imp.kernel32.dll_Sleep]
mov dword [esp], 0x1f4
call esi
mov eax, dword [ebp - 0x60]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0x48]
sub esp, 4
mov ebx, eax
call fcn.004256b0
mov dword [eax], 0x42c5f1
mov dword [eax + 4], 0x56e
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], 0x42c74b
call fcn.00404200
call fcn.004256b0
mov dword [eax], 0x42c5f1
mov dword [eax + 4], 0x570
mov dword [esp], str.____Playing_a_test_tone__should_be_440Hz__n
call fcn.00404130
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x30]
sub esp, 0x10
mov ebx, eax
call fcn.004256b0
mov dword [eax], 0x42c5f1
mov dword [eax + 4], 0x572
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], 0x42c74b
call fcn.00404200
mov dword [esp], 0x1f4
call esi
mov eax, dword [ebp - 0x5c]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0x48]
sub esp, 4
mov ebx, eax
call fcn.004256b0
mov dword [eax], 0x42c5f1
mov dword [eax + 4], 0x575
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x42c74b
mov dword [esp], eax
call fcn.00404200
mov eax, dword [ebp - 0x64]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebp - 0x5c]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov ebx, eax
call fcn.004256b0
mov dword [eax], 0x42c5f1
mov dword [eax + 4], 0x57a
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.Got_outstanding_refcount__ld._n
call fcn.00404200
mov eax, dword [ebp - 0x60]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov ebx, eax
call fcn.004256b0
mov dword [eax], 0x42c5f1
mov dword [eax + 4], 0x57c
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Got_outstanding_refcount__ld._n
mov dword [esp], eax
call fcn.00404200
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret