Function at 0x4968d0
Capabilities:
Terminate thread

Disassembly:
sub esp, 0x38
mov al, byte [0xa26400]
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x10], edi
test al, 1
jne 0x496918
mov dl, al
push 0x496e00
or dl, 1
mov dword [0xa26448], ebx
mov byte [0xa26400], dl
mov dword [0xa2644c], ebx
mov dword [0xa26450], ebx
mov dword [0xa26454], ebx
call fcn.006132e0
add esp, 4
mov cl, byte [0xa26400]
mov al, 2
test al, cl
jne 0x496953
mov dl, cl
push 0x496df0
or dl, al
mov dword [0xa264d0], ebx
mov byte [0xa26400], dl
mov dword [0xa264d4], ebx
mov dword [0xa264d8], ebx
mov dword [0xa264dc], ebx
call fcn.006132e0
add esp, 4
mov cl, byte [0xa26400]
mov al, 4
test al, cl
jne 0x496976
mov dl, cl
push 0x496de0
or dl, al
mov byte [0xa26400], dl
call fcn.006132e0
add esp, 4
cmp dword [edi + 0x10], ebx
je 0x496dd6
cmp dword [0x6485e8], ebx
je 0x496dd6
push 0xa264e8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x93c]
cmp eax, ebx
je 0x4969a8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xa264e8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0xa264e8
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [0xa264a4]
mov edx, dword [0xa264a8]
mov eax, dword [0xa264ac]
mov esi, dword [0xa264b0]
mov dword [0xa26448], ecx
mov ecx, dword [0xa264b4]
mov dword [0xa2644c], edx
mov edx, dword [0xa264b8]
mov dword [esp + 0x28], ecx
mov ecx, dword [0xa264bc]
mov dword [esp + 0x2c], edx
mov edx, dword [0xa264c0]
cmp eax, ecx
mov dword [0xa26450], eax
mov dword [0xa26454], esi
mov dword [esp + 0x34], edx
je 0x496b3b
jmp 0x496a1c
xor ebx, ebx
mov esi, dword [eax]
cmp dword [esi + 0x10], 1
jne 0x496a44
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x496a34
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 4], ebx
mov eax, dword [esi]
cmp eax, ebx
je 0x496a64
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esi], ebx
jmp 0x496a64
mov edi, dword [esi + 8]
mov ecx, edi
call dword [sym.imp.MyDivX.dll_public:_int___thiscall_OGGAudio::StopOGGAudio_void_]
cmp edi, ebx
je 0x496a64
mov ecx, edi
call dword [sym.imp.MyDivX.dll_public:_void___thiscall_OGGAudio::destructor_void_]
push edi
call fcn.006066eb
add esp, 4
push esi
call fcn.006066eb
mov eax, dword [0xa26448]
mov ecx, dword [0xa2644c]
mov ebp, dword [0xa26454]
mov edx, dword [0xa26450]
add esp, 4
mov esi, eax
mov dword [esp + 0x18], eax
mov edi, ecx
mov dword [esp + 0x1c], ecx
mov eax, ebp
push 1
lea ecx, [esp + 0x1c]
mov ebx, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
call fcn.00424a50
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
sub esp, 0x10
mov ecx, esp
sub esp, 0x10
mov dword [ecx], edx
mov edx, dword [esp + 0x40]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x44]
mov dword [ecx + 8], edx
lea edx, [esp + 0x58]
mov dword [ecx + 0xc], eax
mov ecx, esp
push edx
mov dword [ecx], esi
mov dword [ecx + 4], edi
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebp
mov ecx, 0xa264a0
call fcn.0049a2b0
mov ecx, eax
mov edx, dword [ecx]
mov dword [0xa26448], edx
mov edx, dword [0xa264b4]
mov eax, dword [ecx + 4]
mov dword [esp + 0x28], edx
mov dword [0xa2644c], eax
mov edx, dword [0xa264c0]
mov eax, dword [ecx + 8]
mov dword [esp + 0x34], edx
mov dword [0xa26450], eax
mov ecx, dword [ecx + 0xc]
mov dword [0xa26454], ecx
mov ecx, dword [0xa264b8]
mov dword [esp + 0x2c], ecx
mov ecx, dword [0xa264bc]
cmp eax, ecx
jne 0x496a1a
mov edi, dword [esp + 0x10]
xor ebx, ebx
mov ecx, dword [0xa26414]
mov edx, dword [0xa26418]
mov eax, dword [0xa2641c]
mov esi, dword [0xa26420]
mov dword [0xa264d0], ecx
mov ecx, dword [0xa26424]
mov dword [0xa264d4], edx
mov edx, dword [0xa26428]
mov dword [esp + 0x28], ecx
mov ecx, dword [0xa2642c]
mov dword [esp + 0x2c], edx
mov edx, dword [0xa26430]
cmp eax, ecx
mov dword [0xa264d8], eax
mov dword [0xa264dc], esi
mov dword [esp + 0x34], edx
je 0x496cb8
jmp 0x496b99
xor ebx, ebx
mov esi, dword [eax]
cmp dword [esi + 0x10], 1
jne 0x496bc1
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x496bb1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 4], ebx
mov eax, dword [esi]
cmp eax, ebx
je 0x496be1
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esi], ebx
jmp 0x496be1
mov edi, dword [esi + 8]
mov ecx, edi
call dword [sym.imp.MyDivX.dll_public:_int___thiscall_OGGAudio::StopOGGAudio_void_]
cmp edi, ebx
je 0x496be1
mov ecx, edi
call dword [sym.imp.MyDivX.dll_public:_void___thiscall_OGGAudio::destructor_void_]
push edi
call fcn.006066eb
add esp, 4
push esi
call fcn.006066eb
mov eax, dword [0xa264d0]
mov ecx, dword [0xa264d4]
mov ebx, dword [0xa264dc]
mov edx, dword [0xa264d8]
add esp, 4
mov esi, eax
mov dword [esp + 0x18], eax
mov edi, ecx
mov dword [esp + 0x1c], ecx
mov eax, ebx
push 1
lea ecx, [esp + 0x1c]
mov ebp, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
call fcn.00424a50
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
sub esp, 0x10
mov ecx, esp
sub esp, 0x10
mov dword [ecx], edx
mov edx, dword [esp + 0x40]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x44]
mov dword [ecx + 8], edx
lea edx, [esp + 0x58]
mov dword [ecx + 0xc], eax
mov ecx, esp
push edx
mov dword [ecx], esi
mov dword [ecx + 4], edi
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], ebx
mov ecx, 0xa26410
call fcn.0049a2b0
mov ecx, eax
mov edx, dword [ecx]
mov dword [0xa264d0], edx
mov edx, dword [0xa26424]
mov eax, dword [ecx + 4]
mov dword [esp + 0x28], edx
mov dword [0xa264d4], eax
mov edx, dword [0xa26430]
mov eax, dword [ecx + 8]
mov dword [esp + 0x34], edx
mov dword [0xa264d8], eax
mov ecx, dword [ecx + 0xc]
mov dword [0xa264dc], ecx
mov ecx, dword [0xa26428]
mov dword [esp + 0x2c], ecx
mov ecx, dword [0xa2642c]
cmp eax, ecx
jne 0x496b97
mov edi, dword [esp + 0x10]
xor ebx, ebx
mov ecx, dword [0xa26464]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [0xa26404], eax
je 0x496cfb
mov eax, dword [eax + 0x10]
mov ecx, edi
push eax
call fcn.00497cb0
mov ecx, dword [0xa26404]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, 0xa26460
call fcn.0049ab20
mov eax, dword [eax]
mov ecx, dword [0xa26464]
cmp eax, ecx
mov dword [0xa26404], eax
jne 0x496cc9
mov dword [0x6485e8], ebx
mov eax, dword [edi + 0x1c]
cmp eax, ebx
je 0x496d11
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi + 0x1c], ebx
mov eax, dword [edi + 0x92c]
cmp eax, ebx
je 0x496d27
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [edi + 0x92c], ebx
cmp dword [edi + 0x938], ebx
je 0x496d3f
mov eax, dword [edi + 0x18]
cmp eax, ebx
je 0x496d3f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi + 0x18], ebx
cmp dword [edi + 0x934], ebx
je 0x496d57
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x496d57
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [edi + 0x14], ebx
mov eax, dword [0x6a06c8]
push eax
mov ecx, dword [eax]
lea eax, [esp + 0x14]
push ecx
push eax
mov ecx, 0x6a06c4
call fcn.0043db00
mov ecx, dword [edi + 0x968]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [esp + 0x14], eax
je 0x496dbc
mov esi, dword [eax + 0x10]
cmp esi, ebx
je 0x496da5
mov eax, dword [esi]
cmp eax, ebx
je 0x496d9c
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
mov eax, dword [esi]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov dword [esi], ebx
push esi
call fcn.006066eb
add esp, 4
lea ecx, [esp + 0x14]
call fcn.0049ba40
mov ecx, dword [edi + 0x968]
mov eax, dword [esp + 0x14]
cmp eax, ecx
jne 0x496d7f
mov eax, dword [edi + 0x968]
lea ecx, [edi + 0x964]
push eax
mov edx, dword [eax]
lea eax, [esp + 0x14]
push edx
push eax
call fcn.0049a130
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret