Function at 0x43a87f
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x4b206c]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4b6d88], eax
je 0x43a8aa
mov eax, 0x10dd
jmp 0x43aaca
cmp dword [0x4b6d90], 0
je 0x43a8bd
call fcn.0043a7d7
jmp 0x43aac5
push ebx
push esi
mov esi, dword [0x4b6d74]
push edi
jmp 0x43a971
cmp dword [esi + 4], 0
je 0x43a931
mov edx, dword [esi + 0x10]
xor edi, edi
cmp byte [edx + 0x17], 0
jbe 0x43a90f
and dword [ebp - 0x2d4], 0
lea eax, [ebp - 0x2d4]
push eax
push ecx
mov ecx, dword [esi + 0xc]
add ecx, edi
call fcn.0043aca9
cmp dword [ebp - 0x2d4], 0
mov edx, eax
jne 0x43a90f
mov eax, dword [esi + 0x10]
mov edi, edx
sub edi, eax
movzx eax, byte [eax + 0x17]
cmp edi, eax
jl 0x43a8dc
mov eax, dword [esi + 0x10]
movzx eax, byte [eax + 0x17]
cmp edi, eax
je 0x43a92c
mov eax, dword [esi + 8]
mov dword [0x4b6d90], 0xd
mov dword [0x4b6d8c], eax
mov eax, dword [esi + 0xc]
jmp 0x43a96a
mov eax, dword [esi + 0x10]
xor ebx, ebx
mov edx, dword [esi + 0xc]
mov ecx, dword [eax + 0x1c]
lea eax, [edx + 5]
mov byte [edx], 0xe9
sub ecx, eax
mov dword [edx + 1], ecx
add edx, 5
mov eax, dword [esi + 0x10]
xor ecx, ecx
mov edi, dword [eax + 0x18]
sub edi, edx
cmp edx, dword [eax + 0x18]
cmova edi, ebx
test edi, edi
je 0x43a967
mov byte [edx], 0xcc
inc edx
inc ecx
cmp ecx, edi
jb 0x43a95e
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
mov dword [ecx], eax
mov esi, dword [esi]
test esi, esi
jne 0x43a8cb
mov edi, dword [0x4b6d80]
test edi, edi
je 0x43aa23
mov ebx, dword [sym.imp.KERNEL32.dll_SetThreadContext]
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x2d0], 0x10001
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x43aa19
mov esi, dword [0x4b6d74]
test esi, esi
je 0x43aa19
mov ecx, dword [ebp - 0x218]
cmp dword [esi + 4], 0
je 0x43a9dc
mov edx, dword [esi + 0x10]
cmp ecx, edx
jb 0x43aa13
lea eax, [edx + 4]
cmp ecx, eax
jae 0x43aa13
sub ecx, edx
mov dword [ebp - 0x218], ecx
add ecx, dword [esi + 0xc]
jmp 0x43a9fb
cmp ecx, dword [esi + 0xc]
jb 0x43aa13
mov eax, dword [esi + 0x10]
movzx eax, byte [eax + 0x17]
add eax, dword [esi + 0xc]
cmp ecx, eax
jae 0x43aa13
sub ecx, dword [esi + 0xc]
mov dword [ebp - 0x218], ecx
add ecx, dword [esi + 0x10]
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x218], ecx
push eax
push dword [edi + 4]
call ebx
mov ecx, dword [ebp - 0x218]
mov esi, dword [esi]
test esi, esi
jne 0x43a9bb
mov edi, dword [edi]
test edi, edi
jne 0x43a98d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, dword [0x4b6d74]
mov ebx, eax
test edi, edi
je 0x43aa87
lea eax, [ebp - 0x2d4]
push eax
mov eax, dword [edi + 0x10]
push dword [edi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [edi + 0x10]
movzx eax, byte [eax + 0x17]
push eax
push dword [edi + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp dword [edi + 4], 0
je 0x43aa78
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x43aa78
call fcn.0043a709
and dword [edi + 0x10], 0
mov esi, dword [edi]
push edi
call fcn.00460c6b
mov edi, esi
pop ecx
test esi, esi
jne 0x43aa35
xor ebx, ebx
mov dword [0x4b6d74], ebx
call fcn.0043a4f5
mov edi, dword [0x4b6d80]
test edi, edi
je 0x43aab6
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [edi]
push edi
call fcn.00460c6b
mov edi, esi
pop ecx
test esi, esi
jne 0x43aa9e
pop edi
pop esi
mov dword [0x4b6d80], ebx
mov dword [0x4b6d88], ebx
pop ebx
mov eax, dword [0x4b6d90]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460c27
mov esp, ebp
pop ebp
ret