Function at 0x4198f6
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e4
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x6b6b78], eax
je 0x419924
mov eax, 0x10dd
jmp 0x419b50
xor edi, edi
cmp dword [0x6b6b7c], edi
je 0x419938
call fcn.004b4ff4
jmp 0x419b4b
mov esi, dword [0x6b6b88]
jmp 0x4199dd
mov eax, dword [esi + 0x10]
cmp dword [esi + 4], edi
je 0x4199a4
xor ebx, ebx
cmp byte [eax + 0x17], bl
jbe 0x419982
mov edx, dword [esi + 0xc]
lea ecx, [ebp - 0x2dc]
push ecx
add edx, ebx
mov ecx, eax
mov dword [ebp - 0x2dc], edi
call fcn.00419755
cmp dword [ebp - 0x2dc], edi
jne 0x419982
mov ecx, dword [esi + 0x10]
mov ebx, eax
sub ebx, ecx
movzx ecx, byte [ecx + 0x17]
cmp ebx, ecx
jl 0x419952
mov eax, dword [esi + 0x10]
movzx eax, byte [eax + 0x17]
cmp ebx, eax
je 0x41999f
mov eax, dword [esi + 8]
mov dword [0x6b6b7c], 0xd
mov dword [0x6b6b80], eax
mov ecx, dword [esi + 0xc]
jmp 0x4199d6
mov ecx, dword [eax + 0x1c]
mov eax, dword [esi + 0xc]
lea edx, [eax + 5]
sub ecx, edx
mov byte [eax], 0xe9
mov dword [eax + 1], ecx
mov ecx, dword [esi + 0x10]
mov ecx, dword [ecx + 0x18]
add eax, 5
cmp eax, ecx
jae 0x4199d3
sub ecx, eax
push ecx
push 0xcc
push eax
call fcn.00402394
add esp, 0xc
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 8]
mov dword [eax], ecx
mov esi, dword [esi]
cmp esi, edi
jne 0x419943
mov ebx, dword [0x6b6b84]
cmp ebx, edi
je 0x419a8f
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadContext]
lea eax, [ebp - 0x2d8]
push eax
push dword [ebx + 4]
mov dword [ebp - 0x2d8], 0x10001
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x419a83
mov esi, dword [0x6b6b88]
jmp 0x419a7f
cmp dword [esi + 4], 0
je 0x419a46
mov eax, dword [esi + 0x10]
cmp dword [ebp - 0x220], eax
jb 0x419a7d
lea ecx, [eax + 4]
cmp dword [ebp - 0x220], ecx
jae 0x419a7d
sub dword [ebp - 0x220], eax
mov eax, dword [esi + 0xc]
jmp 0x419a6b
mov eax, dword [esi + 0xc]
cmp dword [ebp - 0x220], eax
jb 0x419a7d
mov ecx, dword [esi + 0x10]
movzx ecx, byte [ecx + 0x17]
add ecx, eax
cmp dword [ebp - 0x220], ecx
jae 0x419a7d
sub dword [ebp - 0x220], eax
mov eax, dword [esi + 0x10]
add dword [ebp - 0x220], eax
lea eax, [ebp - 0x2d8]
push eax
push dword [ebx + 4]
call edi
mov esi, dword [esi]
test esi, esi
jne 0x419a1f
mov ebx, dword [ebx]
test ebx, ebx
jne 0x4199f9
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [0x6b6b88]
mov dword [ebp - 0x2dc], eax
cmp esi, edi
je 0x419b12
lea eax, [ebp - 0x2e0]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi + 0x10]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
push dword [ebp - 0x2dc]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp dword [esi + 4], edi
je 0x419b03
mov ebx, dword [esi + 0x10]
cmp ebx, edi
je 0x419b03
push 8
xor eax, eax
mov edx, ebx
and edx, 0xffff0000
pop ecx
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [edx + 8]
mov dword [ebx + 0x18], eax
mov dword [edx + 8], ebx
and dword [esi + 0x10], 0
xor edi, edi
mov ebx, dword [esi]
push esi
call fcn.00404e46
pop ecx
mov esi, ebx
cmp ebx, edi
jne 0x419aa5
mov dword [0x6b6b88], edi
call fcn.00419b5f
mov esi, dword [0x6b6b84]
cmp esi, edi
je 0x419b3f
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ebx, dword [esi]
push esi
call fcn.00404e46
pop ecx
mov esi, ebx
cmp ebx, edi
jne 0x419b27
mov dword [0x6b6b84], edi
mov dword [0x6b6b78], edi
mov eax, dword [0x6b6b7c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret