Function at 0x40782c
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40982e
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x15c], ebx
je 0x40784d
push ebx
push ebx
push 0x4444dc
call sub.MFC42.DLL_AfxMessageBox
push ebx
call dword [sym.imp.MSVCRT.dll_exit]
lea ecx, [esp + 0x1c]
call fcn.00407c70
push 0x4445dc
lea ecx, [esp + 0x18]
mov dword [esp + 0x170], ebx
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push 0x4446cc
mov byte [esp + 0x174], 1
call fcn.00408030
lea ecx, [esp + 0x14]
mov byte [esp + 0x16c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
call fcn.004086f8
push str.VER_DLL
lea ecx, [esp + 0x10]
mov byte [esp + 0x170], 2
call sub.MFC42.DLL_CString::CString_3
push str.APP_CONFIG
lea ecx, [esp + 0x18]
mov byte [esp + 0x170], 3
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x18]
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x178], 4
call fcn.004083c0
lea ecx, [esp + 0x14]
mov byte [esp + 0x16c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x16c], 2
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 8], 1
jge 0x40792a
push ebx
push ebx
push 0x4442f0
call sub.MFC42.DLL_AfxMessageBox
push ebx
call dword [sym.imp.MSVCRT.dll_exit]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x61]
mov byte [esp + 0x60], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x60]
push 0x104
push edx
push ebx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x60]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::CString_3
push 0x5c
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 5
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [esp + 0xc]
push eax
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 6
call fcn.004086fe
lea ecx, [esp + 0xc]
mov byte [esp + 0x16c], 5
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x10]
push eax
push ecx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 7
call fcn.004086fe
lea ecx, [esp + 0xc]
mov byte [esp + 0x16c], 5
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi + 0x150], eax
jne 0x407a56
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push str.load
push ecx
call sub.MFC42.DLL_operator_2
push str._fail.
lea edx, [esp + 0x10]
push eax
push edx
mov byte [esp + 0x178], 8
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push ebx
push ebx
push eax
mov byte [esp + 0x178], 9
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0xc]
mov byte [esp + 0x16c], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x16c], 5
call sub.MFC42.DLL_CString::CString
push ebx
call dword [sym.imp.MSVCRT.dll_exit]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LoadVerDataDll
push eax
call edi
mov dword [esi + 0x154], eax
mov eax, dword [esi + 0x150]
push str.UnloadVerDataDll
push eax
call edi
mov ecx, dword [esi + 0x154]
mov dword [esi + 0x158], eax
cmp ecx, ebx
je 0x407b31
cmp eax, ebx
je 0x407b31
push ebx
call ecx
add esp, 4
cmp eax, ebx
mov dword [esi + 0x15c], eax
jne 0x407ad6
mov ecx, dword [esi + 0x150]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
push ebx
push str.load_LoadVerImp_function_fail.
mov dword [esi + 0x150], ebx
mov dword [esi + 0x154], ebx
mov dword [esi + 0x158], ebx
call sub.MFC42.DLL_AfxMessageBox
push ebx
call dword [sym.imp.MSVCRT.dll_exit]
mov ecx, dword [esi + 0x150]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0x1c]
lea ecx, [esp + 0x10]
mov byte [esp + 0x16c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x16c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x16c], 0xffffffff
call fcn.00407cf0
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
mov edx, dword [esi + 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
push ebx
push str.load_LoadVerImp_function_fail.
mov dword [esi + 0x150], ebx
mov dword [esi + 0x154], ebx
mov dword [esi + 0x158], ebx
call sub.MFC42.DLL_AfxMessageBox
push ebx
call dword [sym.imp.MSVCRT.dll_exit]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop