Function at 0x405fe0
Capabilities:
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x409942
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push edi
mov edi, ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x1c]
mov dword [esp + 0x134], 0
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 1
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0xc]
lea ecx, [edi + 0x3e0]
push eax
mov byte [esp + 0x138], 2
call sub.MFC42.DLL_CWnd::GetWindowTextA
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::GetBuffer
test eax, eax
jne 0x40606a
push eax
push eax
push 0x40d598
call sub.MFC42.DLL_AfxMessageBox
jmp 0x406418
push ebp
mov byte [edi + 0x790], 1
push 0
push 0x40d
mov ecx, edi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
push 0
push 0x3f0
mov ecx, edi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
lea edx, [esp + 0x30]
push 0x100
push edx
push 0x40d58c
push 0x40d390
call fcn.004086d0
add esp, 0x10
lea eax, [esp + 0x30]
mov ecx, edi
push eax
push 0x421
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov ecx, dword [edi + 0x240]
xor ebp, ebp
push ebp
push ebp
push 0x1004
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jle 0x4063a8
push ebx
push esi
lea ebx, [edi + 0x220]
push ebp
mov ecx, ebx
call sub.MFC42.DLL_CListCtrl::GetCheck
test eax, eax
je 0x406387
push 4
lea edx, [esp + 0x24]
push ebp
push edx
mov ecx, ebx
call sub.MFC42.DLL_CListCtrl::GetItemText
lea ecx, [esp + 0x10]
mov byte [esp + 0x140], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x140], 4
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
mov ecx, edi
mov byte [esp + 0x14c], 5
call fcn.00405590
test eax, eax
jne 0x406189
lea eax, [esp + 0x38]
push 0x100
push eax
push 0x40d5c4
push 0x40d390
call fcn.004086d0
add esp, 0x10
lea ecx, [esp + 0x38]
push ecx
push 2
push ebp
mov ecx, ebx
call sub.MFC42.DLL_CListCtrl::SetItemText
jmp 0x406354
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, edi
mov byte [esp + 0x150], 6
call fcn.00405850
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4061f0
lea ecx, [esp + 0x38]
push 0x100
push ecx
push 0x40d5b4
push 0x40d390
call fcn.004086d0
add esp, 0x10
lea edx, [esp + 0x38]
mov ecx, ebx
push edx
push 2
push ebp
call sub.MFC42.DLL_CListCtrl::SetItemText
jmp 0x406343
lea esi, [edi + 0x7b0]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 0x7e0]
push esi
inc ecx
mov dword [edi + 0x7e0], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x14
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x30], esi
test esi, esi
mov byte [esp + 0x140], 7
je 0x406247
lea ecx, [esi + 4]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x10]
mov byte [esp + 0x140], 8
call sub.MFC42.DLL_CString::CString_2
jmp 0x406249
xor esi, esi
push 1
lea eax, [esp + 0x38]
push ebp
push eax
mov ecx, ebx
mov byte [esp + 0x14c], 6
call sub.MFC42.DLL_CListCtrl::GetItemText
lea ebx, [esi + 4]
push eax
mov ecx, ebx
mov byte [esp + 0x144], 9
call fcn.00408d0a
lea ecx, [esp + 0x34]
mov byte [esp + 0x140], 6
call sub.MFC42.DLL_CString::CString
push 9
lea ecx, [esp + 0x30]
push ebp
push ecx
lea ecx, [edi + 0x220]
call sub.MFC42.DLL_CListCtrl::GetItemText
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
lea ecx, [esp + 0x2c]
mov word [esi + 8], ax
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x14]
lea ecx, [esi + 0x10]
push edx
mov dword [esi], edi
mov dword [esi + 0xc], ebp
call fcn.00408d0a
push 0
push 4
push 0
push 0
push esi
push 0x402b70
call sub.MFC42.DLL_AfxBeginThread
test eax, eax
jne 0x406332
lea eax, [edi + 0x7b0]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [edi + 0x7e0]
lea eax, [edi + 0x7b0]
dec edx
push eax
mov dword [edi + 0x7e0], edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
mov dword [esp + 0x30], esi
je 0x406343
lea ecx, [esi + 0x10]
mov byte [esp + 0x140], 0xa
call sub.MFC42.DLL_CString::CString
mov ecx, ebx
mov byte [esp + 0x140], 6
call sub.MFC42.DLL_CString::CString
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x406343
mov dword [eax + 0x28], 1
mov eax, dword [eax + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
lea ecx, [esp + 0x14]
mov byte [esp + 0x140], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x140], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x140], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x140], 2
call sub.MFC42.DLL_CString::CString
mov ecx, dword [edi + 0x240]
push 0
push 0
push 0x1004
push ecx
inc ebp
call dword [sym.imp.USER32.dll_SendMessageA]
cmp ebp, eax
jl 0x4060f0
pop esi
pop ebx
mov eax, dword [edi + 0x7e0]
pop ebp
test eax, eax
jne 0x406418
lea edx, [esp + 0x2c]
push 0x100
push edx
push 0x40d530
push 0x40d390
call fcn.004086d0
add esp, 0x10
lea eax, [esp + 0x2c]
mov ecx, edi
push eax
push 0x421
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov byte [edi + 0x790], 0
push 1
push 0x40d
mov ecx, edi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
push 1
push 0x3f0
mov ecx, edi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x134], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x134], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x12c]
pop edi
mov dword fs:[0], ecx
add esp, 0x134
ret