Function at 0x40cac0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0xac
mov eax, dword [0x43e5c8]
push ebx
push ebp
push esi
xor esi, esi
push edi
cmp eax, esi
mov dword [esp + 0x18], esi
jne 0x40cae9
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 0x40ce0a
mov eax, dword [esp + 0x10]
lea ecx, [eax*8]
push ecx
call fcn.0041d1ae
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 0x40cbf9
mov ebp, ebx
mov eax, dword [0x43e5c8]
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 0x40cbe4
mov eax, dword [esp + 0x20]
mov ecx, 4
mov edi, 0x4308e4
xor ebx, ebx
lea edx, [eax + 0x2c]
mov esi, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x40cb83
mov esi, edx
mov ecx, 4
mov edi, 0x430914
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x40cbd6
mov esi, dword [eax + 0x44]
lea ecx, [esp + 0x38]
add eax, 0x10
push ecx
push eax
call fcn.0040c830
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.0040c880
add esp, 0x14
test bl, bl
je 0x40cbd2
test al, al
je 0x40cbd2
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.0041a4b0
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 0x40cb36
mov edi, dword [esp + 0x1c]
test edi, edi
jge 0x40cc0a
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 0x40cddb
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.0040c8c0
add esp, 0xc
mov dword [esp + 0x1c], eax
test eax, eax
push esi
jl 0x40cc80
mov edx, dword [0x43e418]
push 0x190
push edx
jmp 0x40cc8b
mov eax, dword [0x43e418]
push 0x191
push eax
push 0xffff
call ebp
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
cmp eax, ecx
jge 0x40ccc7
call fcn.0040ca20
test eax, eax
jl 0x40cdd3
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 0x40cc9e
mov eax, dword [0x43e5b8]
test eax, eax
jne 0x40cce2
push 0x43e5b8
call fcn.0040ce20
mov eax, dword [0x43e5b8]
add esp, 4
mov dword [esp + 0x10], 0
jmp 0x40ccf1
mov eax, dword [0x43e5b8]
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 0x40cd37
mov edx, dword [esp + 0x10]
push 0xc8
inc edx
mov dword [esp + 0x14], edx
call edi
cmp dword [esp + 0x10], 0x32
jl 0x40ccec
push str.No_video_arrived._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x40cdbb
cmp dword [esp + 0x10], 0x32
jl 0x40cd4b
push str.No_video_arrived._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x40cdbb
push 1
push 1
call fcn.00402b80
add esp, 8
xor eax, eax
mov dword [esp + 0x10], eax
mov ecx, dword [0x43e5f8]
test ecx, ecx
je 0x40cd94
call fcn.0040ca20
test eax, eax
jl 0x40cdd3
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 0x40cd5d
mov eax, dword [0x43e418]
push esi
push 0x19b
push eax
jmp 0x40cdb4
cmp eax, 0xf
jl 0x40cda7
mov eax, dword [0x43e418]
push esi
push 0x19b
push eax
jmp 0x40cdb4
mov ecx, dword [0x43e418]
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 0x40cc52
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x40cde8
push ebx
call fcn.0041d1bc
add esp, 4
mov edx, dword [0x43e418]
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