Function at 0x4164a0
Capabilities:
Create thread
Resume thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x437dd8
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x458]
cmp eax, 2
jne 0x416506
mov eax, dword [esi + 0x41c]
xor ebx, ebx
lea edi, [esi + 0x194]
push ebx
push eax
mov ecx, edi
call fcn.0040d9c0
cmp dword [esi + 0x41c], ebx
jne 0x4167d5
mov ecx, edi
call fcn.0040d930
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
xor ebx, ebx
cmp eax, 1
jne 0x41652f
cmp dword [esi + 0x41c], ebx
jne 0x41652f
mov ecx, esi
call fcn.00416240
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
call fcn.004096c0
mov ebp, eax
mov eax, dword [esi + 0x420]
cmp eax, ebx
jne 0x4166cf
cmp dword [esi + 0x41c], ebx
je 0x416581
cmp dword [esi + 0x1eb8], ebx
je 0x4167d5
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x416566
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push ebx
mov ecx, ebp
call fcn.004093b0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov eax, dword [esi + 0x2f4]
cmp eax, ebx
je 0x4165aa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x1eb8]
mov dword [esi + 0x2f4], ebx
cmp eax, ebx
je 0x4165aa
push ebx
mov ecx, ebp
call fcn.004093b0
call fcn.00404da0
test eax, eax
jne 0x4165db
mov ecx, dword [esi + 0x20]
push ebx
push 0x44114c
push 0x449e08
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ebx
push edx
push ebx
push esi
push 0x41b760
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x442a0c
push 0x3eb
mov ecx, esi
mov dword [esi + 0x2f4], eax
mov dword [esi + 0x420], 1
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
push 0x3ef
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call sub.MFC42.DLL_CWnd::ScreenToClient
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ecx, 0xa
sub ecx, edi
push 1
add eax, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], eax
sub edx, ecx
add eax, 0xfffffff6
push edx
lea edi, [esi + 0x234]
push eax
push ecx
push 0xa
mov ecx, edi
mov dword [esp + 0x2c], 0xa
call sub.MFC42.DLL_CWnd::MoveWindow
push 5
mov ecx, edi
call sub.MFC42.DLL_CWnd::ShowWindow
push ebx
push 0x3ef
mov ecx, esi
mov dword [esi + 0x6c], ebx
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
push 0x4429fc
mov ecx, edi
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov eax, dword [esi + 0x44c]
mov dword [esi + 0x64], ebx
inc eax
mov dword [esi + 0x44c], eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_4
lea edi, [esi + 0x234]
lea eax, [esp + 0x10]
push eax
mov ecx, edi
mov dword [esp + 0x34], ebx
call sub.MFC42.DLL_CWnd::GetWindowTextA
mov ecx, dword [esp + 0x10]
push 0x4429dc
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x416753
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x449dfc
call sub.MFC42.DLL_CString::CString_3
mov ecx, esi
call fcn.004150f0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esi + 0x2f4]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp dword [esi + 0x1eb8], ebx
je 0x416753
mov ecx, ebp
mov dword [esi + 0x64], ebx
call fcn.00409380
push 0x4429fc
mov ecx, edi
call sub.MFC42.DLL_CWnd::SetWindowTextA
cmp dword [esi + 0x41c], ebx
je 0x41679f
mov ebp, dword [esi + 0x450]
push 0x449df0
inc ebp
push 0x3eb
mov ecx, esi
mov dword [esi + 0x450], ebp
mov dword [esi + 0x420], ebx
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
push ebx
push 0x3eb
mov ecx, esi
mov dword [esi + 0x70], ebx
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
jmp 0x4167c4
mov ecx, esi
mov dword [esi + 0x420], ebx
call fcn.00413100
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x44e4f8
call sub.MFC42.DLL_CString::CString_3
mov ecx, esi
call fcn.004150f0
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret