Function at 0x49bb28
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8c05
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4a4
mov dword [ebp - 0x49c], ecx
cmp dword [ebp + 8], 7
je 0x49bb74
cmp dword [ebp + 8], 8
je 0x49bb74
cmp dword [ebp + 8], 0xf
je 0x49bb74
cmp dword [ebp + 8], 0x10
je 0x49bb74
push 1
mov eax, dword [0x5348f8]
push eax
call fcn.004af404
add esp, 8
mov ecx, dword [ebp - 0x49c]
mov dword [ecx + 0x1170], 1
mov edx, dword [ebp - 0x49c]
mov dword [edx + 0x1950], 0
mov eax, dword [ebp - 0x49c]
cmp dword [eax + 0x1411c], 0
je 0x49bbf9
mov ecx, dword [ebp - 0x49c]
mov edx, dword [ecx + 0x1411c]
mov dword [ebp - 0x490], edx
mov eax, dword [ebp - 0x490]
mov dword [ebp - 0x48c], eax
cmp dword [ebp - 0x48c], 0
je 0x49bbdf
push 1
mov ecx, dword [ebp - 0x48c]
call fcn.00451d00
mov dword [ebp - 0x4a0], eax
jmp 0x49bbe9
mov dword [ebp - 0x4a0], 0
mov ecx, dword [ebp - 0x49c]
mov dword [ecx + 0x1411c], 0
push 0x181b0
call fcn.004d0006
add esp, 4
mov dword [ebp - 0x498], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x498], 0
je 0x49bc2f
mov ecx, dword [ebp - 0x498]
call fcn.0046404f
mov dword [ebp - 0x4a4], eax
jmp 0x49bc39
mov dword [ebp - 0x4a4], 0
mov edx, dword [ebp - 0x4a4]
mov dword [ebp - 0x494], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x49c]
mov ecx, dword [ebp - 0x494]
mov dword [eax + 0x1411c], ecx
lea ecx, [ebp - 0x484]
call fcn.004cb2be
mov dword [ebp - 4], 1
push 0
lea ecx, [ebp - 0x484]
call fcn.004522e0
push 0
lea ecx, [ebp - 0x484]
call fcn.004522e0
push 0
lea ecx, [ebp - 0x484]
call fcn.004522e0
push 0
lea ecx, [ebp - 0x484]
call fcn.004522e0
push 0
lea ecx, [ebp - 0x484]
call fcn.004522e0
push 0
lea ecx, [ebp - 0x484]
call fcn.004522e0
push 0
lea ecx, [ebp - 0x484]
call fcn.004522e0
push 0
lea ecx, [ebp - 0x484]
call fcn.004522e0
push 0x52fc64
lea edx, [ebp - 0x444]
push edx
call fcn.004ba79a
add esp, 8
mov dword [ebp - 0x470], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4a8], eax
mov ecx, dword [ebp - 0x4a8]
sub ecx, 7
mov dword [ebp - 0x4a8], ecx
cmp dword [ebp - 0x4a8], 9
ja case.default.0x49bd21
mov edx, dword [ebp - 0x4a8]
jmp dword [edx*4 + 0x49c673]
push 1
push 0
lea ecx, [ebp - 0x484]
call fcn.00465920
push 0x52fa5c
push 0x104
lea eax, [ebp - 0x23c]
push eax
push 0x530798
push str.frontleft_wavefile
push 0x520ca4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x23c]
push ecx
lea edx, [ebp - 0x444]
push edx
call fcn.004ba770
add esp, 8
mov dword [ebp - 0x470], 2
mov eax, dword [ebp - 0x49c]
mov dword [eax + 0x14124], 0
mov ecx, dword [ebp - 0x49c]
mov dword [ecx + 0x14120], 0
jmp case.default.0x49bd21
push 1
push 1
lea ecx, [ebp - 0x484]
call fcn.00465920
push 0x52fa5c
push 0x104
lea edx, [ebp - 0x23c]
push edx
push 0x53079c
push str.frontright_wavefile
push 0x520cec
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x444]
push ecx
call fcn.004ba770
add esp, 8
mov dword [ebp - 0x470], 2
mov edx, dword [ebp - 0x49c]
mov dword [edx + 0x14124], 1
mov eax, dword [ebp - 0x49c]
mov dword [eax + 0x14120], 1
jmp case.default.0x49bd21
push 1
push 2
lea ecx, [ebp - 0x484]
call fcn.00465920
push 0x52fa5c
push 0x104
lea ecx, [ebp - 0x23c]
push ecx
push 0x5307a0
push str.center_wavefile
push 0x520d2c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [ebp - 0x23c]
push edx
lea eax, [ebp - 0x444]
push eax
call fcn.004ba770
add esp, 8
mov dword [ebp - 0x470], 6
mov ecx, dword [ebp - 0x49c]
mov dword [ecx + 0x14124], 2
mov edx, dword [ebp - 0x49c]
mov dword [edx + 0x14120], 2
jmp case.default.0x49bd21
push 1
push 3
lea ecx, [ebp - 0x484]
call fcn.00465920
push 0x52fa5c
push 0x104
lea eax, [ebp - 0x23c]
push eax
push 0x5307a4
push str.subwoofer_wavefile
push 0x520d74
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x23c]
push ecx
lea edx, [ebp - 0x444]
push edx
call fcn.004ba770
add esp, 8
mov dword [ebp - 0x470], 6
mov eax, dword [ebp - 0x49c]
mov dword [eax + 0x14124], 3
mov ecx, dword [ebp - 0x49c]
mov dword [ecx + 0x14120], 3
jmp case.default.0x49bd21
cmp dword [0x5340b8], 0
je 0x49bf23
push 6
call fcn.004a9808
add esp, 4
push 1
push 4
lea ecx, [ebp - 0x484]
call fcn.00465920
push 0x52fa5c
push 0x104
lea edx, [ebp - 0x23c]
push edx
push 0x5307a8
push str.backleft_wavefile
push 0x520db8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x444]
push ecx
call fcn.004ba770
add esp, 8
mov dword [ebp - 0x470], 6
mov edx, dword [ebp - 0x49c]
mov dword [edx + 0x14124], 4
mov eax, dword [ebp - 0x49c]
mov dword [eax + 0x14120], 4
jmp case.default.0x49bd21
cmp dword [0x5340b8], 0
je 0x49bfb0
push 6
call fcn.004a9808
add esp, 4
push 1
push 5
lea ecx, [ebp - 0x484]
call fcn.00465920
push 0x52fa5c
push 0x104
lea ecx, [ebp - 0x23c]
push ecx
push 0x5307ac
push str.backright_wavefile
push 0x520e00
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [ebp - 0x23c]
push edx
lea eax, [ebp - 0x444]
push eax
call fcn.004ba770
add esp, 8
mov dword [ebp - 0x470], 6
mov ecx, dword [ebp - 0x49c]
mov dword [ecx + 0x14124], 5
mov edx, dword [ebp - 0x49c]
mov dword [edx + 0x14120], 5
jmp case.default.0x49bd21
push 1
push 6
lea ecx, [ebp - 0x484]
call fcn.00465920
push 0x52fa5c
push 0x104
lea eax, [ebp - 0x23c]
push eax
push 0x5307b0
push str.sideleft_wavefile
push 0x520e44
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x23c]
push ecx
lea edx, [ebp - 0x444]
push edx
call fcn.004ba770
add esp, 8
mov dword [ebp - 0x470], 8
mov eax, dword [ebp - 0x49c]
mov dword [eax + 0x14124], 6
mov ecx, dword [ebp - 0x49c]
mov dword [ecx + 0x14120], 6
jmp case.default.0x49bd21
push 1
push 7
lea ecx, [ebp - 0x484]
call fcn.00465920
push 0x52fa5c
push 0x104
lea edx, [ebp - 0x23c]
push edx
push 0x5307b4
push str.sideright_wavefile
push str.SPEAKER_WINDOW
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x444]
push ecx
call fcn.004ba770
add esp, 8
mov dword [ebp - 0x470], 8
mov edx, dword [ebp - 0x49c]
mov dword [edx + 0x14124], 7
mov eax, dword [ebp - 0x49c]
mov dword [eax + 0x14120], 7
push 0
push 0xc8
push 1
mov ecx, dword [ebp - 0x49c]
call fcn.00451bd0
mov ecx, dword [ebp - 0x49c]
mov dword [ecx + 0x190c], eax
cmp dword [ebp + 0xc], 0
je 0x49c146
mov dword [ebp - 0x470], 8
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x444]
push ecx
call fcn.004a8b24
add esp, 0xc
mov word [ebp - 0x46c], 0xfffe
mov dx, word [ebp - 0x470]
mov word [ebp - 0x46a], dx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x468], eax
mov ecx, dword [ebp - 0x26]
and ecx, 0xffff
mov edx, dword [ebp - 0x30]
imul edx, ecx
imul edx, dword [ebp - 0x470]
mov dword [ebp - 0x464], edx
mov eax, dword [ebp - 0x28]
and eax, 0xffff
imul eax, dword [ebp - 0x470]
mov word [ebp - 0x460], ax
mov cx, word [ebp - 0x26]
mov word [ebp - 0x45e], cx
mov word [ebp - 0x45c], 0x16
mov edx, dword [ebp - 0x46a]
and edx, 0xffff
cmp edx, 2
jne 0x49c1e0
mov dword [ebp - 0x458], 3
jmp 0x49c249
mov eax, dword [ebp - 0x46a]
and eax, 0xffff
cmp eax, 4
jne 0x49c1fc
mov dword [ebp - 0x458], 0x107
jmp 0x49c249
mov ecx, dword [ebp - 0x46a]
and ecx, 0xffff
cmp ecx, 6
jne 0x49c219
mov dword [ebp - 0x458], 0x3f
jmp 0x49c249
mov edx, dword [ebp - 0x46a]
and edx, 0xffff
cmp edx, 8
jne 0x49c249
cmp dword [0x5340b8], 0
je 0x49c23f
mov dword [ebp - 0x458], 0x63f
jmp 0x49c249
mov dword [ebp - 0x458], 0xff
mov eax, dword [0x50cd08]
mov dword [ebp - 0x454], eax
mov ecx, dword [0x50cd0c]
mov dword [ebp - 0x450], ecx
mov edx, dword [0x50cd10]
mov dword [ebp - 0x44c], edx
mov eax, dword [0x50cd14]
mov dword [ebp - 0x448], eax
mov ecx, 1
test ecx, ecx
je 0x49c28c
mov dword [ebp - 0x4ac], 0
jmp 0x49c29f
push 0x520eac
call fcn.0040d5a0
add esp, 4
mov dword [ebp - 0x4ac], eax
mov edx, 1
test edx, edx
je 0x49c2b4
mov dword [ebp - 0x4b0], 0
jmp 0x49c2ce
mov eax, dword [ebp - 0x49c]
add eax, 0xf60
push eax
call fcn.0040d5a0
add esp, 4
mov dword [ebp - 0x4b0], eax
cmp dword [ebp + 8], 0xf
je 0x49c2da
cmp dword [ebp + 8], 0x10
jne 0x49c302
push 0x533a54
mov ecx, dword [ebp - 0x49c]
mov ecx, dword [ecx + 0x1411c]
call fcn.00464550
mov edx, dword [ebp - 0x49c]
mov dword [edx + 0x14134], 1
jmp 0x49c32f
mov eax, dword [ebp - 0x49c]
add eax, 0xf60
push eax
mov ecx, dword [ebp - 0x49c]
mov ecx, dword [ecx + 0x1411c]
call fcn.00464550
mov edx, dword [ebp - 0x49c]
mov dword [edx + 0x14134], 0
lea eax, [ebp - 0x46c]
push eax
mov ecx, dword [ebp - 0x49c]
mov ecx, dword [ecx + 0x1411c]
call fcn.004646b9
cmp dword [ebp + 0xc], 0
jne 0x49c456
push 0
push 0
push 1
lea edx, [ebp - 0x444]
push edx
push 0
mov eax, dword [ebp - 0x49c]
mov ecx, dword [eax + 0x1411c]
call fcn.00464711
push 0
push 0
push 1
lea ecx, [ebp - 0x444]
push ecx
push 1
mov edx, dword [ebp - 0x49c]
mov ecx, dword [edx + 0x1411c]
call fcn.00464711
push 0
push 0
push 1
lea eax, [ebp - 0x444]
push eax
push 2
mov ecx, dword [ebp - 0x49c]
mov ecx, dword [ecx + 0x1411c]
call fcn.00464711
push 0
push 0
push 1
lea edx, [ebp - 0x444]
push edx
push 3
mov eax, dword [ebp - 0x49c]
mov ecx, dword [eax + 0x1411c]
call fcn.00464711
push 0
push 0
push 1
lea ecx, [ebp - 0x444]
push ecx
push 4
mov edx, dword [ebp - 0x49c]
mov ecx, dword [edx + 0x1411c]
call fcn.00464711
push 0
push 0
push 1
lea eax, [ebp - 0x444]
push eax
push 5
mov ecx, dword [ebp - 0x49c]
mov ecx, dword [ecx + 0x1411c]
call fcn.00464711
push 0
push 0
push 1
lea edx, [ebp - 0x444]
push edx
push 6
mov eax, dword [ebp - 0x49c]
mov ecx, dword [eax + 0x1411c]
call fcn.00464711
push 0
push 0
push 1
lea ecx, [ebp - 0x444]
push ecx
push 7
mov edx, dword [ebp - 0x49c]
mov ecx, dword [edx + 0x1411c]
call fcn.00464711
jmp 0x49c626
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x488]
push ecx
lea edx, [ebp - 0x444]
push edx
call fcn.004a8ce1
add esp, 0xc
mov eax, dword [ebp - 0x49c]
cmp dword [eax + 0x1413c], 0
jne 0x49c4be
mov ecx, dword [ebp - 0x488]
shl ecx, 3
push ecx
call fcn.004bb305
add esp, 4
mov edx, dword [ebp - 0x49c]
mov dword [edx + 0x1413c], eax
mov eax, dword [ebp - 0x488]
shl eax, 3
push eax
push 0
mov ecx, dword [ebp - 0x49c]
mov edx, dword [ecx + 0x1413c]
push edx
call fcn.004ba860
add esp, 0xc
mov eax, dword [ebp - 0x488]
push eax
push 2
push 0
push 1
mov ecx, dword [ebp - 0x49c]
mov edx, dword [ecx + 0x1413c]
push edx
push 0
mov eax, dword [ebp - 0x49c]
mov ecx, dword [eax + 0x1411c]
call fcn.004647b5
mov ecx, dword [ebp - 0x488]
push ecx
push 2
push 0
push 1
mov edx, dword [ebp - 0x49c]
mov eax, dword [edx + 0x1413c]
push eax
push 1
mov ecx, dword [ebp - 0x49c]
mov ecx, dword [ecx + 0x1411c]
call fcn.004647b5
mov edx, dword [ebp - 0x488]
push edx
push 2
push 0
push 1
mov eax, dword [ebp - 0x49c]
mov ecx, dword [eax + 0x1413c]
push ecx
push 2
mov edx, dword [ebp - 0x49c]
mov ecx, dword [edx + 0x1411c]
call fcn.004647b5
mov eax, dword [ebp - 0x488]
push eax
push 2
push 0
push 1
mov ecx, dword [ebp - 0x49c]
mov edx, dword [ecx + 0x1413c]
push edx
push 3
mov eax, dword [ebp - 0x49c]
mov ecx, dword [eax + 0x1411c]
call fcn.004647b5
mov ecx, dword [ebp - 0x488]
push ecx
push 2
push 0
push 1
mov edx, dword [ebp - 0x49c]
mov eax, dword [edx + 0x1413c]
push eax
push 4
mov ecx, dword [ebp - 0x49c]
mov ecx, dword [ecx + 0x1411c]
call fcn.004647b5
mov edx, dword [ebp - 0x488]
push edx
push 2
push 0
push 1
mov eax, dword [ebp - 0x49c]
mov ecx, dword [eax + 0x1413c]
push ecx
push 5
mov edx, dword [ebp - 0x49c]
mov ecx, dword [edx + 0x1411c]
call fcn.004647b5
mov eax, dword [ebp - 0x488]
push eax
push 2
push 0
push 1
mov ecx, dword [ebp - 0x49c]
mov edx, dword [ecx + 0x1413c]
push edx
push 6
mov eax, dword [ebp - 0x49c]
mov ecx, dword [eax + 0x1411c]
call fcn.004647b5
mov ecx, dword [ebp - 0x488]
push ecx
push 2
push 0
push 1
mov edx, dword [ebp - 0x49c]
mov eax, dword [edx + 0x1413c]
push eax
push 7
mov ecx, dword [ebp - 0x49c]
mov ecx, dword [ecx + 0x1411c]
call fcn.004647b5
lea edx, [ebp - 0x484]
push edx
mov eax, dword [ebp - 0x49c]
mov ecx, dword [eax + 0x1411c]
call fcn.0046486f
push 0
mov ecx, dword [ebp - 0x49c]
mov ecx, dword [ecx + 0x1411c]
call fcn.004648cb
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x484]
call fcn.004cb2f1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8