Function at 0x4068bc
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4096e9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x174
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x38]
call fcn.00407c70
xor ebx, ebx
push 0x4445dc
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18c], ebx
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 0x18]
lea ecx, [esp + 0x38]
push eax
push 0x4446cc
mov byte [esp + 0x190], 1
call fcn.00408030
lea ecx, [esp + 0x18]
mov byte [esp + 0x188], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
call fcn.004086f8
push str.BL_DLL
lea ecx, [esp + 0x14]
mov byte [esp + 0x18c], 2
call sub.MFC42.DLL_CString::CString_3
push str.APP_CONFIG
lea ecx, [esp + 0x1c]
mov byte [esp + 0x18c], 3
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x194], 4
call fcn.004083c0
lea ecx, [esp + 0x18]
mov byte [esp + 0x188], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x188], 2
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 8], 1
jge 0x40699f
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 + 0x7d]
mov byte [esp + 0x7c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x7c]
push 0x104
push edx
push ebx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x7c]
lea ecx, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::CString_3
push 0x5c
lea ecx, [esp + 0x10]
mov byte [esp + 0x18c], 5
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x18c], 6
call fcn.004086fe
lea ecx, [esp + 0x10]
mov byte [esp + 0x188], 5
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x14]
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x18c], 7
call fcn.004086fe
lea ecx, [esp + 0x10]
mov byte [esp + 0x188], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFileFind::CFileFind
mov edx, dword [esp + 0xc]
push ebx
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x190], 8
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x406ada
lea eax, [esp + 0xc]
lea ecx, [esp + 0x18]
push eax
push 0x4442d8
push ecx
call sub.MFC42.DLL_operator_2
push 0x443cf0
lea edx, [esp + 0x14]
push eax
push edx
mov byte [esp + 0x194], 9
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push ebx
push ebx
push eax
mov byte [esp + 0x194], 0xa
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x10]
mov byte [esp + 0x188], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x188], 8
call sub.MFC42.DLL_CString::CString
push ebx
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi + 0x170], eax
jne 0x406b00
push ebx
push ebx
push str.Load_Dll_Fail
call sub.MFC42.DLL_AfxMessageBox
jmp 0x406ba4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LoadMagicDLDll
push eax
call edi
mov ecx, dword [esi + 0x170]
push str.UnloadMagicDLDll
push ecx
mov dword [esi + 0x174], eax
call edi
mov ecx, dword [esi + 0x174]
mov dword [esi + 0x178], eax
cmp ecx, ebx
jne 0x406b47
push ebx
push ebx
push str.Find_Function_LoadDll_Fail
call sub.MFC42.DLL_AfxMessageBox
mov edx, dword [esi + 0x170]
push edx
jmp 0x406b7d
cmp eax, ebx
jne 0x406b54
push ebx
push ebx
push str.Find_Function_ReleaseDll_Fail
jmp 0x406b71
mov edx, dword [esi + 0x17c]
push edx
call ecx
add esp, 4
cmp eax, ebx
mov dword [esi + 0x16c], eax
jne 0x406b97
push ebx
push ebx
push str.Load_MagicDL_Interface_Fail
call sub.MFC42.DLL_AfxMessageBox
mov eax, dword [esi + 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x174], ebx
mov dword [esi + 0x178], ebx
mov dword [esi + 0x170], ebx
jmp 0x406ba4
mov edx, dword [eax]
push 0x405f30
push esi
mov ecx, eax
call dword [edx + 4]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x188], 5
call fcn.00408746
lea ecx, [esp + 0xc]
mov byte [esp + 0x188], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x188], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov dword [esp + 0x188], 0xffffffff
call fcn.00407cf0
mov ecx, dword [esp + 0x180]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x180
ret