Function at 0x42e3c0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430785
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 5
lea eax, [edi + 0x28c]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push eax
call ebx
mov eax, dword [edi + 0x1fc]
test eax, eax
je 0x42e414
push eax
call dword [sym.imp.WINMM.dll_timeKillEvent]
mov dword [edi + 0x1fc], 0
mov eax, dword [edi + 0x1f8]
test eax, eax
je 0x42e425
push eax
call dword [sym.imp.WINMM.dll_timeEndPeriod]
mov ecx, edi
call fcn.0042ce60
lea eax, [edi + 0x218]
push eax
call ebx
mov eax, dword [edi + 0x70]
test eax, eax
je 0x42e445
push eax
call fcn.004112be
add esp, 4
mov esi, dword [edi + 0x6c]
test esi, esi
je 0x42e461
mov ecx, esi
call fcn.004249d0
push 0xb0
push esi
call fcn.0040a4f3
add esp, 8
mov esi, dword [edi + 0x78]
test esi, esi
je 0x42e483
mov ecx, esi
call fcn.00425060
lea eax, [esi + 8]
push eax
call ebx
push 0x8c
push esi
call fcn.0040a4f3
add esp, 8
cmp dword [edi + 4], 0
je 0x42e4ae
lea esi, [edi + 0x24]
mov ebx, 3
mov eax, dword [esi]
test eax, eax
je 0x42e4a0
push eax
call fcn.004112be
add esp, 4
add esi, 0x18
sub ebx, 1
jne 0x42e491
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x42e4c2
mov eax, dword [edi + 0x14]
test eax, eax
je 0x42e4c2
push ecx
call eax
add esp, 4
mov eax, dword [edi]
test eax, eax
je 0x42e4cf
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [edi + 0x84]
test esi, esi
je 0x42e4ff
push dword [esi + 0x2c]
mov eax, dword [esi + 0x28]
call eax
mov eax, dword [esi + 0x10]
add esp, 4
test eax, eax
je 0x42e4f4
push eax
call fcn.0040e304
add esp, 4
push 0x6c
push esi
call fcn.0040a4f3
add esp, 8
mov eax, dword [edi + 0x88]
test eax, eax
je 0x42e512
push eax
call fcn.004112be
add esp, 4
mov eax, dword [edi + 0x32c]
test eax, eax
je 0x42e525
push eax
call fcn.004112be
add esp, 4
mov eax, dword [edi + 0x1bc]
test eax, eax
je 0x42e538
push eax
call fcn.004112be
add esp, 4
mov ecx, dword [edi + 0x74]
test ecx, ecx
je 0x42e545
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [edi + 0x1bc]
test eax, eax
je 0x42e558
push eax
call fcn.004112be
add esp, 4
mov eax, dword [edi + 0x360]
test eax, eax
je 0x42e56b
push eax
call fcn.004112be
add esp, 4
mov eax, dword [edi + 0x364]
test eax, eax
je 0x42e57e
push eax
call fcn.004112be
add esp, 4
cmp dword [edi + 0x1e4], 0
je 0x42e5ee
push dword [edi + 0x1e8]
mov byte [edi + 0x1ec], 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xc8
push dword [edi + 0x1e4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42e5d8
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push dword [edi + 0x1e4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 0x10]
push dword [edi + 0x1e4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x1e4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x1e4], 0
mov eax, dword [edi + 0x200]
test eax, eax
je 0x42e618
push eax
call dword [sym.imp.dAVEncoder.dll_dEnc_Close]
push dword [edi + 0x200]
call dword [sym.imp.dAVEncoder.dll_dEnc_ReleaseObject]
add esp, 8
mov dword [edi + 0x200], 0
mov byte [ebp - 4], 4
lea eax, [edi + 0x30c]
push eax
call ebx
mov byte [ebp - 4], 3
lea eax, [edi + 0x2f0]
push eax
call ebx
mov byte [ebp - 4], 2
lea eax, [edi + 0x2cc]
push eax
call ebx
mov byte [ebp - 4], 1
lea eax, [edi + 0x2a8]
push eax
call ebx
mov byte [ebp - 4], 0
lea ebx, [edi + 0x1f0]
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 6
mov eax, dword [ebx]
mov ecx, dword [eax]
mov dword [eax], eax
mov eax, dword [ebx]
mov dword [eax + 4], eax
mov dword [ebx + 4], 0
cmp ecx, dword [ebx]
je 0x42e684
mov esi, dword [ecx]
push ecx
call fcn.0040a4bb
add esp, 4
mov ecx, esi
cmp esi, dword [ebx]
jne 0x42e673
mov byte [ebp - 4], 0
push dword [ebx]
call fcn.0040a4bb
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea esi, [edi + 0x1b4]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 9
mov ecx, esi
mov eax, dword [esi]
push eax
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.00404ae0
mov dword [ebp - 4], 0xffffffff
push dword [esi]
call fcn.0040a4bb
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret