Function at 0x4467f0
Capabilities:
Resume thread

Disassembly:
sub esp, 0x2d8
mov eax, dword [0x468a18]
mov dword [esp + 0x2d4], eax
mov eax, dword [esp + 0x2dc]
push ebp
xor ebp, ebp
cmp eax, ebp
je 0x446818
mov ecx, dword [0x468de8]
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x468de0], eax
je 0x446841
mov eax, 0x10dd
pop ebp
mov ecx, dword [esp + 0x2d4]
call fcn.0043cfa9
add esp, 0x2d8
ret 4
cmp dword [0x468de4], ebp
je 0x446853
call fcn.00446710
jmp 0x446adf
push ebx
push esi
mov esi, dword [0x468df0]
cmp esi, ebp
push edi
je 0x446918
mov ebx, 0xd
lea esp, [esp]
cmp dword [esi + 4], ebp
je 0x4468d0
mov eax, dword [esi + 0x10]
mov cl, byte [eax + 0x17]
xor edi, edi
test cl, cl
jbe 0x4468ac
lea edx, [esp + 0x10]
push edx
push ebp
push eax
mov eax, dword [esi + 0xc]
add eax, edi
push eax
mov dword [esp + 0x20], ebp
call fcn.00447160
cmp dword [esp + 0x10], ebp
jne 0x4468ac
mov ecx, dword [esi + 0x10]
mov edi, eax
sub edi, ecx
movzx ecx, byte [ecx + 0x17]
cmp edi, ecx
jl 0x446881
mov edx, dword [esi + 0x10]
movzx eax, byte [edx + 0x17]
cmp edi, eax
je 0x4468c6
mov ecx, dword [esi + 8]
mov dword [0x468de4], ebx
mov dword [0x468de8], ecx
mov edx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov dword [edx], eax
jmp 0x44690e
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov ecx, dword [ecx + 0x1c]
lea edx, [eax + 5]
mov byte [eax], 0xe9
sub ecx, edx
inc eax
mov dword [eax], ecx
mov edx, dword [esi + 0x10]
mov ecx, dword [edx + 0x18]
lea edi, [eax + 4]
cmp edi, ecx
jae 0x446906
sub ecx, edi
mov edx, ecx
shr ecx, 2
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x10]
mov dword [eax], ecx
mov esi, dword [esi]
cmp esi, ebp
jne 0x446870
mov edi, dword [0x468dec]
cmp edi, ebp
je 0x4469d0
mov ebp, dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov ebx, dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov eax, dword [edi + 4]
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x20], 0x10001
call ebp
test eax, eax
je 0x4469c4
mov esi, dword [0x468df0]
test esi, esi
je 0x4469c4
mov eax, dword [esp + 0xd0]
lea ebx, [ebx]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x446983
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jb 0x4469be
lea edx, [ecx + 4]
cmp eax, edx
jae 0x4469be
sub eax, ecx
mov dword [esp + 0xd0], eax
mov edx, dword [esi + 0xc]
jmp 0x4469a3
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jb 0x4469be
mov edx, dword [esi + 0x10]
movzx edx, byte [edx + 0x17]
add edx, ecx
cmp eax, edx
jae 0x4469be
sub eax, ecx
mov dword [esp + 0xd0], eax
mov edx, dword [esi + 0x10]
mov ecx, dword [edi + 4]
add eax, edx
mov dword [esp + 0xd0], eax
lea eax, [esp + 0x18]
push eax
push ecx
call ebx
mov eax, dword [esp + 0xd0]
mov esi, dword [esi]
test esi, esi
jne 0x446960
mov edi, dword [edi]
test edi, edi
jne 0x446932
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [0x468df0]
cmp esi, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, eax
je 0x446a6c
lea esp, [esp]
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
lea edx, [esp + 0x10]
push edx
movzx edx, byte [ecx + 0x17]
push eax
mov eax, dword [esi + 0xc]
push edx
push eax
call ebp
mov ecx, dword [esi + 0x10]
movzx edx, byte [ecx + 0x17]
mov eax, dword [esi + 0xc]
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, dword [esi + 4]
test eax, eax
je 0x446a5b
mov eax, dword [esi + 0x10]
test eax, eax
je 0x446a5b
mov ecx, eax
and ecx, 0xffff0000
xor edx, edx
mov edi, eax
mov dword [edi], edx
mov dword [edi + 4], edx
mov dword [edi + 8], edx
mov dword [edi + 0xc], edx
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], edx
mov dword [edi + 0x18], edx
mov dword [edi + 0x1c], edx
mov edx, dword [ecx + 8]
mov dword [eax + 0x18], edx
mov dword [ecx + 8], eax
mov dword [esi + 0x10], 0
mov edi, dword [esi]
push esi
call sub.MFC71U.DLL_CNoTrackObject::operator_new
add esp, 4
test edi, edi
mov esi, edi
jne 0x4469f0
mov esi, dword [0x468dd4]
xor ebx, ebx
cmp esi, ebx
mov dword [0x468df0], ebx
je 0x446a96
mov edi, edi
lea eax, [esp + 0x14]
push eax
push 0x20
push 0x10000
push esi
call ebp
mov esi, dword [esi + 4]
cmp esi, ebx
jne 0x446a80
mov esi, dword [0x468dec]
cmp esi, ebx
je 0x446abd
mov ebp, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esi + 4]
push ecx
call ebp
mov edi, dword [esi]
push esi
call sub.MFC71U.DLL_CNoTrackObject::operator_new
add esp, 4
cmp edi, ebx
mov esi, edi
jne 0x446aa6
mov eax, dword [esp + 0x2ec]
pop edi
pop esi
mov dword [0x468dec], ebx
mov dword [0x468de0], ebx
cmp eax, ebx
pop ebx
je 0x446adf
mov edx, dword [0x468de8]
mov dword [eax], edx
mov ecx, dword [esp + 0x2d8]
mov eax, dword [0x468de4]
pop ebp
call fcn.0043cfa9
add esp, 0x2d8
ret 4