Function at 0x4410f0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x17c
xor eax, eax
push ebx
push ebp
xor ebp, ebp
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov eax, dword [0x52b40c]
push esi
lea ecx, [eax + 0x4238]
push edi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x1c], ecx
cmp dword [eax + 0x1ed0], ebp
je 0x44117b
xor esi, esi
jmp 0x441155
mov eax, dword [0x52b40c]
lea ebx, [esi + eax + 0x4a34]
call fcn.00472750
add esi, 0x1adc
cmp esi, 0x35b8
jl 0x441150
call fcn.004728b0
mov eax, dword [0x52b40c]
xor ebp, ebp
xor ecx, ecx
add eax, 0x10fb8
mov dword [esp + ecx*4 + 0x58], eax
inc ecx
add eax, 0x34
cmp ecx, 2
jl 0x441182
mov edx, dword [0x52b844]
mov eax, dword [0x52b840]
push ebp
push 2
push edx
mov esi, 0x3c
push eax
mov dword [0x52aec0], esi
mov dword [0x52b848], esi
call fcn.0049a610
push ebp
add eax, 1
push esi
adc edx, ebp
push edx
push eax
call fcn.0049a560
push ebp
push 2
push edx
push eax
call fcn.0049a560
mov dword [0x52aea8], eax
mov dword [0x52aeac], edx
cmp dword [0x52b3cc], ebp
je 0x4411f5
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
jmp 0x4411fd
call dword [sym.imp.WINMM.dll_timeGetTime]
xor ecx, ecx
sub eax, dword [0x52aeb0]
mov dword [0x52b3c0], ebp
sbb ecx, dword [0x52aeb4]
inc dword [0x52b3d0]
mov dword [0x52b3b8], eax
mov dword [0x52b3bc], ecx
mov dword [0x52b3c4], ebp
call fcn.0040f180
mov dword [0x52a9ec], ebp
mov dword [0x52a9e8], ebp
mov dword [0x52adf4], ebp
mov dword [0x52adf0], ebp
call fcn.00411cf0
mov edx, dword [0x52b40c]
mov dword [0x52b33c], ebp
mov dword [0x52b338], ebp
mov edx, dword [edx + 0x80a0]
call fcn.00434ee0
xor ecx, ecx
call fcn.004354b0
mov esi, dword [0x52b40c]
mov eax, dword [esi + 0x10578]
push eax
call fcn.00406150
mov edi, dword [esi + 0xfcb4]
add esp, 4
call fcn.00445540
mov ebx, dword [0x52b40c]
lea esi, [ebx + 0x107b0]
cmp dword [0x4aa254], ebp
je 0x44131a
push 0x4aa294
call dword [sym.imp.pthreadVC2.dll_pthread_mutex_lock]
add esp, 4
call dword [0x4aa278]
push 0x220
mov ebp, eax
call dword [sym.imp.MSVCR90.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4412fa
mov ecx, 0x88
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x4aa288]
cmp ecx, 0x10
jne 0x44136f
push ebp
push str.BGM_command_queue_capacity_exceeded_at_time__ld
call fcn.00444320
add esp, 8
push ebx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
push 0x4aa294
call dword [sym.imp.pthreadVC2.dll_pthread_mutex_unlock]
mov ebx, dword [0x52b40c]
add esp, 4
mov dword [0x52a444], 1
xor ebp, ebp
lea ecx, [esp + 0x60]
mov dword [esp + 0x14], ecx
lea edi, [ebx + 0x4a3c]
mov dword [esp + 0x28], 2
mov eax, dword [edi]
cmp eax, ebp
jle 0x4413b9
mov ecx, dword [esp + 0x14]
lea edx, [edi + 8]
mov esi, eax
mov eax, dword [edx]
cmp eax, 0xffffffff
je 0x4413ac
mov ebp, dword [ebx + 0x1e60]
imul eax, eax, 0xe64
mov eax, dword [eax + ebp + 0xa14]
imul eax, eax, 0x440
add eax, dword [0x52aed0]
xor ebp, ebp
mov dword [ecx], eax
jmp 0x4413ae
mov esi, dword [esp + 0x5c]
lea eax, [ecx + ecx*2]
add eax, eax
add eax, eax
add eax, eax
mov edx, 1
mov dword [eax + 0x4aa298], edx
mov dword [eax + 0x4aa29c], ebp
mov dword [eax + 0x4aa2a0], ebx
add ecx, edx
mov dword [eax + 0x4aa2a4], esi
mov dword [eax + 0x4aa2a8], edx
mov dword [0x4aa288], ecx
jmp 0x4412fa
mov dword [ecx], ebp
add ecx, 4
add edx, 0x14
sub esi, 1
jne 0x441343
add dword [esp + 0x14], 0x10
add edi, 0x1adc
sub dword [esp + 0x28], 1
jne 0x441330
mov dword [ebx + 0x10eb0], ebp
mov dword [ebx + 0x10eb4], ebp
cmp dword [0x52b3cc], ebp
je 0x4413f8
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
jmp 0x441400
call dword [sym.imp.WINMM.dll_timeGetTime]
xor ecx, ecx
sub eax, dword [0x52aeb0]
mov edx, dword [esp + 0x1c]
sbb ecx, dword [0x52aeb4]
inc dword [0x52b3d0]
mov dword [0x52b3b8], eax
mov eax, dword [edx]
mov dword [0x52b3bc], ecx
mov dword [0x52b3c0], ebp
mov dword [0x52b3c4], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x4c], eax
jmp 0x441440
xor ebx, ebx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x28], ebp
call fcn.0040f180
mov eax, dword [0x52a9e8]
cmp eax, dword [0x52a9ec]
je 0x441486
cmp dword [0x52b358], ebp
jne 0x441468
xor ecx, ecx
jmp 0x441482
mov ecx, dword [eax*4 + 0x52a5e8]
inc eax
cmp eax, 0x100
mov dword [0x52a9e8], eax
jl 0x441482
mov dword [0x52a9e8], ebp
mov dword [esp + 0x34], ecx
call fcn.00415050
test eax, eax
je 0x4414cc
cmp dword [0x52b360], ebp
jne 0x44149b
xor eax, eax
jmp 0x4414c8
mov eax, dword [0x52adf0]
cmp eax, dword [0x52adf4]
je 0x441cf2
mov ecx, dword [eax*4 + 0x52a9f0]
inc eax
cmp eax, 0x100
mov dword [0x52adf0], eax
jl 0x4414c6
mov dword [0x52adf0], ebp
mov eax, ecx
mov dword [esp + 0x28], eax
lea esi, [esp + 0x34]
call fcn.00443c30
call fcn.00411ec0
test eax, eax
je 0x441522
cmp dword [0x52b360], ebp
jne 0x4414f2
cmp dword [0x52b358], ebp
jne 0x4414f2
xor ebx, ebx
jmp 0x441522
mov eax, dword [0x52b338]
cmp eax, dword [0x52b33c]
je 0x441cf0
mov ecx, dword [0x52b334]
mov ecx, dword [ecx + eax*4]
inc eax
cmp eax, dword [0x52b340]
mov dword [0x52b338], eax
jl 0x441520
mov dword [0x52b338], ebp
mov ebx, ecx
lea eax, [esp + 0x58]
call fcn.00411970
mov edi, dword [0x52b40c]
mov dword [esp + 0x54], edx
mov edx, dword [edi + 0x80bc]
mov esi, dword [edx]
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0xc]
shl eax, 4
push eax
push ebp
push ecx
call sub.MSVCR90.dll_memset
fldz
fst dword [esp + 8]
mov dword [esi + 8], ebp
fst dword [esp + 4]
mov dword [esi + 0x28], ebp
fst dword [esp]
mov dword [esi + 0x24], ebp
mov dword [esi + 0x20], ebp
mov ebx, dword [edi + 0x10578]
push ecx
fstp dword [esp]
call fcn.00405a50
mov ebx, dword [edi + 0x10578]
add esp, 0x10
call fcn.00405d80
cmp dword [esp + 0x3c], ebp
je 0x4415f7
mov dword [edi + 0x10eb0], ebp
mov dword [edi + 0x10eb4], ebp
cmp dword [0x52b3cc], ebp
je 0x4415c0
lea edx, [esp + 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
jmp 0x4415c8
call dword [sym.imp.WINMM.dll_timeGetTime]
xor ecx, ecx
sub eax, dword [0x52aeb0]
mov edi, dword [0x52b40c]
sbb ecx, dword [0x52aeb4]
inc dword [0x52b3d0]
mov dword [0x52b3b8], eax
mov dword [0x52b3bc], ecx
mov dword [0x52b3c0], ebp
mov dword [0x52b3c4], ebp
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
cmp ecx, ebp
mov ebx, dword [0x52b34c]
mov esi, dword [esp + 0x2c]
jle 0x44163c
cmp dword [esp + 0x30], ebp
jne 0x44163c
mov eax, esi
shl eax, 8
cdq
idiv ecx
cmp dword [ebx + 0x10], eax
jne 0x441629
cmp dword [ebx + 0x14], eax
jne 0x441629
cmp dword [ebx + 0x18], eax
je 0x44163c
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x48], 1
mov dword [ebx + 0x50], ebp
mov eax, dword [esp + 0x1c]
cmp esi, dword [eax + 4]
jne 0x441650
mov edx, 1
mov dword [esp + 0x30], edx
jmp 0x441659
mov edx, dword [esp + 0x30]
cmp edx, 1
jne 0x441676
cmp dword [esp + 0x48], 0xffffffff
jne 0x441676
mov ecx, dword [eax]
sub ecx, dword [eax + 8]
cmp esi, ecx
jne 0x441676
mov edx, 2
mov dword [esp + 0x30], edx
mov dword [esp + 0x48], esi
mov ecx, dword [eax + 8]
cmp ecx, ebp
jle 0x4416b9
cmp edx, 2
jne 0x4416b9
mov eax, dword [esp + 0x48]
sub eax, esi
shl eax, 8
cdq
idiv ecx
add eax, 0x100
jns 0x441697
xor eax, eax
cmp dword [ebx + 0x10], eax
jne 0x4416a6
cmp dword [ebx + 0x14], eax
jne 0x4416a6
cmp dword [ebx + 0x18], eax
je 0x4416b9
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x48], 1
mov dword [ebx + 0x50], ebp
cmp dword [edi + 0x10eb4], ebp
jne 0x441b32
cmp dword [ebx + 0x48], ebp
je 0x44172b
mov eax, 0x24
lea ecx, [ebx + 0x24]
mov edx, ebx
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x4416ed
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4416d4
mov dword [ebx + 0x48], ebp
jmp 0x44172b
movzx eax, byte [edx]
movzx esi, byte [ecx]
sub eax, esi
jne 0x441719
movzx eax, byte [edx + 1]
movzx esi, byte [ecx + 1]
sub eax, esi
jne 0x441719
movzx eax, byte [edx + 2]
movzx esi, byte [ecx + 2]
sub eax, esi
jne 0x441719
movzx eax, byte [edx + 3]
movzx edx, byte [ecx + 3]
sub eax, edx
sar eax, 0x1f
or eax, 1
cmp eax, ebp
jne 0x441728
mov dword [ebx + 0x48], ebp
jmp 0x44172b
inc dword [ebx + 0x4c]
fld dword [edi + 0x1012c]
mov eax, dword [edi + 0x10578]
sub esp, 8
fstp dword [esp + 4]
fld dword [edi + 0x1012c]
fstp dword [esp]
call fcn.004059f0
mov eax, dword [edi + 0x10578]
push ebp
push eax
call fcn.00405cc0
mov edx, dword [esp + 0x2c]
add esp, 0x10
mov dword [esp + 0x20], ebp
mov ebp, dword [0x52b40c]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x60]
add edx, 0x38
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], edx
lea ecx, [ecx]
mov eax, dword [eax + ebp + 0x4a3c]
dec eax
cmp eax, 1
ja 0x4418bd
mov eax, dword [esp + 0x24]
mov edi, dword [eax]
test edi, edi
je 0x4418bd
mov eax, dword [edi + 0x438]
test eax, eax
je 0x4418bd
mov ecx, dword [eax]
mov ebx, 1
mov esi, 0x2328
call fcn.004032f0
cmp eax, 0xffffffff
je 0x4418bd
mov edx, dword [esp + 0x14]
fld dword [edi + 0x43c]
cmp dword [edx + 0x2c], 0
fstp dword [esp + 0x40]
mov ecx, dword [ebp + 0xfcb4]
mov eax, dword [edi + 0x438]
mov dword [esp + 0x18], ecx
jne 0x4418bd
push 0
push 0
push 0
push 0
push eax
mov eax, edx
push eax
push ecx
call fcn.00446790
mov ebp, dword [0x52b40c]
mov edi, eax
add esp, 0x1c
test edi, edi
jl 0x44182c
fld dword [esp + 0x40]
sub esp, 8
fstp dword [esp + 4]
fld dword [ebp + 0x1012c]
fstp dword [esp]
call fcn.00446b80
add esp, 8
cmp edi, 0xffffffff
je 0x4418bd
mov ecx, dword [esp + 0x18]
mov esi, dword [ecx]
mov ebx, edi
imul ebx, ebx, 0x108
add esi, ebx
cmp dword [esi + 0x3c], 0
jne 0x44185e
cmp dword [esi + 4], 1
jne 0x44185e
mov eax, edi
call fcn.00444bc0
mov ebp, dword [0x52b40c]
cmp dword [ebp + 0x10eb4], 0
jne 0x441876
push esi
call fcn.00444d90
mov ebp, dword [0x52b40c]
add esp, 4
mov dword [esi + 8], 1
mov esi, dword [esi + 0x40]
cmp esi, 1
jg 0x4418bd
cmp esi, 0xffffffff
je 0x4418bd
mov edx, dword [esp + 0x18]
mov esi, dword [edx]
add esi, ebx
cmp dword [esi], 0
je 0x4418bd
mov ebx, dword [esi + 0x7c]
test ebx, ebx
je 0x4418a9
call fcn.00417520
mov ebp, dword [0x52b40c]
xor eax, eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0x90], eax
mov dword [esi], eax
mov eax, dword [esp + 0x18]
dec dword [eax + 8]
mov eax, dword [esp + 0x20]
add dword [esp + 0x14], 0xcc
add dword [esp + 0x24], 0x10
add eax, 0x1adc
cmp eax, 0x35b8
mov dword [esp + 0x20], eax
jl 0x441780
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x60]
mov ecx, eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
add esi, 0x2c
nop
mov edx, dword [esp + 0x20]
mov edi, dword [esi - 4]
mov ebx, dword [esi]
lea eax, [edx + ebp + 0x4a3c]
mov dword [esp + 0x40], eax
mov eax, dword [eax]
sub eax, 1
je 0x44195b
sub eax, 1
jne 0x44197c
mov eax, dword [esp + 0x14]
xor ebp, ebp
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx]
test ecx, ecx
je 0x441945
push ebx
add ecx, 8
push edi
lea eax, [esi - 0x20]
push ecx
call fcn.0048f7a0
add esp, 0xc
mov edx, dword [esp + 0x40]
add edi, dword [esi + 4]
add ebx, dword [esi + 8]
add dword [esp + 0x24], 4
inc ebp
cmp ebp, dword [edx]
jl 0x44192a
jmp 0x441976
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
test ecx, ecx
je 0x44197c
push ebx
add ecx, 8
push edi
lea eax, [esi - 0x20]
push ecx
call fcn.0048f7a0
add esp, 0xc
mov ebp, dword [0x52b40c]
mov eax, dword [esp + 0x20]
mov ecx, 0x10
add dword [esp + 0x14], ecx
add dword [esp + 0x18], ecx
add eax, 0x1adc
add esi, 0xcc
cmp eax, 0x35b8
mov dword [esp + 0x20], eax
jl 0x441900
cmp dword [ebp + 0x4a14], 0
je 0x441aee
mov ecx, dword [ebp + 0x117d8]
mov esi, dword [esp + 0x1c]
push ecx
lea edx, [esi + 0x1ec]
push edx
lea eax, [esp + 0x90]
push 0x100
push eax
call dword [sym.imp.MSVCR90.dll__snprintf]
lea ecx, [esp + 0x98]
mov dword [esi + 0x22c], ecx
add esp, 0x10
add esi, 0x1a4
call fcn.0048d3f0
cmp dword [esi + 0x2c], 0
mov ebp, dword [0x52b40c]
mov ecx, dword [ebp + 0x1054c]
mov edx, dword [ebp + 0x10144]
mov edi, dword [ebp + 0xfcb4]
lea eax, [ebp + 0x10550]
jne 0x441ae0
push 0
push 0
push eax
push ecx
push edx
push esi
push edi
call fcn.00446790
mov ebp, dword [0x52b40c]
mov ebx, eax
add esp, 0x1c
test ebx, ebx
jl 0x441a53
fld1
sub esp, 8
fstp dword [esp + 4]
fld dword [ebp + 0x1012c]
fstp dword [esp]
call fcn.00446b80
add esp, 8
cmp ebx, 0xffffffff
je 0x441ae0
mov esi, dword [edi]
mov eax, ebx
imul eax, eax, 0x108
add esi, eax
cmp dword [esi + 0x3c], 0
mov dword [esp + 0x40], eax
jne 0x441a87
cmp dword [esi + 4], 1
jne 0x441a87
mov eax, ebx
mov ecx, edi
call fcn.00444bc0
mov ebp, dword [0x52b40c]
cmp dword [ebp + 0x10eb4], 0
jne 0x441a9f
push esi
call fcn.00444d90
mov ebp, dword [0x52b40c]
add esp, 4
mov dword [esi + 8], 1
mov esi, dword [esi + 0x40]
cmp esi, 1
jg 0x441ae0
cmp esi, 0xffffffff
je 0x441ae0
mov esi, dword [edi]
add esi, dword [esp + 0x40]
cmp dword [esi], 0
je 0x441ae0
mov ebx, dword [esi + 0x7c]
test ebx, ebx
je 0x441ad0
call fcn.00417520
mov ebp, dword [0x52b40c]
xor eax, eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0x90], eax
mov dword [esi], eax
dec dword [edi + 8]
mov edx, dword [esp + 0x1c]
mov dword [edx + 0x22c], 0
fld dword [ebp + 0x1012c]
mov eax, dword [ebp + 0x10578]
sub esp, 8
fstp dword [esp + 4]
fld dword [ebp + 0x1012c]
fstp dword [esp]
call fcn.004059f0
mov eax, dword [ebp + 0x10578]
push 1
push eax
call fcn.00405cc0
mov edi, dword [0x52b40c]
mov ebx, dword [0x52b34c]
mov esi, dword [esp + 0x3c]
add esp, 0x10
xor ebp, ebp
cmp dword [edi + 0x12048], ebp
je 0x441b6c
cmp dword [edi + 0x11668], ebp
je 0x441b4a
cmp dword [edi + 0x1168c], ebp
je 0x441b6c
mov eax, dword [edi + 0x80a8]
mov edi, dword [edi + 0x12058]
push 0x32
call fcn.00443dd0
mov edi, dword [0x52b40c]
mov ebx, dword [0x52b34c]
add esp, 4
cmp dword [esp + 0x34], 0x125
jne 0x441b87
call fcn.00444870
mov edi, dword [0x52b40c]
mov ebx, dword [0x52b34c]
cmp dword [edi + 0x1245c], ebp
jne 0x441ba0
call fcn.00437730
mov edi, dword [0x52b40c]
mov ebx, dword [0x52b34c]
cmp dword [edi + 0x10eb4], ebp
jne 0x441bdf
mov ebx, dword [edi + 0x80a4]
call fcn.004351b0
mov edi, dword [0x52b40c]
mov ebx, dword [0x52b34c]
cmp dword [edi + 0x10eb4], ebp
jne 0x441bdf
cmp dword [ebx + 0x48], ebp
je 0x441bdf
lea edi, [ebx + 0x24]
mov ecx, 9
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x2c]
mov dword [ebx + 0x48], ebp
call fcn.004447c0
mov edi, 1
add esi, edi
mov dword [esp + 0x2c], esi
cmp dword [esp + 0x3c], ebp
jne 0x441cf4
cmp esi, dword [esp + 0x4c]
jle 0x441c03
mov dword [esp + 0x3c], edi
test dword [esp + 0x50], 0xff0
je 0x441c2c
cmp dword [esp + 0x30], edi
jne 0x441c2c
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 8]
add eax, esi
mov dword [esp + 0x30], 2
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], eax
cmp dword [esp + 0x34], 0x1b
je 0x441c3b
cmp dword [0x52b0e4], ebp
je 0x441c76
cmp dword [esp + 0x38], ebp
jne 0x441c76
mov esi, dword [0x52b40c]
mov ebx, edi
add esi, 0x1ed0
lea edi, [esi + 4]
push edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call dword [sym.imp.pthreadVC2.dll_pthread_mutex_lock]
add esp, 4
cmp dword [esi + 8], ebp
je 0x441c6c
mov dword [esi + 0x14], ebx
push edi
call dword [sym.imp.pthreadVC2.dll_pthread_mutex_unlock]
add esp, 4
mov eax, dword [0x52b40c]
cmp dword [eax + 0x11668], ebp
je 0x441440
cmp dword [esp + 0x38], ebp
jne 0x441440
mov ecx, dword [esp + 0x34]
cmp ecx, ebp
je 0x441ca1
test ecx, 0x200
je 0x441cb9
cmp dword [esp + 0x28], ebp
je 0x441440
test dword [esp + 0x28], 0x100
jne 0x441440
lea esi, [eax + 0x1ed0]
mov ebx, 1
lea edi, [esi + 4]
push edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call dword [sym.imp.pthreadVC2.dll_pthread_mutex_lock]
add esp, 4
cmp dword [esi + 8], ebp
je 0x441ce1
mov dword [esi + 0x14], ebx
push edi
call dword [sym.imp.pthreadVC2.dll_pthread_mutex_unlock]
add esp, 4
jmp 0x441440
jmp 0x441cf0
jmp 0x441cf2
mov eax, dword [0x52b40c]
mov dword [eax + 0x10eb0], ebp
mov dword [eax + 0x10eb4], ebp
cmp dword [0x52b3cc], ebp
je 0x441d22
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
jmp 0x441d2a
call dword [sym.imp.WINMM.dll_timeGetTime]
xor ecx, ecx
sub eax, dword [0x52aeb0]
mov dword [0x52b3c0], ebp
sbb ecx, dword [0x52aeb4]
add dword [0x52b3d0], edi
mov dword [0x52b3b8], eax
mov dword [0x52b3bc], ecx
mov dword [0x52b3c4], ebp
cmp dword [0x4aa254], ebp
je 0x441dc5
push 0x4aa294
call dword [sym.imp.pthreadVC2.dll_pthread_mutex_lock]
add esp, 4
call dword [0x4aa278]
mov edx, dword [0x4aa288]
cmp edx, 0x10
jne 0x441d8a
push eax
push str.BGM_command_queue_capacity_exceeded_at_time__ld
call fcn.00444320
add esp, 8
jmp 0x441db1
lea ecx, [edx + edx*2]
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov dword [ecx + 0x4aa298], 2
add edx, edi
mov dword [ecx + 0x4aa29c], eax
mov dword [ecx + 0x4aa2a8], ebp
mov dword [0x4aa288], edx
push 0x4aa294
call dword [sym.imp.pthreadVC2.dll_pthread_mutex_unlock]
add esp, 4
mov dword [0x52a444], edi
call fcn.0040f180
mov dword [0x52a9ec], ebp
mov dword [0x52a9e8], ebp
mov dword [0x52adf4], ebp
mov dword [0x52adf0], ebp
call fcn.00411cf0
mov dword [0x52b33c], ebp
mov dword [0x52b338], ebp
call fcn.004729a0
mov eax, dword [0x52b34c]
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov ecx, 0x100
mov dword [eax + 0x48], edi
mov dword [eax + 0x50], edi
pop edi
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], ecx
xor eax, eax
cmp dword [esp + 0x34], ebp
pop esi
pop ebp
sete al
pop ebx
add esp, 0x17c
ret