Function at 0x404e00
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x4430a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
call fcn.00405600
mov ebx, eax
add esp, 8
test ebx, ebx
jns 0x404e58
push ebx
push str.failed_rebase_address_ret___d__n
push 2
call fcn.00413cdd
add esp, 4
push eax
call fcn.00405a10
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e54e
mov esp, ebp
pop ebp
ret
push 0
push 2
lea eax, [ebp - 0x2d4]
push eax
push dword [edi + 0x44]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0
push 2
push 0x4336ec
push dword [edi + 0x44]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 2
push dword [edi + 0x44]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x20
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ebx, dword [esi + 4]
lea eax, [ebp - 0x2cc]
push 0x2c8
push 0
push eax
call fcn.0040ff90
add esp, 0xc
mov dword [ebp - 0x2d0], 0x10001
lea eax, [ebp - 0x2d0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x404ff5
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x20
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov eax, dword [ebp - 0x218]
cmp eax, dword [edi + 0x44]
jne 0x404ea9
cmp dword [edi + 0x48], 0
jne 0x404f35
push str.ntleasig
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov ebx, eax
test ebx, ebx
je 0x404f35
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
call fcn.00405030
mov ebx, eax
add esp, 8
test ebx, ebx
jns 0x404f50
push ebx
push str.failed_inject_DLL_ret___d__n
jmp 0x404e32
push 0x7530
push dword [edi + 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, str.success_wait_signal__n
test eax, eax
je 0x404f6c
mov ebx, str.failed_wait_signal_timeout__n
push 2
call fcn.00413cdd
push ebx
push eax
call fcn.00405a10
add esp, 0xc
cmp dword [edi + 0x48], 0
jne 0x404f88
call fcn.00405870
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x404f96
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [edi + 0x38]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x404fa6
push eax
call ebx
mov eax, dword [edi + 0x34]
test eax, eax
je 0x404fb0
push eax
call ebx
push 0
push 2
lea eax, [ebp - 0x2d4]
push eax
push dword [edi + 0x44]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 2
push dword [edi + 0x44]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp dword [ebp + 0x10], 0
jne 0x404fe2
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e54e
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
mov esi, eax
call fcn.00413cdd
push esi
push str.Failed_GetThreadContext_:__u_n
push eax
call fcn.00405a10
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
mov eax, 0xffffd8e8
pop edi
pop esi
pop ebx
call fcn.0040e54e
mov esp, ebp
pop ebp
ret