Function at 0x413170
Capabilities:
Check for time delay via queryperformancecounter
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x4a12d8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push edi
lea eax, [ebp - 0x238]
mov edi, ecx
push eax
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x218], ebx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea ecx, [ebp - 0x240]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push ebx
push ebx
mov dword [ebp - 0x220], ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea edx, [ebp - 0x224]
push edx
push 0x4a2b40
push 0x17
push ebx
push 0x4a2b30
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x41349a
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax]
lea edx, [ebp - 0x21c]
push edx
push ebx
push ebx
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
js 0x41349a
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
lea esi, [edi + 0x58]
push esi
push ebx
push 0x17
push 0x4a2b50
push eax
call edx
test eax, eax
js 0x41349a
mov eax, dword [esi]
mov ecx, dword [eax]
lea edx, [ebp - 0x214]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
test eax, eax
js 0x41349a
mov eax, dword [ebp - 0x214]
movzx ecx, word [eax + 0xc]
push ebx
push eax
push ebx
push ebx
push ebx
mov dword [edi + 0x94], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esi]
push 0x989680
push ebx
mov dword [edi + 0x98], edx
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
push ebx
push ecx
call eax
test eax, eax
js 0x41349a
mov eax, dword [esi]
mov ecx, dword [eax]
lea edx, [ebp - 0x244]
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
js 0x41349a
mov eax, dword [esi]
mov ecx, dword [eax]
lea edx, [edi + 0x60]
push edx
push 0x4a2b80
push eax
mov eax, dword [ecx + 0x38]
call eax
test eax, eax
js 0x41349a
fld dword [0x49a828]
push ecx
mov eax, edi
fstp dword [esp]
call fcn.00415e60
mov esi, dword [esi]
mov ecx, dword [esi]
mov eax, dword [ecx + 0x38]
lea edx, [edi + 0x50]
push edx
push 0x4a2b60
push esi
call eax
test eax, eax
js 0x41349a
push 1
push 0x20070
call dword [sym.imp.MFPlat.DLL_MFStartup]
test eax, eax
js 0x41349a
lea ecx, [ebp - 0x218]
push ecx
push 0x47d824
push 1
push ebx
push 0x47d904
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x41349a
mov eax, dword [ebp - 0x218]
mov edx, dword [eax]
lea esi, [edi + 0x64]
push esi
push 0x47fea8
push eax
mov eax, dword [edx]
call eax
test eax, eax
js 0x41349a
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
lea edx, [ebp - 0x220]
push edx
push 0x47feb8
push eax
mov eax, dword [ecx]
call eax
test eax, eax
js 0x41349a
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push 0x3c
push eax
call edx
mov ebx, dword [sym.imp.MFPlat.DLL_MFCreateMediaType]
lea eax, [ebp - 0x210]
push eax
call ebx
test eax, eax
js 0x413498
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x60]
push str.auds
push 0x47d854
push eax
call edx
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x60]
push 0x47d834
push 0x47d864
push eax
call edx
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x54]
push 2
push 0x47d884
push eax
call edx
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x54]
push 0xac44
push 0x47d894
push eax
call edx
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x54]
push 4
push 0x47d8b4
push eax
call edx
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x54]
push 0x2b110
push 0x47d8a4
push eax
call edx
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x54]
push 0x10
push 0x47d8c4
push eax
call edx
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x54]
push 1
push 0x47d874
push eax
call edx
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x54]
push 3
push 0x47d8e4
push eax
call edx
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x54]
push 0x10
push 0x47d8d4
push eax
call edx
mov edx, dword [ebp - 0x210]
mov eax, dword [esi]
mov ecx, dword [eax]
push 0
push edx
push 0
push eax
mov eax, dword [ecx + 0x3c]
call eax
mov edi, eax
lea ecx, [ebp - 0x20c]
push ecx
call ebx
test edi, edi
jns 0x413587
mov edi, dword [ebp - 0x228]
xor ebx, ebx
mov edx, dword [ebp - 0x214]
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
push edx
call esi
push ebx
call esi
mov eax, dword [ebp - 0x20c]
cmp eax, ebx
je 0x4134c4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x20c], ebx
mov eax, dword [ebp - 0x210]
cmp eax, ebx
je 0x4134dc
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x210], ebx
mov eax, dword [ebp - 0x220]
cmp eax, ebx
je 0x4134f4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x220], ebx
mov eax, dword [ebp - 0x218]
cmp eax, ebx
je 0x41350c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x218], ebx
mov eax, dword [ebp - 0x224]
cmp eax, ebx
je 0x413524
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x224], ebx
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x41353c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x21c], ebx
mov eax, dword [edi + 0x60]
cmp eax, ebx
je 0x41354e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi + 0x60], ebx
mov eax, dword [edi + 0x58]
cmp eax, ebx
je 0x413560
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi + 0x58], ebx
mov eax, dword [edi + 0x50]
cmp eax, ebx
je 0x413751
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi + 0x50], ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e590
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x60]
push str.auds
push 0x47d854
push eax
call edx
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x60]
push 0x47d844
push 0x47d864
push eax
call edx
mov edx, dword [ebp - 0x214]
movzx edx, word [edx + 2]
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax]
push edx
push 0x47d884
push eax
mov eax, dword [ecx + 0x54]
call eax
mov edx, dword [ebp - 0x214]
mov edx, dword [edx + 4]
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax]
push edx
push 0x47d894
push eax
mov eax, dword [ecx + 0x54]
call eax
mov edx, dword [ebp - 0x214]
movzx edx, word [edx + 0xc]
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax]
push edx
push 0x47d8b4
push eax
mov eax, dword [ecx + 0x54]
call eax
mov edx, dword [ebp - 0x214]
mov edx, dword [edx + 8]
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax]
push edx
push 0x47d8a4
push eax
mov eax, dword [ecx + 0x54]
call eax
mov edx, dword [ebp - 0x214]
movzx edx, word [edx + 0xe]
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax]
push edx
push 0x47d8c4
push eax
mov eax, dword [ecx + 0x54]
call eax
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x54]
push 1
push 0x47d874
push eax
call edx
mov edx, dword [ebp - 0x214]
mov edx, dword [edx + 0x14]
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax]
push edx
push 0x47d8e4
push eax
mov eax, dword [ecx + 0x54]
call eax
mov edx, dword [ebp - 0x214]
movzx edx, word [edx + 0x12]
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax]
push edx
push 0x47d8d4
push eax
mov eax, dword [ecx + 0x54]
call eax
mov edx, dword [ebp - 0x20c]
mov eax, dword [esi]
mov ecx, dword [eax]
push 0
push edx
push 0
push eax
mov eax, dword [ecx + 0x40]
call eax
mov eax, dword [esi]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x5c]
push 0
push 0
push eax
call edx
mov eax, dword [esi]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x5c]
push 0
push 0x10000000
push eax
call edx
mov esi, dword [esi]
mov eax, dword [esi]
mov ecx, dword [eax + 0x5c]
push 0
push 0x10000003
push esi
call ecx
lea edx, [ebp - 0x230]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x230]
sub eax, dword [ebp - 0x240]
mov ecx, dword [ebp - 0x22c]
sbb ecx, dword [ebp - 0x23c]
push 0
push 0xf4240
push ecx
push eax
call fcn.0043ee40
mov ecx, dword [ebp - 0x234]
push ecx
mov ecx, dword [ebp - 0x238]
push ecx
push edx
push eax
call fcn.0043ed90
push edx
push eax
push str.Delay__llu_n
lea edx, [ebp - 0x208]
push 0x100
push edx
call dword [sym.imp.MSVCR100.dll_swprintf_s]
add esp, 0x14
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043e590
mov esp, ebp
pop ebp
ret