Function at 0x40d790
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4378c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3b4
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
je 0x40e318
mov eax, dword [esi + 4]
test eax, eax
je 0x40e318
mov ebx, dword [0x44aee0]
lea ecx, [ebp - 0x190]
call sub.MFC42.DLL_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_1
push esi
lea ecx, [ebp - 0x2bc]
mov byte [ebp - 4], 2
call fcn.0042ee00
push ebx
push 0x69
lea eax, [ebp - 0x2b0]
push str.F_TYPE_ID_ld_AND_F_DEV_OWNER_ld
push eax
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::Format_1
add esp, 0x10
or edi, 0xffffffff
lea ecx, [ebp - 0x2bc]
push 0
push 0
push edi
call sub.MFC42.DLL_CRecordset::Open
mov eax, dword [ebp - 0x1f4]
test eax, eax
je 0x40d8a1
push 0x69
lea ecx, [ebp - 0x2b0]
push str.F_TYPE_ID_ld_AND_F_DEV_OWNER0
push ecx
call sub.MFC42.DLL_CString::Format_1
add esp, 0xc
lea ecx, [ebp - 0x2bc]
call sub.MFC42.DLL_CRecordset::Requery
mov eax, dword [ebp - 0x1f4]
test eax, eax
je 0x40d8a1
lea ecx, [ebp - 0x2bc]
call sub.MFC42.DLL_CRecordset::Close
lea ecx, [ebp - 0x1a4]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x2bc]
mov byte [ebp - 4], 2
call fcn.0042d570
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], edi
jmp 0x40e313
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x1a4]
push edx
lea ecx, [eax + 0x8c]
call sub.MFC42.DLL_CString::operator_1
push esi
lea ecx, [ebp - 0x188]
call fcn.0042eb10
mov ecx, dword [ebp - 0x1a8]
push str.DefaultPrinter
push ecx
lea edx, [ebp - 0x17c]
push str.F_DEV_ID_ld_AND_F_PARAM_NAME_s
push edx
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::Format_1
add esp, 0x10
lea ecx, [ebp - 0x188]
push 0
push 0
push edi
call sub.MFC42.DLL_CRecordset::Open
mov eax, dword [ebp - 0xc0]
test eax, eax
jne 0x40d912
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x64]
push eax
add ecx, 0x88
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [ebp - 0x14]
lea esi, [edx + 0x88]
mov ecx, esi
call sub.MFC42.DLL_CString::TrimRight
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40d960
push 0x44adc0
push str.Printer
lea ecx, [ebp - 0x18]
push str.Print
push ecx
mov ecx, 0x44add0
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
mov ecx, esi
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x1a8]
push str.DontSelPrn
push edx
lea eax, [ebp - 0x17c]
push str.F_DEV_ID_ld_AND_F_PARAM_NAME_s
push eax
call sub.MFC42.DLL_CString::Format_1
add esp, 0x10
lea ecx, [ebp - 0x188]
call sub.MFC42.DLL_CRecordset::Requery
mov eax, dword [ebp - 0xc0]
test eax, eax
jne 0x40d9af
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
xor edx, edx
test eax, eax
mov eax, dword [ebp - 0x14]
setg dl
mov dword [eax + 0x6c], edx
mov ecx, dword [ebp - 0x1a8]
push str.SendMode
push ecx
lea edx, [ebp - 0x17c]
push str.F_DEV_ID_ld_AND_F_PARAM_NAME_s
push edx
call sub.MFC42.DLL_CString::Format_1
add esp, 0x10
lea ecx, [ebp - 0x188]
call sub.MFC42.DLL_CRecordset::Requery
mov eax, dword [ebp - 0xc0]
test eax, eax
jne 0x40d9f7
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
mov ecx, dword [ebp - 0x14]
add esp, 4
mov dword [ecx + 0x70], eax
mov edx, dword [ebp - 0x1a8]
push str.Image_path
push edx
lea eax, [ebp - 0x17c]
push str.F_DEV_ID_ld_AND_F_PARAM_NAME_s
push eax
call sub.MFC42.DLL_CString::Format_1
add esp, 0x10
lea ecx, [ebp - 0x188]
call sub.MFC42.DLL_CRecordset::Requery
mov eax, dword [ebp - 0xc0]
test eax, eax
jne 0x40da3b
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [edx + 0x54]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [ebp - 0x14]
lea esi, [eax + 0x54]
mov ecx, esi
call sub.MFC42.DLL_CString::TrimRight
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40da7b
push 0
push eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
je 0x40da7b
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40da7b
mov eax, dword [esi]
push eax
call fcn.004311e0
add esp, 4
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40da94
push 0
push eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
je 0x40dad0
lea ecx, [ebp - 0x3c0]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x3c0]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::operator
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40dac4
cmp byte [eax + ecx - 1], 0x5c
je 0x40dad0
push 0x448f70
mov ecx, esi
call fcn.0042ca54
push 0x44adc0
push str.FilmSizeID
lea eax, [ebp - 0x18]
push str.Settings
push eax
mov ecx, 0x44add0
call sub.MFC42.DLL_CWinApp::GetProfileStringA
mov ecx, dword [ebp - 0x14]
push eax
mov byte [ebp - 4], 7
lea esi, [ecx + 0x58]
mov ecx, esi
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
mov edx, dword [esi]
mov eax, dword [edx - 8]
test eax, eax
jne 0x40db69
mov eax, dword [ebp - 0x1a8]
push str.Film_Size_ID
push eax
lea ecx, [ebp - 0x17c]
push str.F_DEV_ID_ld_AND_F_PARAM_NAME_s
push ecx
call sub.MFC42.DLL_CString::Format_1
add esp, 0x10
lea ecx, [ebp - 0x188]
call sub.MFC42.DLL_CRecordset::Requery
mov eax, dword [ebp - 0xc0]
test eax, eax
jne 0x40db54
lea edx, [ebp - 0x64]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40db69
push str.14INX17IN
mov ecx, esi
call sub.MFC42.DLL_CString::operator
push 0x44adc0
push str.FilmOrien
lea ecx, [ebp - 0x18]
push str.Settings
push ecx
mov ecx, 0x44add0
call sub.MFC42.DLL_CWinApp::GetProfileStringA
mov edx, dword [ebp - 0x14]
push eax
mov byte [ebp - 4], 8
lea esi, [edx + 0x5c]
mov ecx, esi
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40dc02
mov ecx, dword [ebp - 0x1a8]
push str.Film_Orientation
push ecx
lea edx, [ebp - 0x17c]
push str.F_DEV_ID_ld_AND_F_PARAM_NAME_s
push edx
call sub.MFC42.DLL_CString::Format_1
add esp, 0x10
lea ecx, [ebp - 0x188]
call sub.MFC42.DLL_CRecordset::Requery
mov eax, dword [ebp - 0xc0]
test eax, eax
jne 0x40dbed
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esi]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40dc02
push str.PORTRAIT
mov ecx, esi
call sub.MFC42.DLL_CString::operator
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x4c]
mov dword [edx + 0x638], edi
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString_1
push ebx
mov ebx, 0xd
push 0x21
push ebx
lea eax, [ebp - 0x2b0]
push str.__F_TYPE_ID_ld_OR_F_TYPE_ID_ld___AND___F_DEV_OWNER0_OR_F_DEV_OWNER_ld__
push eax
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::Format_1
add esp, 0x14
lea ecx, [ebp - 0x2bc]
call sub.MFC42.DLL_CRecordset::Requery
mov eax, dword [ebp - 0x1f4]
test eax, eax
jne 0x40e1d1
mov ecx, dword [ebp - 0x1a8]
lea edx, [ebp - 0x1a4]
mov dword [ebp - 0x50], ecx
push edx
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CString::operator_1
push 0
push str.PrintType
push str.Print
mov ecx, 0x44add0
call sub.MFC42.DLL_CWinApp::GetProfileIntA
push 0x64
push str.BackColor
push str.Print
mov ecx, 0x44add0
mov dword [ebp - 0x48], eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
mov dword [ebp - 0x44], eax
push 0x4489e4
push str.MaxSize
lea eax, [ebp - 0x18]
push str.Print
push eax
mov ecx, 0x44add0
call sub.MFC42.DLL_CWinApp::GetProfileStringA
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x40], eax
call sub.MFC42.DLL_CString::CString
push 0x4489e4
push str.FilmDensity
lea ecx, [ebp - 0x58]
push str.Print
push ecx
mov ecx, 0x44add0
call sub.MFC42.DLL_CWinApp::GetProfileStringA
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x3c], eax
call sub.MFC42.DLL_CString::CString
push 0
push str.SameSize
push str.Print
mov ecx, 0x44add0
call sub.MFC42.DLL_CWinApp::GetProfileIntA
push 0
push str.AdjustToMaxSize
push str.Print
mov ecx, 0x44add0
mov dword [ebp - 0x38], eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
push 0x4489e4
push str.Adjust.WinWidth
lea edx, [ebp - 0x60]
push str.Print
push edx
mov ecx, 0x44add0
mov dword [ebp - 0x34], eax
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString
push 0x4489e4
push str.Adjust.WinCenter
lea eax, [ebp - 0x5c]
push str.Print
push eax
mov ecx, 0x44add0
call sub.MFC42.DLL_CWinApp::GetProfileStringA
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString
push 0
push str.RawImage
push str.Print
mov ecx, 0x44add0
call sub.MFC42.DLL_CWinApp::GetProfileIntA
xor ecx, ecx
push str.AdvPrintType
cmp ecx, eax
mov eax, 2
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1a8]
mov dword [ebp - 0x24], ecx
sbb edx, edx
push eax
lea ecx, [ebp - 0x17c]
push str.F_DEV_ID_ld_AND_F_PARAM_NAME_s
neg edx
push ecx
mov dword [ebp - 0x28], edx
call sub.MFC42.DLL_CString::Format_1
add esp, 0x10
lea ecx, [ebp - 0x188]
call sub.MFC42.DLL_CRecordset::Requery
mov eax, dword [ebp - 0xc0]
test eax, eax
jne 0x40de28
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x1a8]
push str.AdvBackColor
push eax
lea ecx, [ebp - 0x17c]
push str.F_DEV_ID_ld_AND_F_PARAM_NAME_s
push ecx
call sub.MFC42.DLL_CString::Format_1
add esp, 0x10
lea ecx, [ebp - 0x188]
call sub.MFC42.DLL_CRecordset::Requery
mov eax, dword [ebp - 0xc0]
test eax, eax
jne 0x40de6d
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x1a8]
push str.AdvMaxSize
push eax
lea ecx, [ebp - 0x17c]
push str.F_DEV_ID_ld_AND_F_PARAM_NAME_s
push ecx
call sub.MFC42.DLL_CString::Format_1
add esp, 0x10
lea ecx, [ebp - 0x188]
call sub.MFC42.DLL_CRecordset::Requery
mov eax, dword [ebp - 0xc0]
test eax, eax
jne 0x40deb2
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x1a8]
push str.AdvFilmDensity
push eax
lea ecx, [ebp - 0x17c]
push str.F_DEV_ID_ld_AND_F_PARAM_NAME_s
push ecx
call sub.MFC42.DLL_CString::Format_1
add esp, 0x10
lea ecx, [ebp - 0x188]
call sub.MFC42.DLL_CRecordset::Requery
mov eax, dword [ebp - 0xc0]
test eax, eax
jne 0x40def7
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x1a8]
push str.AdvSameSize
push eax
lea ecx, [ebp - 0x17c]
push str.F_DEV_ID_ld_AND_F_PARAM_NAME_s
push ecx
call sub.MFC42.DLL_CString::Format_1
add esp, 0x10
lea ecx, [ebp - 0x188]
call sub.MFC42.DLL_CRecordset::Requery
mov eax, dword [ebp - 0xc0]
test eax, eax
jne 0x40df42
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x1a8]
push str.AdvAdjToMaxSize
push eax
lea ecx, [ebp - 0x17c]
push str.F_DEV_ID_ld_AND_F_PARAM_NAME_s
push ecx
call sub.MFC42.DLL_CString::Format_1
add esp, 0x10
lea ecx, [ebp - 0x188]
call sub.MFC42.DLL_CRecordset::Requery
mov eax, dword [ebp - 0xc0]
test eax, eax
jne 0x40df8d
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x1a8]
push str.AdvAdjW
push eax
lea ecx, [ebp - 0x17c]
push str.F_DEV_ID_ld_AND_F_PARAM_NAME_s
push ecx
call sub.MFC42.DLL_CString::Format_1
add esp, 0x10
lea ecx, [ebp - 0x188]
call sub.MFC42.DLL_CRecordset::Requery
mov eax, dword [ebp - 0xc0]
test eax, eax
jne 0x40dfce
lea edx, [ebp - 0x64]
lea ecx, [ebp - 0x30]
push edx
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [ebp - 0x1a8]
push str.AdvAdjC
push eax
lea ecx, [ebp - 0x17c]
push str.F_DEV_ID_ld_AND_F_PARAM_NAME_s
push ecx
call sub.MFC42.DLL_CString::Format_1
add esp, 0x10
lea ecx, [ebp - 0x188]
call sub.MFC42.DLL_CRecordset::Requery
mov eax, dword [ebp - 0xc0]
test eax, eax
jne 0x40e00f
lea edx, [ebp - 0x64]
lea ecx, [ebp - 0x2c]
push edx
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [ebp - 0x1a8]
push str.AdvRawImage
push eax
lea ecx, [ebp - 0x17c]
push str.F_DEV_ID_ld_AND_F_PARAM_NAME_s
push ecx
call sub.MFC42.DLL_CString::Format_1
add esp, 0x10
lea ecx, [ebp - 0x188]
call sub.MFC42.DLL_CRecordset::Requery
mov eax, dword [ebp - 0xc0]
test eax, eax
jne 0x40e05a
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1a8]
push str.AdvMergePaper
push eax
lea ecx, [ebp - 0x17c]
push str.F_DEV_ID_ld_AND_F_PARAM_NAME_s
push ecx
call sub.MFC42.DLL_CString::Format_1
add esp, 0x10
lea ecx, [ebp - 0x188]
call sub.MFC42.DLL_CRecordset::Requery
mov eax, dword [ebp - 0xc0]
test eax, eax
jne 0x40e0a5
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1a8]
push str.AdvBorderWidth
push eax
lea ecx, [ebp - 0x17c]
push str.F_DEV_ID_ld_AND_F_PARAM_NAME_s
push ecx
call sub.MFC42.DLL_CString::Format_1
add esp, 0x10
lea ecx, [ebp - 0x188]
call sub.MFC42.DLL_CRecordset::Requery
mov eax, dword [ebp - 0xc0]
test eax, eax
jne 0x40e0ea
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1a8]
push str.AdvInterspace
push eax
lea ecx, [ebp - 0x17c]
push str.F_DEV_ID_ld_AND_F_PARAM_NAME_s
push ecx
call sub.MFC42.DLL_CString::Format_1
add esp, 0x10
lea ecx, [ebp - 0x188]
call sub.MFC42.DLL_CRecordset::Requery
mov eax, dword [ebp - 0xc0]
test eax, eax
jne 0x40e12f
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x50]
sub esp, 0x38
mov esi, esp
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x54], esp
push ecx
lea ecx, [esi + 4]
mov dword [ebp - 0x54], esi
mov dword [esi], eax
call fcn.0042c6ee
mov edx, dword [ebp - 0x48]
mov byte [ebp - 4], 0xe
mov dword [esi + 8], edx
mov eax, dword [ebp - 0x44]
mov dword [esi + 0xc], eax
mov ecx, dword [ebp - 0x40]
mov dword [esi + 0x10], ecx
mov edx, dword [ebp - 0x3c]
mov dword [esi + 0x14], edx
mov eax, dword [ebp - 0x38]
mov dword [esi + 0x18], eax
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
mov dword [esi + 0x1c], ecx
push edx
lea ecx, [esi + 0x20]
call fcn.0042c6ee
lea eax, [ebp - 0x2c]
lea ecx, [esi + 0x24]
push eax
mov byte [ebp - 4], 0xf
call fcn.0042c6ee
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 0xb
mov dword [esi + 0x28], ecx
mov edx, dword [ebp - 0x24]
mov dword [esi + 0x2c], edx
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
mov dword [esi + 0x30], eax
mov ecx, dword [ebp - 0x1c]
mov dword [esi + 0x34], ecx
lea ecx, [edx + 0x63c]
call fcn.00410ac0
mov eax, dword [ebp - 0x2bc]
push 1
push 1
lea ecx, [ebp - 0x2bc]
call dword [eax + 0x1c]
jmp 0x40dc57
mov ecx, dword [ebp - 0x14]
mov ebx, dword [sym.imp.MSVCRT.dll__mbscmp]
xor esi, esi
mov edi, dword [ecx + 0x88]
mov edx, dword [ebp - 0x14]
cmp esi, dword [edx + 0x644]
jge 0x40e21d
mov ecx, edx
lea eax, [esi*8]
sub eax, esi
push edi
mov edx, dword [ecx + 0x640]
lea eax, [edx + eax*8 + 4]
mov eax, dword [eax]
push eax
call ebx
add esp, 8
test eax, eax
jne 0x40e21a
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x638], esi
jmp 0x40e235
inc esi
jmp 0x40e1e2
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0x88]
mov dword [eax + 0x638], 0xffffffff
call sub.MFC42.DLL_CString::Empty
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x634], 1
lea ecx, [ebp - 0x188]
call sub.MFC42.DLL_CRecordset::Close
lea ecx, [ebp - 0x2bc]
call sub.MFC42.DLL_CRecordset::Close
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x11
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x13
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x12
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x188]
mov byte [ebp - 4], 3
call fcn.0042d570
lea ecx, [ebp - 0x1a4]
mov byte [ebp - 4], 0x14
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x2bc]
mov byte [ebp - 4], 2
call fcn.0042d570
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_AfxTryCleanup
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call sub.MFC42.DLL_AfxTryCleanup
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4