Function at 0x401811
Capabilities:
Get common file path
Read file on windows
Set current directory
Write file on windows

Disassembly:
jmp 0x440380
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x45238d
push eax
mov eax, 0x2230
mov dword fs:[0], esp
call fcn.0044d7b0
push ebx
push ebp
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov cl, byte [0x469ac8]
xor eax, eax
xor edx, edx
mov dword [esp + 0x2248], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [str.pim_]
mov dword [esp + 0x4d], edx
mov dword [esp + 0x48], eax
mov eax, dword [str.sch_]
mov word [esp + 0x51], dx
mov byte [esp + 0x4c], cl
mov cl, byte [0x469ac0]
mov byte [esp + 0x53], dl
mov dword [esp + 0x54], eax
mov dword [esp + 0x59], edx
lea eax, [ebx + 0x520]
mov byte [esp + 0x58], cl
mov word [esp + 0x5d], dx
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x63], dl
call fcn.0044cea6
push str.model
lea ecx, [esp + 0x18]
mov esi, 1
mov byte [esp + 0x224c], 1
call fcn.0044d1d0
push 0x460f1c
lea ecx, [esp + 0x18]
call fcn.0044d1d0
lea ecx, [ebx + 0x3ec]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
push 0x460f1c
lea ecx, [esp + 0x18]
call fcn.0044d1d0
lea edx, [esp + 0x1dc]
push edx
push 0x64
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ebx
lea ecx, [esp + 0x9c]
call fcn.004016bd
lea ecx, [esp + 0x98]
mov byte [esp + 0x2248], 2
call sub.MFC42.DLL_CDialog::DoModal
cmp dword [ebx + 0xba50], esi
jne 0x440a9c
mov eax, dword [ebx + 0xba58]
mov ebp, dword [esp + 0x2250]
cmp eax, esi
jne 0x440762
push 0
push 0x17
mov ecx, ebx
call fcn.0040168b
mov ecx, 0xf
xor eax, eax
mov edi, 0x46c65b
mov byte [0x46c658], 0x5c
mov byte [0x46c659], 3
mov byte [0x46c65a], 3
rep stosd dword es:[edi], eax
xor ecx, ecx
mov esi, 0x469ab8
mov cl, byte [0x46c65a]
mov edi, 0x46c65b
mov edx, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp]
mov ecx, ebx
add eax, 0x107c
mov dword [ebp + 0x14], 6
mov dword [ebp + 0xc], 0x46c658
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x18], 0x7d0
call fcn.0040202c
cmp eax, 0x17
je 0x440831
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + 0x5ac]
test eax, eax
je 0x440831
mov edx, dword [ebp]
add edx, 0x107c
mov dword [0x46c654], edx
mov al, byte [edx + 2]
test al, al
je 0x440569
push eax
call fcn.004012d0
add esp, 4
jmp 0x44149d
cmp word [edx + 3], 0
jne 0x44058c
push str.Pim_Directory
lea ecx, [esp + 0x14]
call fcn.0044cfde
mov edx, dword [esp + 0x10]
push 0
push 0
push edx
jmp 0x44086c
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x240]
lea esi, [edx + 7]
rep stosd dword es:[edi], eax
mov ecx, 0x271
lea edi, [esp + 0x240]
rep movsd dword es:[edi], dword [esi]
mov ax, word [edx + 3]
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x28], eax
xor esi, esi
mov ecx, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], eax
mov al, byte [esp + edx + 0x240]
test al, al
mov dword [esp + 0x2c], ecx
je 0x4405f7
inc edx
mov byte [esp + esi + 0x28], al
inc esi
mov dword [esp + 0x1c], edx
mov al, byte [esp + edx + 0x240]
mov dword [esp + 0x18], esi
test al, al
jne 0x4405da
mov ecx, dword [esp + 0x2c]
xor edx, edx
mov dword [esp + 0x40], edx
test cl, cl
mov dword [esp + 0x44], edx
je 0x440614
xor eax, eax
mov byte [esp + eax + 0x40], cl
mov cl, byte [esp + eax + 0x2d]
inc eax
test cl, cl
jne 0x440607
push 0
push 0x18
mov ecx, ebx
call fcn.0040168b
mov edx, dword [esp + 0x18]
mov ecx, 0xf
xor eax, eax
mov edi, 0x46c65c
mov byte [0x46c658], 0x5c
mov byte [0x46c659], 4
mov byte [0x46c65a], 0
mov byte [0x46c65b], dl
rep stosd dword es:[edi], eax
mov ecx, edx
lea esi, [esp + 0x28]
mov eax, ecx
mov edi, 0x46c65c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [edx + 4]
mov ecx, dword [ebp]
push ebp
add ecx, 0x107c
mov dword [ebp + 0x14], edi
mov dword [ebp + 0x10], ecx
mov ecx, ebx
mov dword [ebp + 0xc], 0x46c658
mov dword [ebp + 0x18], 0x1388
call fcn.0040202c
cmp eax, 0x17
je 0x440823
mov edx, dword [ebp + 4]
mov eax, dword [edx + 0x5ac]
test eax, eax
je 0x440823
mov eax, dword [ebp]
add eax, 0x107c
mov dword [0x46c654], eax
mov cl, byte [eax + 2]
test cl, cl
jne 0x440720
lea eax, [esp + 0x40]
push 0x469398
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ecx, dword [0x46c654]
mov esi, eax
push esi
mov ax, word [ecx + 5]
add ecx, 0xb
and eax, 0xffff
push eax
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
mov ecx, dword [0x46c654]
add esp, 0x18
cmp byte [ecx + 4], 1
je 0x440668
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x20]
add esp, 4
inc eax
mov dword [esp + 0x1c], eax
mov cl, byte [esp + eax + 0x240]
test cl, cl
je 0x440731
jmp 0x4405b5
mov dl, byte [eax + 2]
push edx
call fcn.004012d0
add esp, 4
jmp 0x44149d
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x114]
push eax
push 0x469a58
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0x114]
push 0
push 0
push edx
call sub.MFC42.DLL_AfxMessageBox
mov esi, 1
cmp dword [ebx + 0xba5c], esi
jne 0x440a80
push 0
push 0x17
mov ecx, ebx
call fcn.0040168b
mov ecx, 0xf
xor eax, eax
mov edi, 0x46c65b
mov byte [0x46c658], 0x5c
mov byte [0x46c659], 3
mov byte [0x46c65a], 3
rep stosd dword es:[edi], eax
xor ecx, ecx
mov esi, 0x469a54
mov cl, byte [0x46c65a]
mov edi, 0x46c65b
mov eax, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
mov dword [ebp + 0x14], 6
add ecx, 0x107c
mov dword [ebp + 0xc], 0x46c658
mov dword [ebp + 0x10], ecx
mov ecx, ebx
mov dword [ebp + 0x18], 0x7d0
call fcn.0040202c
cmp eax, 0x17
je 0x440a90
mov edx, dword [ebp + 4]
mov eax, dword [edx + 0x5ac]
test eax, eax
je 0x440a90
mov edx, dword [ebp]
add edx, 0x107c
mov dword [0x46c654], edx
mov al, byte [edx + 2]
test al, al
je 0x44084e
push eax
call fcn.004012d0
add esp, 4
jmp 0x44149d
push 0
push 0
push str.PIM_Data_Read_Fail___
jmp 0x4415c0
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.ERROR:_COM_error_on_link
call fcn.0044cea6
mov ecx, ebx
call fcn.004019ba
jmp 0x4415c5
cmp word [edx + 3], 0
jne 0x4408b4
push str.Sch_Directory
lea ecx, [esp + 0x14]
call fcn.0044cfde
mov eax, dword [esp + 0x10]
push 0
push 0
push eax
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x98]
mov byte [esp + 0x2248], 1
call fcn.0044cf84
lea ecx, [esp + 0x14]
mov byte [esp + 0x2248], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x2248], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x44164b
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x1240]
lea esi, [edx + 7]
rep stosd dword es:[edi], eax
mov ecx, 0x271
lea edi, [esp + 0x1240]
rep movsd dword es:[edi], dword [esi]
mov ax, word [edx + 3]
mov dword [esp + 0x20], eax
xor edx, edx
xor esi, esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], esi
mov ecx, edx
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x2c], ecx
mov al, byte [esp + edx + 0x1240]
test al, al
je 0x44091f
inc edx
mov byte [esp + esi + 0x28], al
inc esi
mov dword [esp + 0x1c], edx
mov al, byte [esp + edx + 0x1240]
mov dword [esp + 0x18], esi
test al, al
jne 0x440902
mov ecx, dword [esp + 0x2c]
xor eax, eax
mov dword [esp + 0x40], eax
test cl, cl
mov dword [esp + 0x44], eax
je 0x44093a
mov byte [esp + eax + 0x40], cl
mov cl, byte [esp + eax + 0x2d]
inc eax
test cl, cl
jne 0x44092d
push 0
push 0x18
mov ecx, ebx
call fcn.0040168b
mov edx, dword [esp + 0x18]
mov ecx, 0xf
xor eax, eax
mov edi, 0x46c65c
mov byte [0x46c658], 0x5c
mov byte [0x46c659], 4
mov byte [0x46c65a], 0
mov byte [0x46c65b], dl
rep stosd dword es:[edi], eax
mov ecx, edx
lea esi, [esp + 0x28]
mov eax, ecx
mov edi, 0x46c65c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [edx + 4]
mov ecx, dword [ebp]
push ebp
add ecx, 0x107c
mov dword [ebp + 0x14], edi
mov dword [ebp + 0x10], ecx
mov ecx, ebx
mov dword [ebp + 0xc], 0x46c658
mov dword [ebp + 0x18], 0x1388
call fcn.0040202c
cmp eax, 0x17
je 0x440823
mov edx, dword [ebp + 4]
mov eax, dword [edx + 0x5ac]
test eax, eax
je 0x440823
mov eax, dword [ebp]
add eax, 0x107c
mov dword [0x46c654], eax
mov cl, byte [eax + 2]
test cl, cl
jne 0x440a46
lea eax, [esp + 0x40]
push 0x469398
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ecx, dword [0x46c654]
mov esi, eax
push esi
mov ax, word [ecx + 5]
add ecx, 0xb
and eax, 0xffff
push eax
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
mov ecx, dword [0x46c654]
add esp, 0x18
cmp byte [ecx + 4], 1
je 0x44098e
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x20]
add esp, 4
inc eax
mov dword [esp + 0x1c], eax
mov cl, byte [esp + eax + 0x1240]
test cl, cl
je 0x440a4f
jmp 0x4408dd
mov dl, byte [eax + 2]
push edx
jmp 0x4411a4
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x114]
push eax
push 0x4699bc
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0x114]
push 0
push 0
push edx
call sub.MFC42.DLL_AfxMessageBox
mov esi, 1
push 0
push 0x1b
mov ecx, ebx
call fcn.0040168b
jmp 0x441610
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
jmp 0x440838
cmp dword [ebx + 0xba54], esi
jne 0x441610
mov eax, dword [ebx + 0xba58]
mov ebp, dword [esp + 0x2250]
cmp eax, esi
jne 0x440f68
push 0
push 0x17
mov ecx, ebx
call fcn.0040168b
mov ecx, 0xf
xor eax, eax
mov edi, 0x46c65b
mov byte [0x46c658], 0x5c
mov byte [0x46c659], 3
mov byte [0x46c65a], 3
rep stosd dword es:[edi], eax
xor ecx, ecx
mov esi, 0x469ab8
mov cl, byte [0x46c65a]
mov edi, 0x46c65b
mov eax, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
mov dword [ebp + 0x14], 6
add ecx, 0x107c
mov dword [ebp + 0xc], 0x46c658
mov dword [ebp + 0x10], ecx
mov ecx, ebx
mov dword [ebp + 0x18], 0x7d0
call fcn.0040202c
cmp eax, 0x17
je 0x440f5c
mov edx, dword [ebp + 4]
mov eax, dword [edx + 0x5ac]
test eax, eax
je 0x440f5c
mov edx, dword [ebp]
add edx, 0x107c
mov dword [0x46c654], edx
mov al, byte [edx + 2]
test al, al
jne 0x4411a3
cmp word [edx + 3], 0
jne 0x440b99
push 0x46996c
lea ecx, [esp + 0x14]
call fcn.0044cfde
mov eax, dword [esp + 0x10]
push 0
push 1
push eax
call sub.MFC42.DLL_AfxMessageBox
cmp eax, 2
jne 0x440cb2
jmp 0x4411ac
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x240]
lea esi, [edx + 7]
rep stosd dword es:[edi], eax
mov ecx, 0x271
lea edi, [esp + 0x240]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x1c]
mov al, byte [esp + ecx + 0x240]
test al, al
je 0x440bf6
inc ecx
mov byte [esp + edx + 0x28], al
inc edx
mov al, byte [esp + ecx + 0x240]
test al, al
jne 0x440bdd
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
push 0
push 0x19
mov ecx, ebx
call fcn.0040168b
mov edx, dword [esp + 0x18]
mov ecx, 0xf
xor eax, eax
mov edi, 0x46c65b
mov byte [0x46c658], 0x5c
mov byte [0x46c659], 6
mov byte [0x46c65a], dl
lea esi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov ecx, edx
mov edi, 0x46c65b
mov eax, ecx
add edx, 3
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
mov dword [ebp + 0x14], edx
add ecx, 0x107c
mov dword [ebp + 0xc], 0x46c658
mov dword [ebp + 0x10], ecx
mov ecx, ebx
mov dword [ebp + 0x18], 0x1388
call fcn.0040202c
cmp eax, 0x17
je 0x440823
mov edx, dword [ebp + 4]
mov eax, dword [edx + 0x5ac]
test eax, eax
je 0x440823
mov eax, dword [ebp]
add eax, 0x107c
mov dword [0x46c654], eax
mov cl, byte [eax + 2]
test cl, cl
jne 0x4411a0
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
mov cl, byte [esp + eax + 0x240]
test cl, cl
jne 0x440bba
lea ecx, [esp + 0x60]
call sub.MFC42.DLL_CFileFind::CFileFind
push 0
push 0x469964
lea ecx, [esp + 0x68]
mov byte [esp + 0x2250], 3
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x440ea0
lea ecx, [esp + 0x60]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], eax
push ecx
lea ecx, [esp + 0x64]
call sub.MFC42.DLL_CFileFind::GetFileName
mov eax, dword [eax]
lea edx, [esp + 0x4c]
push eax
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x4c]
push 0x469378
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x440ee7
mov ecx, dword [ebp + 4]
mov esi, eax
push esi
call fcn.0040200e
mov ecx, dword [esp + 0x20]
push 0
inc ecx
push 0x1a
mov dword [esp + 0x28], ecx
mov ecx, ebx
mov dword [esp + 0x40], eax
call fcn.0040168b
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x38]
mov dword [0x46c666], ecx
mov ecx, dword [esp + 0x50]
mov dword [0x46c66a], edx
push esi
push eax
lea edx, [esp + 0x248]
push 1
mov dword [0x46c66e], ecx
push edx
mov byte [0x46c658], 0x5c
mov byte [0x46c659], 5
mov byte [0x46c65a], 0
mov byte [0x46c65b], 0
mov byte [0x46c65c], 1
mov dword [0x46c65d], eax
mov word [0x46c661], 0xff
mov byte [0x46c663], 1
mov byte [0x46c664], 0
mov byte [0x46c665], 0xb
mov byte [0x46c671], al
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [esp + 0x48]
lea esi, [esp + 0x250]
mov ecx, eax
mov edi, 0x46c673
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
mov cl, byte [0x46c665]
lea edx, [ecx + eax + 0x10]
mov eax, dword [esp + 0x28]
push eax
mov dword [ebp + 0x14], edx
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, dword [ebp]
add esp, 0x14
add ecx, 0x107c
mov dword [ebp + 0xc], 0x46c658
mov dword [ebp + 0x10], ecx
push ebp
mov ecx, ebx
mov dword [ebp + 0x18], 0xbb8
call fcn.0040202c
cmp eax, 0x17
je 0x440f2d
mov edx, dword [ebp + 4]
mov eax, dword [edx + 0x5ac]
test eax, eax
je 0x440f2d
mov eax, dword [ebp]
add eax, 0x107c
mov dword [0x46c654], eax
mov cl, byte [eax + 2]
test cl, cl
jne 0x440f0b
lea ecx, [esp + 0x104]
call fcn.0044cd0e
lea eax, [esp + 0x4c]
mov byte [esp + 0x2248], 4
push eax
call sub.MFC42.DLL_CFile::Remove
lea ecx, [esp + 0x104]
mov byte [esp + 0x2248], 3
call sub.MFC42.DLL_CFile::CFile
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x440cdb
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x114]
push edx
push 0x469930
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x114]
push 0
push 0
push ecx
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x60]
mov byte [esp + 0x2248], 2
call fcn.0044d284
mov esi, 1
jmp 0x440f68
push 0
push 0
push str._Cant_find_pim_xxx_files_
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x60]
mov byte [esp + 0x2248], 2
call fcn.0044d284
jmp 0x4411ac
mov cl, byte [eax + 2]
push ecx
call fcn.004012d0
add esp, 4
lea ecx, [esp + 0x60]
mov byte [esp + 0x2248], 2
call fcn.0044d284
jmp 0x4411ac
push 0
push 0
push str.ERROR:_COM_error_on_link__
call sub.MFC42.DLL_AfxMessageBox
push 0
push 0x17
mov ecx, ebx
call fcn.0040168b
lea ecx, [esp + 0x60]
mov byte [esp + 0x2248], 2
call fcn.0044d284
jmp 0x4415d0
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
jmp 0x440838
cmp dword [ebx + 0xba5c], esi
jne 0x441561
push 0
push 0x17
mov ecx, ebx
call fcn.0040168b
mov ecx, 0xf
xor eax, eax
mov edi, 0x46c65b
mov byte [0x46c658], 0x5c
mov byte [0x46c659], 3
mov byte [0x46c65a], 3
rep stosd dword es:[edi], eax
xor ecx, ecx
mov esi, 0x469a54
mov cl, byte [0x46c65a]
mov edi, 0x46c65b
mov edx, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp]
mov ecx, ebx
add eax, 0x107c
mov dword [ebp + 0x14], 6
mov dword [ebp + 0xc], 0x46c658
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x18], 0x7d0
call fcn.0040202c
cmp eax, 0x17
je 0x441555
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + 0x5ac]
test eax, eax
je 0x441555
mov edx, dword [ebp]
add edx, 0x107c
mov dword [0x46c654], edx
mov al, byte [edx + 2]
test al, al
jne 0x4411a3
cmp word [edx + 3], 0
jne 0x44108a
push str.sch_Directory
lea ecx, [esp + 0x14]
call fcn.0044cfde
mov edx, dword [esp + 0x10]
push 0
push 1
push edx
call sub.MFC42.DLL_AfxMessageBox
cmp eax, 2
jne 0x4411ec
lea ecx, [esp + 0x98]
mov byte [esp + 0x2248], 1
call fcn.0044cf84
lea ecx, [esp + 0x14]
mov byte [esp + 0x2248], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x2248], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x44164b
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x1240]
lea esi, [edx + 7]
rep stosd dword es:[edi], eax
mov ecx, 0x271
lea edi, [esp + 0x1240]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x28], eax
xor edx, edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x30], eax
mov al, byte [esp + ecx + 0x1240]
test al, al
je 0x4410e7
inc ecx
mov byte [esp + edx + 0x28], al
inc edx
mov al, byte [esp + ecx + 0x1240]
test al, al
jne 0x4410ce
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
push 0
push 0x19
mov ecx, ebx
call fcn.0040168b
mov edx, dword [esp + 0x18]
mov ecx, 0xf
xor eax, eax
mov edi, 0x46c65b
mov byte [0x46c658], 0x5c
mov byte [0x46c659], 6
mov byte [0x46c65a], dl
lea esi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov ecx, edx
mov edi, 0x46c65b
mov eax, ecx
add edx, 3
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
mov dword [ebp + 0x14], edx
add ecx, 0x107c
mov dword [ebp + 0xc], 0x46c658
mov dword [ebp + 0x10], ecx
mov ecx, ebx
mov dword [ebp + 0x18], 0x1388
call fcn.0040202c
cmp eax, 0x17
je 0x44154a
mov edx, dword [ebp + 4]
mov eax, dword [edx + 0x5ac]
test eax, eax
je 0x44154a
mov eax, dword [ebp]
add eax, 0x107c
mov dword [0x46c654], eax
mov cl, byte [eax + 2]
test cl, cl
jne 0x4411a0
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
mov cl, byte [esp + eax + 0x1240]
test cl, cl
je 0x4411ec
jmp 0x4410ab
mov al, byte [eax + 2]
push eax
call fcn.004012d0
add esp, 4
lea ecx, [esp + 0x98]
mov byte [esp + 0x2248], 1
call fcn.0044cf84
lea ecx, [esp + 0x14]
mov byte [esp + 0x2248], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x2248], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x44164b
lea ecx, [esp + 0x7c]
call sub.MFC42.DLL_CFileFind::CFileFind
push 0
push 0x469894
lea ecx, [esp + 0x84]
mov byte [esp + 0x2250], 5
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x4413da
lea ecx, [esp + 0x7c]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x3c]
mov dword [esp + 0x24], eax
push ecx
lea ecx, [esp + 0x80]
call sub.MFC42.DLL_CFileFind::GetFileName
mov eax, dword [eax]
lea edx, [esp + 0x58]
push eax
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x58]
push 0x469378
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x441421
mov ecx, dword [ebp + 4]
mov esi, eax
push esi
call fcn.0040200e
mov ecx, dword [esp + 0x20]
push 0
inc ecx
push 0x1a
mov dword [esp + 0x28], ecx
mov ecx, ebx
mov dword [esp + 0x40], eax
call fcn.0040168b
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x38]
mov dword [0x46c666], ecx
mov ecx, dword [esp + 0x5c]
mov dword [0x46c66a], edx
push esi
push eax
lea edx, [esp + 0x1248]
push 1
mov dword [0x46c66e], ecx
push edx
mov byte [0x46c658], 0x5c
mov byte [0x46c659], 5
mov byte [0x46c65a], 0
mov byte [0x46c65b], 0
mov byte [0x46c65c], 1
mov dword [0x46c65d], eax
mov word [0x46c661], 0xff
mov byte [0x46c663], 1
mov byte [0x46c664], 0
mov byte [0x46c665], 0xb
mov byte [0x46c671], al
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [esp + 0x48]
lea esi, [esp + 0x1250]
mov ecx, eax
mov edi, 0x46c673
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
mov cl, byte [0x46c665]
lea edx, [ecx + eax + 0x10]
mov eax, dword [esp + 0x28]
push eax
mov dword [ebp + 0x14], edx
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, dword [ebp]
add esp, 0x14
add ecx, 0x107c
mov dword [ebp + 0xc], 0x46c658
mov dword [ebp + 0x10], ecx
push ebp
mov ecx, ebx
mov dword [ebp + 0x18], 0xbb8
call fcn.0040202c
cmp eax, 0x17
je 0x4414dd
mov edx, dword [ebp + 4]
mov eax, dword [edx + 0x5ac]
test eax, eax
je 0x4414dd
mov eax, dword [ebp]
add eax, 0x107c
mov dword [0x46c654], eax
mov cl, byte [eax + 2]
test cl, cl
jne 0x441480
lea ecx, [esp + 0x28]
call fcn.0044cd0e
lea eax, [esp + 0x58]
mov byte [esp + 0x2248], 6
push eax
call sub.MFC42.DLL_CFile::Remove
lea ecx, [esp + 0x28]
mov byte [esp + 0x2248], 5
call sub.MFC42.DLL_CFile::CFile
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x441218
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x178]
push edx
push 0x469864
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x178]
push 0
push 0
push ecx
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x7c]
mov byte [esp + 0x2248], 2
call fcn.0044d284
mov esi, 1
jmp 0x441561
push 0
push 0
push str._Cant_find_sch_xxx_files_
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x7c]
mov byte [esp + 0x2248], 2
call fcn.0044d284
lea ecx, [esp + 0x98]
mov byte [esp + 0x2248], 1
call fcn.0044cf84
lea ecx, [esp + 0x14]
mov byte [esp + 0x2248], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x2248], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x44164b
mov cl, byte [eax + 2]
push ecx
call fcn.004012d0
add esp, 4
lea ecx, [esp + 0x7c]
mov byte [esp + 0x2248], 2
call fcn.0044d284
lea ecx, [esp + 0x98]
mov byte [esp + 0x2248], 1
call fcn.0044cf84
lea ecx, [esp + 0x14]
mov byte [esp + 0x2248], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x2248], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x44164b
push 0
push 0
push str.ERROR:_COM_error_on_link__
call sub.MFC42.DLL_AfxMessageBox
push 0
push 0x17
mov ecx, ebx
call fcn.0040168b
lea ecx, [esp + 0x7c]
mov byte [esp + 0x2248], 2
call fcn.0044d284
lea ecx, [esp + 0x98]
mov byte [esp + 0x2248], 1
call fcn.0044cf84
lea ecx, [esp + 0x14]
mov byte [esp + 0x2248], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x2248], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0x17
jmp 0x44164b
push 0
push 0
push str.SCH_Data_Read_Fail___
jmp 0x4415c0
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
jmp 0x440838
push 0
push 0x1b
mov ecx, ebx
call fcn.0040168b
mov byte [0x46c658], 0x29
mov word [0x46c659], 2
mov edx, dword [ebp]
push ebp
add edx, 0x107c
mov ecx, ebx
mov dword [ebp + 0x14], 3
mov dword [ebp + 0xc], 0x46c658
mov dword [ebp + 0x10], edx
mov dword [ebp + 0x18], 0x7d0
call fcn.0040202c
cmp eax, 0x17
je 0x4415b7
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 0x5ac]
test ecx, ecx
jne 0x441610
push 0
push 0
push str._Mode_Reset_fail
call sub.MFC42.DLL_AfxMessageBox
push 0
push 0x17
mov ecx, ebx
call fcn.0040168b
lea ecx, [esp + 0x98]
mov byte [esp + 0x2248], 1
call fcn.0044cf84
lea ecx, [esp + 0x14]
mov byte [esp + 0x2248], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x2248], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0x17
jmp 0x44164b
lea ecx, [esp + 0x98]
mov byte [esp + 0x2248], 1
call fcn.0044cf84
lea ecx, [esp + 0x14]
mov byte [esp + 0x2248], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x2248], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
mov ecx, dword [esp + 0x2240]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x223c
ret 4