Function at 0x40c2a0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4a79c3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
push 0x10
xor ebx, ebx
xor edi, edi
call sub.MFC42u.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
cmp esi, ebx
mov dword [esp + 0x4c], ebx
je 0x40c2f4
mov cl, byte [esp + 0x54]
mov al, byte [esp + 0x54]
mov byte [esi + 1], cl
mov ecx, esi
mov byte [esi], al
mov byte [esi + 8], bl
call fcn.0040ff10
jmp 0x40c2f6
xor esi, esi
cmp esi, ebx
mov dword [esp + 0x4c], 0xffffffff
je 0x40c4f0
mov eax, dword [esi + 4]
push ebp
push eax
lea edx, [esp + 0x18]
mov ecx, dword [eax]
push ecx
push edx
mov ecx, esi
call fcn.0040e880
mov ebp, dword [esp + 0x58]
mov edi, dword [ebp + 4]
mov eax, dword [ebp + 8]
cmp edi, eax
je 0x40c39b
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x24]
push ebx
push eax
push edi
call fcn.0040bb20
cmp eax, 1
jne 0x40c391
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x30]
push edi
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
call fcn.004a6210
lea edx, [esp + 0x34]
lea eax, [esp + 0x14]
push edx
push eax
mov ecx, esi
mov dword [esp + 0x58], 1
call fcn.0040e1d0
lea ecx, [esp + 0x44]
mov dword [esp + 0x50], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov eax, dword [ebp + 8]
add edi, 4
cmp edi, eax
jne 0x40c328
mov eax, dword [esi + 0xc]
pop ebp
cmp eax, ebx
jbe 0x40c481
cmp dword [esp + 0x58], 1
jne 0x40c44b
lea ecx, [esp + 0x18]
push ecx
push ebx
push esi
push fcn.0040c510
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x40c3ea
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
add esp, 0x44
ret 8
mov eax, dword [esi + 4]
lea edx, [esp + 0x10]
push eax
mov ecx, dword [eax]
push ecx
push edx
mov ecx, esi
call fcn.0040e880
mov eax, dword [esi + 4]
push eax
call sub.MFC42u.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x54]
mov dword [esi + 4], ebx
mov dword [esi + 0xc], ebx
xor edi, edi
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::constructor_void_]
mov eax, dword [0x545ea0]
dec eax
mov dword [0x545ea0], eax
jne 0x40c434
mov edi, dword [0x545ea4]
mov dword [0x545ea4], ebx
lea ecx, [esp + 0x54]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
cmp edi, ebx
je 0x40c4e2
jmp 0x40c4d9
push esi
call fcn.0040c510
cmp eax, 0xffffffff
jne 0x40c46b
mov ecx, dword [0x545f7c]
push ebx
push ebx
mov edx, dword [ecx*4 + 0x4cbb50]
push edx
call sub.MFC42u.DLL_AfxMessageBox
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
add esp, 0x44
ret 8
mov eax, dword [esi + 4]
push eax
mov ecx, dword [eax]
lea eax, [esp + 0x20]
push ecx
push eax
mov ecx, esi
call fcn.0040e880
mov ecx, dword [esi + 4]
push ecx
call sub.MFC42u.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x58]
mov dword [esi + 4], ebx
mov dword [esi + 0xc], ebx
xor edi, edi
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::constructor_void_]
mov eax, dword [0x545ea0]
dec eax
mov dword [0x545ea0], eax
jne 0x40c4cb
mov edi, dword [0x545ea4]
mov dword [0x545ea4], ebx
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
cmp edi, ebx
je 0x40c4e2
push edi
call sub.MFC42u.DLL_operatordelete
add esp, 4
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 4
jmp 0x40c46b
mov ecx, dword [esp + 0x44]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret 8