Function at 0x40f340
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4864d0
push 0x459d70
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.004078a0
mov ax, word [0x6b7c3a]
cmp ax, word [ebp - 0x226]
je 0x40f669
movdqu xmm0, xmmword [ebp - 0x230]
movdqu xmmword [0x6b7c30], xmm0
push 0
push 0x6b7c14
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.0040fa20
mov ecx, edx
sub eax, dword [0x6b7c50]
mov dword [ebp - 0x248], eax
sbb ecx, dword [0x6b7c54]
mov dword [ebp - 0x244], ecx
mov esi, 1
cmp ebx, esi
jge 0x40f41f
mov ecx, dword [0x6b7c14]
test ecx, ecx
cmovg ebx, esi
push 0
push 0x6b7c48
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 0x40f44c
mov eax, dword [0x6b7c48]
test eax, eax
cmovg edi, esi
mov ecx, dword [0x6b7c18]
mov eax, dword [0x6b7c1c]
push 0
push 0x400
push eax
push ecx
call fcn.0045fdc0
mov esi, eax
mov dword [ebp - 0x240], esi
mov eax, edx
mov dword [ebp - 0x23c], eax
test eax, eax
jg 0x40f4a9
jl 0x40f480
cmp esi, 1
jae 0x40f4a9
mov ecx, dword [0x6b7c18]
mov eax, dword [0x6b7c1c]
test eax, eax
jl 0x40f4a9
jg 0x40f495
test ecx, ecx
je 0x40f4a9
mov dword [ebp - 0x240], 1
mov dword [ebp - 0x23c], 0
push 0
push 0x6b1e4c
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 0x40f4f9
jl 0x40f4dc
cmp eax, 1
jae 0x40f4f9
cmp dword [0x6b1e4c], 0
jle 0x40f4f9
mov dword [ebp - 0x234], 1
mov dword [ebp - 0x238], 0
push 0
push 0x6b7c14
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call esi
push 0
push 0x6b7c48
call esi
push 0
push 0x6b7c10
call esi
push 0
push 0x6b7c24
call esi
push 0
push 0x6b1e4c
call esi
call fcn.00401500
mov dword [ebp - 0x24c], eax
mov esi, dword [ebp - 0x234]
cmp dword [0x6b1e48], 0
jg 0x40f561
cmp dword [ebp - 0x238], 0
jg 0x40f561
jl 0x40f555
test esi, esi
jne 0x40f561
test edi, edi
jg 0x40f561
test ebx, ebx
jle 0x40f669
mov byte [ebp - 0x220], 0
push 0x1ff
push 0
lea eax, [ebp - 0x21f]
push eax
call fcn.00452270
add esp, 0xc
push 0
push 0x3e8
push dword [ebp - 0x244]
push dword [ebp - 0x248]
call fcn.0045fdc0
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 [0x6b1e48]
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.004573bf
add esp, 0x48
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x220]
push eax
call fcn.004580ba
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 [0x6b1e48]
call fcn.0040c520
add esp, 0x24
jmp 0x40f662
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.00451570
mov esp, ebp
pop ebp
ret