Function at 0x40cc50
Capabilities:
Print debug messages

Disassembly:
sub esp, 0xac
mov eax, dword [0x43f5f8]
push ebx
push ebp
push esi
xor esi, esi
push edi
cmp eax, esi
mov dword [esp + 0x18], esi
jne 0x40cc79
pop edi
pop esi
pop ebp
mov eax, 0x80004003
pop ebx
add esp, 0xac
ret
mov ecx, dword [eax]
lea edx, [esp + 0x30]
push edx
lea edx, [esp + 0x14]
push edx
push eax
call dword [ecx + 0x14]
mov edi, eax
mov eax, dword [esp + 0x30]
cmp eax, 0x80
jne 0x40cf9a
mov eax, dword [esp + 0x10]
lea ecx, [eax*8]
push ecx
call fcn.0041d32e
mov ebx, eax
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], esi
jle 0x40cd89
mov ebp, ebx
mov eax, dword [0x43f5f8]
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x24]
mov edx, dword [eax]
push ecx
push esi
push eax
call dword [edx + 0x18]
test eax, eax
mov dword [esp + 0x1c], eax
jl 0x40cd74
mov eax, dword [esp + 0x20]
mov ecx, 4
mov edi, 0x4318e4
xor ebx, ebx
lea edx, [eax + 0x2c]
mov esi, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x40cd13
mov esi, edx
mov ecx, 4
mov edi, 0x431914
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x40cd66
mov esi, dword [eax + 0x44]
lea ecx, [esp + 0x38]
add eax, 0x10
push ecx
push eax
call fcn.0040c9c0
mov bl, al
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x34]
cdq
xor eax, edx
sub eax, edx
lea edx, [esp + 0x3c]
push edx
push eax
push ecx
call fcn.0040ca10
add esp, 0x14
test bl, bl
je 0x40cd62
test al, al
je 0x40cd62
mov eax, dword [esp + 0x38]
mov dword [ebp], eax
mov ecx, dword [esp + 0x34]
mov dword [ebp + 4], ecx
mov ecx, dword [esp + 0x18]
inc ecx
add ebp, 8
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x20]
push eax
call fcn.0041a630
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
mov dword [esp + 0x14], esi
jl 0x40ccc6
mov edi, dword [esp + 0x1c]
test edi, edi
jge 0x40cd9a
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret
mov eax, dword [esp + 0x18]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
mov dword [esp + 0x14], 0
jle 0x40cf6b
mov eax, dword [esp + 0xc0]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
mov eax, 0x51eb851f
lea ecx, [ecx + ecx*4]
shl ecx, 3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x24], edx
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
shl ecx, 0x10
or esi, ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
call fcn.0040ca50
add esp, 0xc
mov dword [esp + 0x1c], eax
test eax, eax
push esi
jl 0x40ce10
mov edx, dword [0x43f448]
push 0x190
push edx
jmp 0x40ce1b
mov eax, dword [0x43f448]
push 0x191
push eax
push 0xffff
call ebp
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
cmp eax, ecx
jge 0x40ce57
call fcn.0040cbb0
test eax, eax
jl 0x40cf63
mov edx, dword [esp + 0x10]
push 0xc8
inc edx
mov dword [esp + 0x14], edx
call edi
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
cmp eax, edx
jl 0x40ce2e
mov eax, dword [0x43f5e8]
test eax, eax
jne 0x40ce72
push 0x43f5e8
call fcn.0040cfb0
mov eax, dword [0x43f5e8]
add esp, 4
mov dword [esp + 0x10], 0
jmp 0x40ce81
mov eax, dword [0x43f5e8]
lea edx, [esp + 0x28]
mov dword [esp + 0x28], 0
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
test eax, eax
jg 0x40cec7
mov edx, dword [esp + 0x10]
push 0xc8
inc edx
mov dword [esp + 0x14], edx
call edi
cmp dword [esp + 0x10], 0x32
jl 0x40ce7c
push str.No_video_arrived._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x40cf4b
cmp dword [esp + 0x10], 0x32
jl 0x40cedb
push str.No_video_arrived._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x40cf4b
push 1
push 1
call fcn.00402bf0
add esp, 8
xor eax, eax
mov dword [esp + 0x10], eax
mov ecx, dword [0x43f628]
test ecx, ecx
je 0x40cf24
call fcn.0040cbb0
test eax, eax
jl 0x40cf63
mov eax, dword [esp + 0x10]
push 0x64
inc eax
mov dword [esp + 0x14], eax
call edi
mov eax, dword [esp + 0x10]
cmp eax, 0xf
jl 0x40ceed
mov eax, dword [0x43f448]
push esi
push 0x19b
push eax
jmp 0x40cf44
cmp eax, 0xf
jl 0x40cf37
mov eax, dword [0x43f448]
push esi
push 0x19b
push eax
jmp 0x40cf44
mov ecx, dword [0x43f448]
push esi
push 0x19a
push ecx
push 0xffff
call ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc eax
add ebx, 8
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x40cde2
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x40cf78
push ebx
call fcn.0041d33c
add esp, 4
mov edx, dword [0x43f448]
push 0
push 0x1a4
push edx
push 0xffff
call ebp
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret
pop edi
pop esi
pop ebp
mov eax, 0x80004005
pop ebx
add esp, 0xac
ret