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

Disassembly:
jmp 0x446090
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x452b32
push eax
mov eax, 0x20fc
mov dword fs:[0], esp
call fcn.0044d7b0
push ebx
push ebp
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
mov cl, byte [0x469ac8]
xor eax, eax
xor edx, edx
mov dword [esp + 0x2114], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x5c], eax
mov eax, dword [str.pim_]
mov dword [esp + 0x49], edx
mov dword [esp + 0x44], eax
mov eax, dword [str.sch_]
mov word [esp + 0x4d], dx
mov byte [esp + 0x48], cl
mov cl, byte [0x469ac0]
mov byte [esp + 0x4f], dl
mov dword [esp + 0x50], eax
mov dword [esp + 0x55], edx
lea eax, [ebx + 0x520]
mov byte [esp + 0x54], cl
mov word [esp + 0x59], dx
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x5f], dl
call fcn.0044cea6
push str.model
lea ecx, [esp + 0x14]
mov esi, 1
mov byte [esp + 0x2118], 1
call fcn.0044d1d0
push 0x460f1c
lea ecx, [esp + 0x14]
call fcn.0044d1d0
lea ecx, [ebx + 0x3ec]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
push 0x460f1c
lea ecx, [esp + 0x14]
call fcn.0044d1d0
lea edx, [esp + 0xa8]
push edx
push 0x64
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [ebx + 0xba50], esi
jne 0x446744
mov eax, dword [ebx + 0xba58]
mov ebp, dword [esp + 0x211c]
cmp eax, esi
jne 0x446444
push 0
push 0x17
mov ecx, ebx
call fcn.0040168b
mov ecx, 0xf
xor eax, eax
mov edi, 0x46bbdb
mov byte [0x46bbd8], 0x5c
mov byte [0x46bbd9], 3
mov byte [0x46bbda], 3
rep stosd dword es:[edi], eax
xor ecx, ecx
mov esi, 0x469ab8
mov cl, byte [0x46bbda]
mov edi, 0x46bbdb
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], 0x46bbd8
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x18], 0x7d0
call fcn.0040202c
cmp eax, 0x17
je 0x44641c
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + 0x5ac]
test eax, eax
je 0x44641c
mov edx, dword [ebp]
add edx, 0x107c
mov dword [0x46bbd0], edx
mov al, byte [edx + 2]
test al, al
je 0x446258
push eax
call fcn.004012d0
add esp, 4
jmp 0x447045
cmp word [edx + 3], 0
je 0x44650d
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x10c]
lea esi, [edx + 7]
rep stosd dword es:[edi], eax
mov ecx, 0x271
lea edi, [esp + 0x10c]
rep movsd dword es:[edi], dword [esi]
xor edx, edx
xor esi, esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], esi
mov ecx, edx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x28], ecx
mov al, byte [esp + edx + 0x10c]
test al, al
je 0x4462c6
inc edx
mov byte [esp + esi + 0x24], al
inc esi
mov dword [esp + 0x1c], edx
mov al, byte [esp + edx + 0x10c]
mov dword [esp + 0x18], esi
test al, al
jne 0x4462a9
mov ecx, dword [esp + 0x28]
xor eax, eax
mov dword [esp + 0x38], eax
test cl, cl
mov dword [esp + 0x3c], eax
je 0x4462e1
mov byte [esp + eax + 0x38], cl
mov cl, byte [esp + eax + 0x29]
inc eax
test cl, cl
jne 0x4462d4
push 0
push 0x18
mov ecx, ebx
call fcn.0040168b
mov edx, dword [esp + 0x18]
mov ecx, 0xf
xor eax, eax
mov edi, 0x46bbdc
mov byte [0x46bbd8], 0x5c
mov byte [0x46bbd9], 4
mov byte [0x46bbda], 0
mov byte [0x46bbdb], dl
rep stosd dword es:[edi], eax
mov ecx, edx
lea esi, [esp + 0x24]
mov eax, ecx
mov edi, 0x46bbdc
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], 0x46bbd8
mov dword [ebp + 0x18], 0x1388
call fcn.0040202c
cmp eax, 0x17
je 0x4463fe
mov edx, dword [ebp + 4]
mov eax, dword [edx + 0x5ac]
test eax, eax
je 0x4463fe
mov eax, dword [ebp]
add eax, 0x107c
mov dword [0x46bbd0], eax
mov cl, byte [eax + 2]
test cl, cl
jne 0x4463ed
lea eax, [esp + 0x38]
push 0x469398
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ecx, dword [0x46bbd0]
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 [0x46bbd0]
add esp, 0x18
cmp byte [ecx + 4], 1
je 0x446335
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 + 0x10c]
test cl, cl
je 0x446444
jmp 0x446284
mov dl, byte [eax + 2]
push edx
call fcn.004012d0
add esp, 4
jmp 0x447045
push 0
push 0
push str.PIM_Data_Read_Fail___
call sub.MFC42.DLL_AfxMessageBox
push 0
push 0x17
mov ecx, ebx
call fcn.0040168b
jmp 0x44709b
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.ERROR:_COM_error_on_link
call fcn.0044cea6
mov ecx, ebx
call fcn.004019ba
push 0
push 0x17
mov ecx, ebx
call fcn.0040168b
jmp 0x44709b
cmp dword [ebx + 0xba5c], 1
jne 0x4466f2
push 0
push 0x17
mov ecx, ebx
call fcn.0040168b
mov ecx, 0xf
xor eax, eax
mov edi, 0x46bbdb
mov byte [0x46bbd8], 0x5c
mov byte [0x46bbd9], 3
mov byte [0x46bbda], 3
rep stosd dword es:[edi], eax
xor ecx, ecx
mov esi, 0x469a54
mov cl, byte [0x46bbda]
mov edi, 0x46bbdb
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], 0x46bbd8
mov dword [ebp + 0x10], ecx
mov ecx, ebx
mov dword [ebp + 0x18], 0x7d0
call fcn.0040202c
cmp eax, 0x17
je 0x4466e6
mov edx, dword [ebp + 4]
mov eax, dword [edx + 0x5ac]
test eax, eax
je 0x4466e6
mov edx, dword [ebp]
add edx, 0x107c
mov dword [0x46bbd0], edx
mov al, byte [edx + 2]
test al, al
je 0x446506
push eax
call fcn.004012d0
add esp, 4
jmp 0x447045
cmp word [edx + 3], 0
jne 0x44653c
lea ecx, [esp + 0x10]
mov byte [esp + 0x2114], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x2114], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x446729
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x110c]
lea esi, [edx + 7]
rep stosd dword es:[edi], eax
mov ecx, 0x271
lea edi, [esp + 0x110c]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x24], eax
xor esi, esi
mov ecx, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x2c], eax
mov al, byte [esp + edx + 0x110c]
test al, al
mov dword [esp + 0x28], ecx
je 0x44659f
inc edx
mov byte [esp + esi + 0x24], al
inc esi
mov dword [esp + 0x1c], edx
mov al, byte [esp + edx + 0x110c]
mov dword [esp + 0x18], esi
test al, al
jne 0x446582
mov ecx, dword [esp + 0x28]
xor edx, edx
mov dword [esp + 0x38], edx
test cl, cl
mov dword [esp + 0x3c], edx
je 0x4465bc
xor eax, eax
mov byte [esp + eax + 0x38], cl
mov cl, byte [esp + eax + 0x29]
inc eax
test cl, cl
jne 0x4465af
push 0
push 0x18
mov ecx, ebx
call fcn.0040168b
mov edx, dword [esp + 0x18]
mov ecx, 0xf
xor eax, eax
mov edi, 0x46bbdc
mov byte [0x46bbd8], 0x5c
mov byte [0x46bbd9], 4
mov byte [0x46bbda], 0
mov byte [0x46bbdb], dl
rep stosd dword es:[edi], eax
mov ecx, edx
lea esi, [esp + 0x24]
mov eax, ecx
mov edi, 0x46bbdc
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], 0x46bbd8
mov dword [ebp + 0x18], 0x1388
call fcn.0040202c
cmp eax, 0x17
je 0x4466c8
mov edx, dword [ebp + 4]
mov eax, dword [edx + 0x5ac]
test eax, eax
je 0x4466c8
mov eax, dword [ebp]
add eax, 0x107c
mov dword [0x46bbd0], eax
mov cl, byte [eax + 2]
test cl, cl
jne 0x4463ed
lea eax, [esp + 0x38]
push 0x469398
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ecx, dword [0x46bbd0]
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 [0x46bbd0]
add esp, 0x18
cmp byte [ecx + 4], 1
je 0x446610
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 + 0x110c]
test cl, cl
je 0x4466f2
jmp 0x44655d
push 0
push 0
push str.PIM_Data_Read_Fail___
call sub.MFC42.DLL_AfxMessageBox
push 0
push 0x17
mov ecx, ebx
call fcn.0040168b
jmp 0x44709b
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
jmp 0x446423
push 0
push 0x1b
mov ecx, ebx
call fcn.0040168b
mov esi, 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x2114], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x2114], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
mov ecx, dword [esp + 0x210c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2108
ret 4
cmp dword [ebx + 0xba54], esi
jne 0x446702
mov eax, dword [ebx + 0xba58]
mov ebp, dword [esp + 0x211c]
cmp eax, esi
jne 0x446bdb
push 0
push 0x17
mov ecx, ebx
call fcn.0040168b
mov ecx, 0xf
xor eax, eax
mov edi, 0x46bbdb
mov byte [0x46bbd8], 0x5c
mov byte [0x46bbd9], 3
mov byte [0x46bbda], 3
rep stosd dword es:[edi], eax
xor ecx, ecx
mov esi, 0x469ab8
mov cl, byte [0x46bbda]
mov edi, 0x46bbdb
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], 0x46bbd8
mov dword [ebp + 0x10], ecx
mov ecx, ebx
mov dword [ebp + 0x18], 0x7d0
call fcn.0040202c
cmp eax, 0x17
je 0x446bbe
mov edx, dword [ebp + 4]
mov eax, dword [edx + 0x5ac]
test eax, eax
je 0x446bbe
mov edx, dword [ebp]
add edx, 0x107c
mov dword [0x46bbd0], edx
mov al, byte [edx + 2]
test al, al
jne 0x446db3
cmp word [edx + 3], 0
je 0x446930
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x10c]
lea esi, [edx + 7]
rep stosd dword es:[edi], eax
mov ecx, 0x271
lea edi, [esp + 0x10c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x24], eax
xor edx, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x2c], eax
mov al, byte [esp + ecx + 0x10c]
test al, al
je 0x446874
inc ecx
mov byte [esp + edx + 0x24], al
inc edx
mov al, byte [esp + ecx + 0x10c]
test al, al
jne 0x44685b
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, 0x46bbdb
mov byte [0x46bbd8], 0x5c
mov byte [0x46bbd9], 6
mov byte [0x46bbda], dl
lea esi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov ecx, edx
mov edi, 0x46bbdb
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], 0x46bbd8
mov dword [ebp + 0x10], ecx
mov ecx, ebx
mov dword [ebp + 0x18], 0x1388
call fcn.0040202c
cmp eax, 0x17
je 0x446bb0
mov edx, dword [ebp + 4]
mov eax, dword [edx + 0x5ac]
test eax, eax
je 0x446bb0
mov eax, dword [ebp]
add eax, 0x107c
mov dword [0x46bbd0], eax
mov cl, byte [eax + 2]
test cl, cl
jne 0x446db0
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
mov cl, byte [esp + eax + 0x10c]
test cl, cl
jne 0x446838
lea ecx, [esp + 0x7c]
call sub.MFC42.DLL_CFileFind::CFileFind
push 0
push 0x469964
lea ecx, [esp + 0x84]
mov byte [esp + 0x211c], 2
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x446b20
lea ecx, [esp + 0x7c]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x20]
mov dword [esp + 0x40], eax
push ecx
lea ecx, [esp + 0x80]
call sub.MFC42.DLL_CFileFind::GetFileName
mov eax, dword [eax]
lea edx, [esp + 0x48]
push eax
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x48]
push 0x469378
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x446b3b
mov ecx, dword [ebp + 4]
mov esi, eax
push esi
call fcn.0040200e
mov ecx, dword [esp + 0x5c]
push 0
inc ecx
push 0x1a
mov dword [esp + 0x64], ecx
mov ecx, ebx
mov dword [esp + 0x3c], eax
call fcn.0040168b
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x34]
mov dword [0x46bbe6], ecx
mov ecx, dword [esp + 0x4c]
mov dword [0x46bbea], edx
push esi
push eax
lea edx, [esp + 0x114]
push 1
mov dword [0x46bbee], ecx
push edx
mov byte [0x46bbd8], 0x5c
mov byte [0x46bbd9], 5
mov byte [0x46bbda], 0
mov byte [0x46bbdb], 0
mov byte [0x46bbdc], 1
mov dword [0x46bbdd], eax
mov word [0x46bbe1], 0xff
mov byte [0x46bbe3], 1
mov byte [0x46bbe4], 0
mov byte [0x46bbe5], 0xb
mov byte [0x46bbf1], al
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [esp + 0x44]
lea esi, [esp + 0x11c]
mov ecx, eax
mov edi, 0x46bbf3
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 [0x46bbe5]
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], 0x46bbd8
mov dword [ebp + 0x10], ecx
push ebp
mov ecx, ebx
mov dword [ebp + 0x18], 0xbb8
call fcn.0040202c
cmp eax, 0x17
je 0x446b81
mov edx, dword [ebp + 4]
mov eax, dword [edx + 0x5ac]
test eax, eax
je 0x446b81
mov eax, dword [ebp]
add eax, 0x107c
mov dword [0x46bbd0], eax
mov cl, byte [eax + 2]
test cl, cl
jne 0x446b5f
lea ecx, [esp + 0x98]
call fcn.0044cd0e
lea eax, [esp + 0x48]
mov byte [esp + 0x2114], 3
push eax
call sub.MFC42.DLL_CFile::Remove
lea ecx, [esp + 0x98]
mov byte [esp + 0x2114], 2
call sub.MFC42.DLL_CFile::CFile
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x44695c
lea ecx, [esp + 0x7c]
mov byte [esp + 0x2114], 1
call fcn.0044d284
mov esi, 1
jmp 0x446bdb
push 0
push 0
push str._Cant_find_pim_xxx_files_
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x7c]
mov byte [esp + 0x2114], 1
call fcn.0044d284
jmp 0x446dbc
mov cl, byte [eax + 2]
push ecx
call fcn.004012d0
add esp, 4
lea ecx, [esp + 0x7c]
mov byte [esp + 0x2114], 1
call fcn.0044d284
jmp 0x446dbc
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 + 0x2114], 1
call fcn.0044d284
jmp 0x4470e3
push 0
push 0
push str.PIM_Data_Read_Fail___
jmp 0x4470d3
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.ERROR:_COM_error_on_link
call fcn.0044cea6
mov ecx, ebx
call fcn.004019ba
jmp 0x4470d8
cmp dword [ebx + 0xba5c], esi
jne 0x446702
push 0
push 0x17
mov ecx, ebx
call fcn.0040168b
mov ecx, 0xf
xor eax, eax
mov edi, 0x46bbdb
mov byte [0x46bbd8], 0x5c
mov byte [0x46bbd9], 3
mov byte [0x46bbda], 3
rep stosd dword es:[edi], eax
xor ecx, ecx
mov esi, 0x469a54
mov cl, byte [0x46bbda]
mov edi, 0x46bbdb
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], 0x46bbd8
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x18], 0x7d0
call fcn.0040202c
cmp eax, 0x17
je 0x447112
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + 0x5ac]
test eax, eax
je 0x447112
mov edx, dword [ebp]
add edx, 0x107c
mov dword [0x46bbd0], edx
mov al, byte [edx + 2]
test al, al
jne 0x446db3
cmp word [edx + 3], 0
je 0x446de8
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x110c]
lea esi, [edx + 7]
rep stosd dword es:[edi], eax
mov ecx, 0x271
lea edi, [esp + 0x110c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x1c]
xor edx, edx
mov dword [esp + 0x24], edx
mov al, byte [esp + ecx + 0x110c]
mov dword [esp + 0x28], edx
test al, al
mov dword [esp + 0x2c], edx
mov dword [esp + 0x18], edx
je 0x446cf7
inc ecx
mov byte [esp + edx + 0x24], al
inc edx
mov al, byte [esp + ecx + 0x110c]
test al, al
jne 0x446cde
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, 0x46bbdb
mov byte [0x46bbd8], 0x5c
mov byte [0x46bbd9], 6
mov byte [0x46bbda], dl
lea esi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov ecx, edx
mov edi, 0x46bbdb
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], 0x46bbd8
mov dword [ebp + 0x10], ecx
mov ecx, ebx
mov dword [ebp + 0x18], 0x1388
call fcn.0040202c
cmp eax, 0x17
je 0x4470ca
mov edx, dword [ebp + 4]
mov eax, dword [edx + 0x5ac]
test eax, eax
je 0x4470ca
mov eax, dword [ebp]
add eax, 0x107c
mov dword [0x46bbd0], eax
mov cl, byte [eax + 2]
test cl, cl
jne 0x446db0
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
mov cl, byte [esp + eax + 0x110c]
test cl, cl
je 0x446de8
jmp 0x446cbd
mov al, byte [eax + 2]
push eax
call fcn.004012d0
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x2114], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x2114], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x446729
lea ecx, [esp + 0x60]
call sub.MFC42.DLL_CFileFind::CFileFind
push 0
push 0x469894
lea ecx, [esp + 0x68]
mov byte [esp + 0x211c], 4
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x446fc7
lea ecx, [esp + 0x60]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x40]
mov dword [esp + 0x20], eax
push ecx
lea ecx, [esp + 0x64]
call sub.MFC42.DLL_CFileFind::GetFileName
mov eax, dword [eax]
lea edx, [esp + 0x54]
push eax
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x54]
push 0x469378
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x446fdd
mov ecx, dword [ebp + 4]
mov esi, eax
push esi
call fcn.0040200e
push 0
push 0x1a
mov ecx, ebx
mov dword [esp + 0x3c], eax
call fcn.0040168b
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x34]
mov dword [0x46bbe6], ecx
mov ecx, dword [esp + 0x58]
mov dword [0x46bbea], edx
push esi
push eax
lea edx, [esp + 0x1114]
push 1
mov dword [0x46bbee], ecx
push edx
mov byte [0x46bbd8], 0x5c
mov byte [0x46bbd9], 5
mov byte [0x46bbda], 0
mov byte [0x46bbdb], 0
mov byte [0x46bbdc], 1
mov dword [0x46bbdd], eax
mov word [0x46bbe1], 0xff
mov byte [0x46bbe3], 1
mov byte [0x46bbe4], 0
mov byte [0x46bbe5], 0xb
mov byte [0x46bbf1], al
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [esp + 0x44]
lea esi, [esp + 0x111c]
mov ecx, eax
mov edi, 0x46bbf3
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 [0x46bbe5]
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], 0x46bbd8
mov dword [ebp + 0x10], ecx
push ebp
mov ecx, ebx
mov dword [ebp + 0x18], 0xbb8
call fcn.0040202c
cmp eax, 0x17
je 0x447071
mov edx, dword [ebp + 4]
mov eax, dword [edx + 0x5ac]
test eax, eax
je 0x447071
mov eax, dword [ebp]
add eax, 0x107c
mov dword [0x46bbd0], eax
mov cl, byte [eax + 2]
test cl, cl
jne 0x447028
lea ecx, [esp + 0x24]
call fcn.0044cd0e
lea eax, [esp + 0x54]
mov byte [esp + 0x2114], 5
push eax
call sub.MFC42.DLL_CFile::Remove
lea ecx, [esp + 0x24]
mov byte [esp + 0x2114], 4
call sub.MFC42.DLL_CFile::CFile
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x446e11
lea ecx, [esp + 0x60]
mov byte [esp + 0x2114], 1
call fcn.0044d284
jmp 0x4466fd
push 0
push 0
push str._Cant_find_sch_xxx_files_
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x60]
mov byte [esp + 0x2114], 1
call fcn.0044d284
lea ecx, [esp + 0x10]
mov byte [esp + 0x2114], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x2114], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x446729
mov cl, byte [eax + 2]
push ecx
call fcn.004012d0
add esp, 4
lea ecx, [esp + 0x60]
mov byte [esp + 0x2114], 1
call fcn.0044d284
lea ecx, [esp + 0x10]
mov byte [esp + 0x2114], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x2114], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x446729
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 + 0x2114], 1
call fcn.0044d284
lea ecx, [esp + 0x10]
mov byte [esp + 0x2114], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x2114], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0x17
jmp 0x446729
push 0
push 0
push str.SCH_Data_Read_Fail___
call sub.MFC42.DLL_AfxMessageBox
push 0
push 0x17
mov ecx, ebx
call fcn.0040168b
lea ecx, [esp + 0x10]
mov byte [esp + 0x2114], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x2114], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0x17
jmp 0x446729
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
jmp 0x446bc5