Function at 0x40a500
Capabilities:
Create thread
Terminate thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x417940
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.0040b6d0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x40a744
push eax
lea ecx, [esp + 0x14]
call fcn.00415e3c
lea eax, [esp + 0x10]
mov dword [esp + 0x28], 0
push eax
call fcn.004146f0
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.00415bc0
add esp, 0xc
lea edi, [ebp + 0x354]
push eax
mov ecx, edi
mov byte [esp + 0x2c], 1
mov dword [esp + 0x34], edi
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
test esi, esi
mov dword [ebp + 0x350], eax
je 0x40a5c3
mov ebx, dword [esp + 0x40]
push ebx
call sub.MFC42.DLL_operatornew
mov ecx, ebx
mov edi, eax
mov edx, ecx
mov dword [ebp + 0x370], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x30]
mov dword [ebp + 0x374], ebx
lea eax, [esp + 0x1c]
push eax
push 0
push ebp
push 0x40a760
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
mov eax, dword [esp + 0x38]
cmp eax, 0xffffffff
jne 0x40a60c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x40a662
xor esi, esi
jmp 0x40a710
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push eax
push esi
call ebx
cmp eax, 0x102
jne 0x40a5ed
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x7d0
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebp
call fcn.0040aa60
mov ecx, ebp
call fcn.0040b730
mov ecx, edi
call sub.MFC42.DLL_CString::Empty
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40a744
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40a678
xor esi, esi
jmp 0x40a710
mov esi, dword [esp + 0x48]
mov edx, dword [ebp + 0x388]
mov ebx, dword [esp + 0x54]
mov dword [esi], edx
mov eax, dword [ebp + 0x38c]
mov dword [ebx], eax
mov ecx, dword [esi]
inc ecx
push ecx
call sub.MFC42.DLL_operatornew
mov edx, dword [esp + 0x48]
mov edi, eax
xor eax, eax
mov dword [edx], edi
mov ecx, dword [esi]
inc ecx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x48]
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi]
mov ecx, dword [ebp + 0x358]
mov esi, dword [sym.imp.MSVCRT.dll_memmove]
push eax
mov eax, dword [edx]
push ecx
push eax
call esi
mov ecx, dword [ebx]
inc ecx
push ecx
call sub.MFC42.DLL_operatornew
mov edx, dword [esp + 0x64]
mov edi, eax
xor eax, eax
mov dword [edx], edi
mov ecx, dword [ebx]
inc ecx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x64]
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx]
mov ecx, dword [ebp + 0x35c]
push eax
mov eax, dword [edx]
push ecx
push eax
call esi
mov edi, dword [esp + 0x50]
add esp, 0x20
mov esi, 1
mov ecx, ebp
call fcn.0040b730
mov ecx, ebp
call fcn.0040aa60
mov edx, dword [esp + 0x4c]
mov ecx, dword [ebp + 0x390]
mov dword [edx], ecx
mov ecx, edi
call sub.MFC42.DLL_CString::Empty
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x28