Function at 0x41a531
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 [0x6a1b70], eax
je 0x41a55f
mov eax, 0x10dd
jmp 0x41a78b
xor edi, edi
cmp dword [0x6a1b74], edi
je 0x41a573
call fcn.004b1201
jmp 0x41a786
mov esi, dword [0x6a1b80]
jmp 0x41a618
mov eax, dword [esi + 0x10]
cmp dword [esi + 4], edi
je 0x41a5df
xor ebx, ebx
cmp byte [eax + 0x17], bl
jbe 0x41a5bd
mov edx, dword [esi + 0xc]
lea ecx, [ebp - 0x2dc]
push ecx
add edx, ebx
mov ecx, eax
mov dword [ebp - 0x2dc], edi
call fcn.0041a390
cmp dword [ebp - 0x2dc], edi
jne 0x41a5bd
mov ecx, dword [esi + 0x10]
mov ebx, eax
sub ebx, ecx
movzx ecx, byte [ecx + 0x17]
cmp ebx, ecx
jl 0x41a58d
mov eax, dword [esi + 0x10]
movzx eax, byte [eax + 0x17]
cmp ebx, eax
je 0x41a5da
mov eax, dword [esi + 8]
mov dword [0x6a1b74], 0xd
mov dword [0x6a1b78], eax
mov ecx, dword [esi + 0xc]
jmp 0x41a611
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 0x41a60e
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 0x41a57e
mov ebx, dword [0x6a1b7c]
cmp ebx, edi
je 0x41a6ca
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 0x41a6be
mov esi, dword [0x6a1b80]
jmp 0x41a6ba
cmp dword [esi + 4], 0
je 0x41a681
mov eax, dword [esi + 0x10]
cmp dword [ebp - 0x220], eax
jb 0x41a6b8
lea ecx, [eax + 4]
cmp dword [ebp - 0x220], ecx
jae 0x41a6b8
sub dword [ebp - 0x220], eax
mov eax, dword [esi + 0xc]
jmp 0x41a6a6
mov eax, dword [esi + 0xc]
cmp dword [ebp - 0x220], eax
jb 0x41a6b8
mov ecx, dword [esi + 0x10]
movzx ecx, byte [ecx + 0x17]
add ecx, eax
cmp dword [ebp - 0x220], ecx
jae 0x41a6b8
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 0x41a65a
mov ebx, dword [ebx]
test ebx, ebx
jne 0x41a634
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [0x6a1b80]
mov dword [ebp - 0x2dc], eax
cmp esi, edi
je 0x41a74d
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 0x41a73e
mov ebx, dword [esi + 0x10]
cmp ebx, edi
je 0x41a73e
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 0x41a6e0
mov dword [0x6a1b80], edi
call fcn.0041a79a
mov esi, dword [0x6a1b7c]
cmp esi, edi
je 0x41a77a
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 0x41a762
mov dword [0x6a1b7c], edi
mov dword [0x6a1b70], edi
mov eax, dword [0x6a1b74]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret