Function at 0x464ada
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x506ad8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
push 0x54aff0
mov dword [esp + 0x28], 0xe
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x10]
mov edi, dword [sym.imp.MSVCRT.dll_memmove]
test eax, eax
je 0x464b35
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
test ecx, ecx
je 0x464b11
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [esi + 0x10]
dec ecx
je 0x464b28
mov eax, dword [esi + 0xc]
shl ecx, 2
lea edx, [eax + 4]
push ecx
push edx
push eax
call edi
add esp, 0xc
mov ecx, dword [esi + 0x10]
dec ecx
mov eax, ecx
mov dword [esi + 0x10], ecx
test eax, eax
jne 0x464b02
push 0x54aff0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x464b7a
mov eax, dword [esi + 0x68]
mov ecx, dword [eax]
test ecx, ecx
je 0x464b56
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [esi + 0x6c]
dec ecx
je 0x464b6d
mov eax, dword [esi + 0x68]
shl ecx, 2
lea edx, [eax + 4]
push ecx
push edx
push eax
call edi
add esp, 0xc
mov ecx, dword [esi + 0x6c]
dec ecx
mov eax, ecx
mov dword [esi + 0x6c], ecx
test eax, eax
jne 0x464b47
mov ecx, dword [esi + 0x90]
test ecx, ecx
je 0x464bf0
call fcn.004988d0
mov ebp, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov ecx, dword [esi + 0x90]
lea eax, [esp + 0x10]
push eax
mov edx, dword [ecx + 0x2c]
push edx
call ebp
test eax, eax
je 0x464bc3
cmp dword [esp + 0x10], 0x103
jne 0x464bc3
push 1
call ebx
inc edi
cmp edi, 0x3e8
jl 0x464b97
mov eax, dword [esi + 0x90]
push 2
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x90]
test ecx, ecx
je 0x464be6
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esi + 0x90], 0
lea ecx, [esi + 0x148]
mov byte [esp + 0x24], 0xd
call sub.MFC42.DLL_CString::CString
lea edi, [esi + 0x128]
mov byte [esp + 0x24], 0xc
lea eax, [edi + 8]
mov dword [edi], 0x514ca0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, edi
call fcn.004c8370
lea ecx, [esi + 0x124]
mov byte [esp + 0x24], 0xb
call sub.MFC42.DLL_CString::CString
lea edi, [esi + 0x110]
mov dword [esp + 0x18], edi
mov dword [edi], 0x519958
mov eax, dword [edi + 4]
mov byte [esp + 0x24], 0xf
test eax, eax
je 0x464c78
mov ecx, dword [edi + 8]
mov ebx, eax
mov edx, ecx
dec ecx
test edx, edx
je 0x464c6c
lea ebp, [ecx + 1]
push 0
mov ecx, ebx
call fcn.0046ba90
add ebx, 0xc
dec ebp
jne 0x464c5d
mov eax, dword [edi + 4]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [edi], 0x514bb8
lea edi, [esi + 0xfc]
mov dword [esp + 0x18], edi
mov dword [edi], 0x51996c
mov eax, dword [edi + 4]
mov byte [esp + 0x24], 0x10
test eax, eax
je 0x464ca3
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esi + 0xf4]
mov dword [edi], 0x514bb8
mov byte [esp + 0x24], 8
call sub.MFC42.DLL_CString::CString
lea edi, [esi + 0xd8]
mov dword [esp + 0x18], edi
mov dword [edi], 0x519980
mov ecx, edi
mov byte [esp + 0x24], 0x11
call fcn.00491a30
lea ecx, [esi + 0xac]
mov dword [edi], 0x514bb8
mov byte [esp + 0x24], 6
call fcn.004822f0
lea ecx, [esi + 0x94]
mov byte [esp + 0x24], 5
call fcn.00486b50
lea edi, [esi + 0x78]
mov dword [esp + 0x18], edi
mov dword [edi], 0x519994
mov eax, dword [edi + 4]
mov byte [esp + 0x24], 0x12
test eax, eax
je 0x464d1d
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [edi], 0x514bb8
lea edi, [esi + 0x64]
mov dword [esp + 0x18], edi
mov dword [edi], 0x5199a8
mov eax, dword [edi + 4]
mov byte [esp + 0x24], 0x13
test eax, eax
je 0x464d45
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [edi], 0x514bb8
lea edi, [esi + 0x50]
mov dword [esp + 0x18], edi
mov dword [edi], 0x51617c
mov eax, dword [edi + 4]
mov byte [esp + 0x24], 0x14
test eax, eax
je 0x464d6d
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [edi], 0x514bb8
lea edi, [esi + 0x30]
mov byte [esp + 0x24], 1
lea eax, [edi + 8]
mov dword [edi], 0x514ca0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, edi
call fcn.004c8370
lea edi, [esi + 0x1c]
mov dword [esp + 0x18], edi
mov dword [edi], 0x5199bc
mov eax, dword [edi + 4]
mov byte [esp + 0x24], 0x15
test eax, eax
je 0x464dd8
mov ecx, dword [edi + 8]
mov ebx, eax
mov edx, ecx
dec ecx
test edx, edx
je 0x464dcc
lea ebp, [ecx + 1]
push 0
mov ecx, ebx
call fcn.0046ba70
add ebx, 0x218
dec ebp
jne 0x464dba
mov eax, dword [edi + 4]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esi + 8]
mov dword [edi], 0x514bb8
mov dword [esp + 0x24], 0xffffffff
call fcn.00469cf0
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret