Function at 0x40f6a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4864f0
push 0x459ee0
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x4a4300]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor eax, eax
mov word [ebp - 0x230], ax
xorps xmm0, xmm0
movq qword [ebp - 0x22e], xmm0
mov dword [ebp - 0x226], eax
mov word [ebp - 0x222], ax
lea ecx, [ebp - 0x230]
call fcn.00407a10
mov ax, word [0x6b7e9a]
cmp ax, word [ebp - 0x226]
je 0x40f9c9
movdqu xmm0, xmmword [ebp - 0x230]
movdqu xmmword [0x6b7e90], xmm0
push 0
push 0x6b20b8
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
call edi
mov ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
call fcn.0040fd80
mov ecx, edx
sub eax, dword [0x6b7eb8]
mov dword [ebp - 0x248], eax
sbb ecx, dword [0x6b7ebc]
mov dword [ebp - 0x244], ecx
mov esi, 1
cmp ebx, esi
jge 0x40f77f
mov ecx, dword [0x6b20b8]
test ecx, ecx
cmovg ebx, esi
push 0
push 0x6b7eac
call edi
mov ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp edi, 1
jge 0x40f7ac
mov eax, dword [0x6b7eac]
test eax, eax
cmovg edi, esi
mov ecx, dword [0x6b7e80]
mov eax, dword [0x6b7e84]
push 0
push 0x400
push eax
push ecx
call fcn.0045ff30
mov esi, eax
mov dword [ebp - 0x240], esi
mov eax, edx
mov dword [ebp - 0x23c], eax
test eax, eax
jg 0x40f809
jl 0x40f7e0
cmp esi, 1
jae 0x40f809
mov ecx, dword [0x6b7e80]
mov eax, dword [0x6b7e84]
test eax, eax
jl 0x40f809
jg 0x40f7f5
test ecx, ecx
je 0x40f809
mov dword [ebp - 0x240], 1
mov dword [ebp - 0x23c], 0
push 0
push 0x6b20b0
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
cdq
mov dword [ebp - 0x234], eax
mov ecx, edx
mov dword [ebp - 0x238], ecx
test ecx, ecx
jg 0x40f859
jl 0x40f83c
cmp eax, 1
jae 0x40f859
cmp dword [0x6b20b0], 0
jle 0x40f859
mov dword [ebp - 0x234], 1
mov dword [ebp - 0x238], 0
push 0
push 0x6b20b8
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call esi
push 0
push 0x6b7eac
call esi
push 0
push 0x6b20b4
call esi
push 0
push 0x6b7ea0
call esi
push 0
push 0x6b20b0
call esi
call fcn.00401540
mov dword [ebp - 0x24c], eax
mov esi, dword [ebp - 0x234]
cmp dword [0x6b20ac], 0
jg 0x40f8c1
cmp dword [ebp - 0x238], 0
jg 0x40f8c1
jl 0x40f8b5
test esi, esi
jne 0x40f8c1
test edi, edi
jg 0x40f8c1
test ebx, ebx
jle 0x40f9c9
mov byte [ebp - 0x220], 0
push 0x1ff
push 0
lea eax, [ebp - 0x21f]
push eax
call fcn.004523e0
add esp, 0xc
push 0
push 0x3e8
push dword [ebp - 0x244]
push dword [ebp - 0x248]
call fcn.0045ff30
push edx
push eax
push dword [ebp - 0x24c]
push dword [ebp - 0x238]
push esi
push dword [ebp - 0x23c]
push dword [ebp - 0x240]
push edi
push ebx
mov eax, dword [0x6b20ac]
push eax
movzx eax, word [ebp - 0x224]
push eax
movzx eax, word [ebp - 0x226]
push eax
movzx eax, word [ebp - 0x228]
push eax
movzx eax, word [ebp - 0x22a]
push eax
movzx eax, word [ebp - 0x22e]
push eax
movzx eax, word [ebp - 0x230]
push eax
push str._DEBUG___04d._02d._02d__02d:_02d:_02d__
lea eax, [ebp - 0x220]
push eax
call fcn.0045752f
add esp, 0x48
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x220]
push eax
call fcn.00458229
add esp, 4
mov dword [ebp - 4], 0
push dword [ebp - 0x244]
push dword [ebp - 0x248]
push dword [ebp - 0x24c]
push ecx
push dword [ebp - 0x238]
push esi
push dword [ebp - 0x23c]
push dword [ebp - 0x240]
push edi
mov edx, ebx
mov ecx, dword [0x6b20ac]
call fcn.0040c870
add esp, 0x24
jmp 0x40f9c2
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004516e1
mov esp, ebp
pop ebp
ret