Function at 0x2112f6e0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x2118b29c]
sub esp, 0x120
test eax, eax
push ebx
push ebp
push esi
push edi
jne 0x2112fad5
mov ebx, dword [esp + 0x134]
cmp dword [ebx + 0x1760], eax
je 0x2112fad5
lock inc dword [0x2118b3a4]
mov ecx, dword [0x2118b3a4]
cmp ecx, 1
jne 0x2112fab3
lock inc dword [0x2118b1f8]
cmp dword [0x2116569c], eax
je 0x2112f7a9
mov edx, dword [ebx + 0x18f8]
mov eax, dword [ebx + 0x18f4]
cmp edx, eax
je 0x2112faac
jmp 0x2112f750
mov eax, dword [ebx + 0x18f8]
mov ecx, dword [ebx + 0x18f0]
mov ecx, dword [ecx + eax*4]
add eax, 1
cdq
idiv dword [ebx + 0x18ec]
mov dword [ebx + 0x18f8], edx
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + 4]
mov ecx, dword [eax]
push ecx
mov eax, ebx
call fcn.2112f420
mov edx, dword [ebx + 0x18f8]
mov eax, dword [ebx + 0x18f4]
add esp, 4
cmp edx, eax
jne 0x2112f750
jmp 0x2112faac
cmp dword [0x211656a8], 0
je 0x2112f7b9
lock inc dword [0x2118b208]
mov esi, dword [ebx + 0x1970]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.2112ed10
add esp, 8
neg eax
sbb eax, eax
add eax, 1
mov dword [ebx + 0x1994], eax
cmp dword [0x211656a8], 0
je 0x2112f7ee
lock dec dword [0x2118b208]
call sym.mss32.dll__AIL_ms_count_0
mov edi, dword [esp + 0x28]
cmp edi, dword [ebx + 0x1998]
mov ebp, dword [esp + 0x2c]
mov esi, eax
mov dword [esp + 0x24], esi
jne 0x2112f8d2
cmp ebp, dword [ebx + 0x199c]
jne 0x2112f8d2
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esp + 0x2c], eax
sub eax, dword [ebx + 0x19a0]
cmp eax, 0x80
jbe 0x2112f8ea
call fcn.2112ebf0
mov eax, dword [ebx + 0x1970]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x48]
push eax
call edx
mov esi, ebx
call fcn.2112edb0
mov esi, eax
test esi, esi
je 0x2112f88a
mov edi, dword [ebx + 0x196c]
call fcn.2112e380
mov eax, dword [ebx + 0x196c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x28]
mov dword [ebx + 0x196c], esi
mov dword [ebx + 0x1970], esi
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
push ecx
push esi
call edx
mov edi, dword [esp + 0x28]
mov eax, dword [ebx + 0x1970]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x30]
push 1
push 0
push 0
push eax
call edx
call fcn.2112ec10
mov eax, dword [esp + 0x24]
push ebp
push edi
push eax
lea ecx, [esp + 0x3c]
push str.Warning:_DirectSound_playback_reset_due_to_non_moving_playback_cursor__buggy_sound_driver__time:__i_play:__i_write:__i._n
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
jmp 0x2112f8e4
mov dword [ebx + 0x1998], edi
mov dword [ebx + 0x199c], ebp
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [ebx + 0x19a0], eax
mov ecx, dword [ebx + 0x197c]
xor edx, edx
mov eax, ebp
div ecx
mov ecx, eax
add ecx, 1
cmp ecx, dword [ebx + 0x1984]
jge 0x2112f916
mov eax, dword [ebx + 0x1980]
cdq
idiv dword [ebx + 0x1978]
mov dword [ebx + 0x1980], edx
mov edx, esi
sub edx, dword [ebx + 0x1988]
mov dword [ebx + 0x1984], ecx
cmp edx, dword [ebx + 0x198c]
jg 0x2112f93e
mov eax, dword [ebx + 0x1980]
cmp eax, ecx
jl 0x2112f93e
sub eax, ecx
mov dword [esp + 0x24], eax
jmp 0x2112f94c
mov dword [esp + 0x24], 0
mov dword [ebx + 0x1980], ecx
cmp dword [ebx + 0x1908], 0
mov dword [ebx + 0x1988], esi
mov edi, dword [0x21165708]
je 0x2112f963
add edi, edi
mov ecx, dword [ebx + 0x1978]
mov eax, dword [ebx + 0x1980]
add eax, ecx
cdq
idiv ecx
mov eax, dword [esp + 0x28]
mov esi, edx
xor edx, edx
div dword [ebx + 0x197c]
cmp eax, esi
jl 0x2112f98a
sub eax, esi
jmp 0x2112f990
sub ecx, esi
add ecx, eax
mov eax, ecx
mov ecx, dword [esp + 0x24]
mov edx, edi
sub edx, ecx
cmp edx, eax
jle 0x2112f99f
lea edi, [eax + ecx]
cmp ecx, edi
jge 0x2112faac
sub edi, ecx
lea esp, [esp]
mov esi, dword [ebx + 0x1978]
mov eax, dword [ebx + 0x1980]
add eax, esi
cdq
idiv esi
mov ecx, dword [ebx + 0x197c]
imul edx, ecx
cmp dword [0x211656a8], 0
je 0x2112f9da
lock inc dword [0x2118b208]
mov eax, dword [ebx + 0x1970]
mov esi, dword [eax]
push 0
lea ebp, [esp + 0x1c]
push ebp
lea ebp, [esp + 0x28]
push ebp
lea ebp, [esp + 0x28]
push ebp
lea ebp, [esp + 0x24]
push ebp
push ecx
push edx
push eax
mov eax, dword [esi + 0x2c]
call eax
cmp dword [0x211656a8], 0
je 0x2112fa10
lock dec dword [0x2118b208]
cmp eax, 0x88780096
jne 0x2112fa47
cmp dword [0x211656a8], 0
je 0x2112fa27
lock inc dword [0x2118b208]
mov eax, dword [ebx + 0x1970]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push eax
call edx
cmp dword [0x211656a8], 0
je 0x2112fa9c
lock dec dword [0x2118b208]
jmp 0x2112fa9c
test eax, eax
jne 0x2112fa9c
mov eax, dword [esp + 0x14]
push eax
mov eax, ebx
call fcn.2112f420
add esp, 4
cmp dword [0x211656a8], 0
je 0x2112fa6a
lock inc dword [0x2118b208]
mov edx, dword [esp + 0x18]
mov eax, dword [ebx + 0x1970]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x4c]
call eax
cmp dword [0x211656a8], 0
je 0x2112fa9c
lock dec dword [0x2118b208]
add dword [ebx + 0x1980], 1
sub edi, 1
jne 0x2112f9b0
lock dec dword [0x2118b1f8]
lock dec dword [0x2118b3a4]
mov eax, dword [0x2118b3bc]
mov ecx, eax
and cl, 7
add eax, 1
test cl, cl
mov dword [0x2118b3bc], eax
jne 0x2112fad5
call fcn.2112f540
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret 4