Function at 0x4191b0
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x616591
push eax
mov dword fs:[0], esp
sub esp, 0x298
push ebx
push ebp
push esi
push edi
call fcn.00416cc0
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x6b2d50
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov eax, dword [0x6b2d98]
mov esi, dword [eax + 4]
test esi, esi
je 0x41921e
mov ebx, dword [sym.imp.KERNEL32.dll_SuspendThread]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x419215
cmp ecx, edi
je 0x419215
mov eax, dword [eax + 8]
push eax
call ebx
mov eax, esi
mov esi, dword [esi + 4]
test esi, esi
jne 0x419201
push 0x6b2d50
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 4
push 0x1000
push 0x10000
push 0
mov dword [esp + 0x24], 0x684a20
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0x62aec4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
je 0x419266
add eax, 0x10000
mov dword [esp + 0x1c], eax
mov ebp, dword [esp + 0x2b8]
push ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x2b4], 2
call fcn.00417000
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [ebp]
mov esi, dword [ecx + 0xc]
push 0x110
push 0
mov edi, esi
push 0x6b2db0
mov ebx, eax
mov dword [esp + 0x1c], esi
and edi, 0xffffffe0
call fcn.005f7e70
add esp, 0xc
cmp edi, 0x80
jbe 0x4192c0
sub edi, 0x80
jmp 0x4192c2
xor edi, edi
push 0
push 0x100
push 0x6b2db0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x41933a
mov eax, edi
xor ebp, ebp
sub eax, 0x6b2db0
mov dword [esp + 0x28], eax
jmp 0x4192f4
mov eax, dword [esp + 0x28]
push 0
push 0x20
lea esi, [ebp + 0x6b2db0]
push esi
add eax, esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x419324
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
add ebp, 0x20
cmp ebp, 0x100
jl 0x4192f0
mov ebp, dword [esp + 0x2b8]
mov esi, dword [esp + 0x10]
push edi
mov edx, 0x6b2db0
sub edx, edi
push edx
push 0x100
push 0x6b2db0
lea ecx, [esp + 0x60]
call fcn.00419b20
lea eax, [esp + 0x50]
mov dword [0x6b2d90], eax
mov eax, dword [esp + 0x19c]
test eax, eax
mov byte [esp + 0x2b0], 3
mov dword [esp + 0x60], esi
je 0x419389
push eax
push 0x6b2d70
call fcn.00417240
add esp, 8
jmp 0x41940e
push 0x104
lea ecx, [esp + 0x1a8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x10]
push edx
push 0x6b2db0
push 0x110
lea eax, [esp + 0x1b0]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov edx, dword [esp + 0x10]
mov ecx, str.VirtualDub.vdi
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x4193c4
push 0x6b2db0
push 0x6b2d70
call fcn.004173f0
add esp, 8
test al, al
jne 0x41940e
push str.VirtualD.vdi
push 0x110
push 0x6b2db0
call fcn.00416fa0
push 0x6b2db0
push 0x6b2d70
call fcn.004173f0
add esp, 0x14
lea ecx, [esp + 0x50]
mov dword [esp + 0x178], 0x418390
call fcn.0041a380
call fcn.0044cae0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0
lea ecx, [esp + 0x30]
mov esi, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
cmp dword [esp + 0x18], 0
jne 0x419457
mov edi, str._out_of_memory_
jmp 0x419462
mov edx, dword [esp + 0x20]
mov byte [edx], 0
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x30]
call fcn.0051a0b9
mov bl, byte [esp + 0x2bc]
mov dword [esp + 0x2c], 0x62aa08
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], edi
mov byte [esp + 0x4c], bl
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2b0], 4
call fcn.0051a32e
lea ecx, [esp + 0x2c]
call fcn.0051a1e8
mov eax, dword [0x6b2d70]
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualFree]
je 0x4194cd
push 0x8000
push 0
push eax
call ebp
mov dword [0x6b2d70], 0
push 0x6b2d50
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov eax, dword [0x6b2d98]
mov esi, dword [eax + 4]
test esi, esi
je 0x419511
lea esp, [esp]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x419508
cmp ecx, edi
je 0x419508
mov eax, dword [eax + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
mov esi, dword [esi + 4]
test esi, esi
jne 0x4194f0
push 0x6b2d50
mov dword [esp + 0x2b4], 4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
je 0x419567
mov ecx, dword [esp + 0x2b8]
push ecx
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.0051a31c
lea ecx, [esp + 0x50]
mov byte [esp + 0x2b0], 2
call fcn.00419c40
mov edx, dword [esp + 0x18]
push 0x8000
push 0
push edx
call ebp
mov eax, esi
jmp 0x419594
lea ecx, [esp + 0x2c]
call fcn.0051a31c
lea ecx, [esp + 0x50]
mov byte [esp + 0x2b0], 2
call fcn.00419c40
mov eax, dword [esp + 0x18]
push 0x8000
push 0
push eax
call ebp
mov eax, 1
mov ecx, dword [esp + 0x2a8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2a4
ret 8