Function at 0x50ef50
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x508
push ebp
push esi
mov esi, ecx
push edi
xor ebp, ebp
mov edi, dword [esi + 0xb30]
cmp edi, ebp
je 0x50f2e3
push ebx
mov eax, dword [edi]
cmp eax, ebp
je 0x50f2d5
mov ecx, dword [eax + 0x1c]
mov edx, dword [esi + 0xafc]
cmp ecx, edx
ja 0x50f0ea
cmp dword [eax + 8], ebp
jne 0x50f0ea
mov ebx, dword [eax + 4]
sub ebx, ebp
je 0x50f092
dec ebx
je 0x50f055
dec ebx
je 0x50efb1
mov dword [eax + 8], 2
jmp 0x50f0ea
mov eax, dword [eax]
push edx
push ecx
push eax
lea ecx, [esp + 0x20]
push str._d_s_snd__d___d__n
push ecx
call fcn.00613634
add esp, 0x14
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x6833d0]
mov ecx, dword [edi]
mov ebx, dword [eax + 0x98]
cmp ebx, ebp
je 0x50f049
mov edx, dword [ecx + 0x28]
lea eax, [esp + 0x414]
push edx
push str.campaign_s
push eax
call fcn.00613634
add esp, 0xc
lea ecx, [esp + 0x414]
push 6
push ebp
push ebp
push ecx
mov ecx, ebx
call fcn.0052ec10
cmp eax, 0xffffffff
je 0x50f03b
mov edx, dword [edi]
push eax
mov dword [edx + 8], 2
mov ecx, dword [edi]
mov dword [ecx + 0x30], eax
mov ecx, ebx
call fcn.0052f1f0
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [edi]
mov dword [edx + 0x38], eax
jmp 0x50f0ea
mov eax, dword [edi]
mov dword [eax + 8], 4
jmp 0x50f0ea
mov dword [ecx + 8], 4
jmp 0x50f0ea
mov dword [eax + 0x34], ebp
mov edx, dword [edi]
mov ebx, 1
mov dword [edx + 8], ebx
mov eax, dword [edi]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x10]
push ecx
mov ecx, dword [eax + 0xc]
push edx
mov edx, dword [esi + 0xafc]
push ecx
mov ecx, dword [eax + 0x1c]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x2c]
push str._d_s_pic__d___d____d__d_f_d_n
push eax
call fcn.00613634
add esp, 0x20
jmp 0x50f0c9
mov ebx, 1
mov dword [eax + 8], ebx
mov ecx, dword [edi]
mov dword [ecx + 0x34], ebp
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0xc]
push edx
mov edx, dword [esi + 0xafc]
push ecx
mov ecx, dword [eax + 0x1c]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x28]
push str._d_s_txt__d___d____d__d_n
push eax
call fcn.00613634
add esp, 0x1c
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebp, dword [esi + 0xb74]
mov edx, dword [esi]
xor eax, eax
cmp ebp, ebx
setle al
inc eax
mov ecx, esi
push eax
call dword [edx + 0x20]
mov eax, dword [edi]
mov ecx, 2
cmp dword [eax + 4], ecx
jne 0x50f152
cmp dword [eax + 8], ecx
jne 0x50f152
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, eax
mov eax, dword [edi]
mov dword [esp + 0x10], ecx
sub ecx, dword [eax + 0x38]
cmp ecx, 0x3e8
jb 0x50f152
mov ecx, dword [0x6833d0]
mov ebp, dword [ecx + 0x98]
test ebp, ebp
je 0x50f149
mov ebx, dword [eax + 0x30]
cmp ebx, 0xffffffff
je 0x50f149
push ebx
mov ecx, ebp
call fcn.0052f3f0
test eax, eax
jne 0x50f149
mov edx, dword [edi]
push ebx
mov ecx, ebp
mov dword [edx + 8], 4
call fcn.0052f070
mov eax, dword [edi]
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x38], ecx
mov eax, dword [edi]
mov ecx, dword [esi + 0xafc]
mov ebx, dword [eax + 0x20]
mov edx, dword [eax + 0x1c]
add ebx, edx
cmp ebx, ecx
ja 0x50f251
mov ecx, dword [eax + 8]
cmp ecx, 2
je 0x50f17b
cmp ecx, 1
jne 0x50f251
mov ecx, dword [eax + 4]
sub ecx, 0
je 0x50f1f8
dec ecx
je 0x50f199
dec ecx
je 0x50f251
mov dword [eax + 8], 4
jmp 0x50f251
mov dword [eax + 8], 3
mov edx, dword [edi]
mov dword [edx + 0x34], 0x64
mov eax, dword [edi]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x10]
push ecx
mov ecx, dword [eax + 0xc]
mov eax, dword [eax]
push edx
mov edx, dword [esi + 0xafc]
push ecx
push edx
push ebx
push eax
lea ecx, [esp + 0x2c]
push str._d_e_pic__d___d____d__d_f_d_n
push ecx
call fcn.00613634
add esp, 0x20
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [esi + 0xb74]
mov eax, dword [esi]
xor ecx, ecx
cmp edx, 1
setle cl
inc ecx
push ecx
mov ecx, esi
call dword [eax + 0x20]
jmp 0x50f251
mov dword [eax + 8], 3
mov edx, dword [edi]
mov dword [edx + 0x34], 0x64
mov eax, dword [edi]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
push ecx
mov ecx, dword [esi + 0xafc]
push edx
mov edx, dword [eax]
push ecx
push ebx
push edx
lea eax, [esp + 0x28]
push str._d_e_txt__d___d____d__d_n
push eax
call fcn.00613634
add esp, 0x1c
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esi + 0xb74]
mov edx, dword [esi]
xor eax, eax
cmp ecx, 1
setle al
inc eax
mov ecx, esi
push eax
call dword [edx + 0x20]
mov ecx, dword [edi]
cmp dword [ecx + 8], 1
jne 0x50f28e
mov ebp, dword [ecx + 0x34]
test ebp, ebp
jle 0x50f28e
mov eax, dword [esi + 0xafc]
mov edx, dword [ecx + 0x1c]
sub eax, edx
lea eax, [eax + eax*4]
shl eax, 1
cdq
idiv dword [esi + 0xb74]
lea edx, [eax + eax*4]
lea eax, [edx + edx + 1]
cmp eax, ebp
je 0x50f28e
mov dword [ecx + 0x34], eax
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x20]
mov ebp, dword [edi]
cmp dword [ebp + 8], 3
jne 0x50f2d5
cmp dword [ebp + 0x34], 0x64
jge 0x50f2d5
mov ecx, dword [esi + 0xafc]
sub ecx, ebx
mov ebx, dword [esi + 0xb74]
lea eax, [ecx + ecx*4]
shl eax, 1
cdq
idiv ebx
lea edx, [eax + eax*4]
mov eax, 0x63
shl edx, 1
sub eax, edx
cmp ecx, ebx
jl 0x50f2c4
xor eax, eax
cmp eax, dword [ebp + 0x34]
je 0x50f2d5
mov dword [ebp + 0x34], eax
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x20]
mov edi, dword [edi + 4]
xor ebp, ebp
cmp edi, ebp
jne 0x50ef6c
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x508
ret