Function at 0x456f90
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x57b6d3
push eax
mov eax, 0x30d4
mov dword fs:[0], esp
call fcn.00552f40
mov eax, dword [0x64b2e0]
push ebx
xor ebx, ebx
push ebp
mov ecx, dword [eax + 0x938]
push esi
cmp ecx, ebx
push edi
je 0x456fcb
xor eax, eax
jmp 0x457cbe
cmp dword [0x6650d4], 1
jne 0x456fdb
xor eax, eax
jmp 0x457cbe
mov ecx, dword [esp + 0x30f8]
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30ec], ebx
call sub.MFC42.DLL_CString::MakeLower
mov edx, dword [esp + 0x1c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [esp + 0x154]
mov eax, ecx
mov esi, edi
mov edi, ebp
push str..scr
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
call fcn.004a6d70
add esp, 0xc
cmp eax, ebx
jle 0x457086
push str..src
push str..scr
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Replace_1
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004924b0
add esp, 4
test eax, eax
je 0x457086
mov edi, dword [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x154]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
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, [esp + 0x154]
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [esp + 0x30f4]
repne scasb al, byte es:[edi]
not ecx
inc ecx
mov dword [ebp + 0x144], 1
push ecx
mov dword [ebp + 0x88], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.MSVCRT.dll_malloc]
mov edx, eax
lea edi, [esp + 0x158]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp + 0x2c], edx
mov eax, ecx
mov esi, edi
mov edi, edx
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 + 0x2c]
push ecx
call dword [sym.imp.MSVCRT.dll__strupr]
mov edx, dword [ebp + 0x2c]
add esp, 8
lea ecx, [ebp + 0x450]
push edx
call sub.MFC42.DLL_CString::operator_3
push eax
lea ecx, [ebp + 0x470]
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [0x6658f8]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [esp + 0x154]
lea edx, [esp + 0x4c]
push eax
push ecx
push 0x5fe2b8
push edx
mov dword [esp + 0x30], ebx
call edi
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.MSVCRT.dll__strlwr]
mov ecx, dword [0x6658dc]
lea edx, [esp + 0x60]
push ecx
push edx
push 1
call fcn.004a6d70
mov esi, dword [esp + 0x311c]
add esp, 0x20
test eax, eax
jle 0x457167
cmp esi, ebx
jne 0x457167
mov dword [esp + 0x24], 1
lea eax, [esp + 0x4c]
push str..rep
push eax
push 1
call fcn.004a6d70
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x45718f
cmp esi, ebx
je 0x45718f
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x1064]
push ecx
push 0x2080
push edx
call fcn.004455f0
lea eax, [esp + 0x1070]
push eax
call fcn.0044e430
lea ecx, [esp + 0x30]
push ecx
push 0x5fe2d0
push eax
call fcn.004a6dc0
add esp, 0x1c
test eax, eax
jne 0x4571fe
mov edx, dword [0x6658dc]
lea eax, [esp + 0x4c]
push edx
push 0x108
push eax
call fcn.00445620
lea ecx, [esp + 0x58]
push 0x5fe2d0
push ecx
push 1
call fcn.004a6d70
add esp, 0x18
mov dword [esp + 0x24], 1
jmp 0x457220
mov eax, dword [ebp + 0x2c]
lea edx, [esp + 0x20]
push edx
push 0x5fe2d0
push eax
call fcn.004a6dc0
add esp, 0xc
cmp eax, ebx
jle 0x457220
mov ecx, dword [ebp + 0x2c]
mov byte [eax + ecx - 1], 0
lea edx, [esp + 0xc64]
push edx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0x4c]
push 0x603028
push eax
push 1
call fcn.004a6d70
add esp, 0xc
cmp eax, ebx
jg 0x457278
mov al, byte [esp + 0x4c]
cmp al, 0x5c
je 0x457278
cmp al, 0x2f
je 0x457278
lea ecx, [esp + 0x4c]
lea edx, [esp + 0xc64]
push ecx
push edx
lea eax, [esp + 0x684]
push 0x60212c
push eax
call edi
add esp, 0x10
jmp 0x45728f
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x67c]
push ecx
push 0x5fc410
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x67c]
lea ecx, [ebp + 0x34]
push eax
call sub.MFC42.DLL_CString::operator_3
lea ecx, [esp + 0x20]
lea edx, [esp + 0x4c]
push ecx
push 0x5fe2d0
push edx
call fcn.004a6dc0
mov ebx, eax
lea edi, [esp + 0x58]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x2a8]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x3b0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push str..dbt
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x5c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3b8]
push ecx
call fcn.0044de80
lea edi, [esp + 0x64]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x58c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str..mrk
mov eax, ecx
mov esi, edi
mov edi, edx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x594]
push ecx
call fcn.0044de80
mov esi, dword [sym.imp.MSVCRT.dll_malloc]
push 0x19c
call esi
push 0x44
mov dword [ebp + 0x1c], eax
call esi
mov dword [ebp + 0x20], eax
mov eax, dword [esp + 0x44]
add esp, 0x2c
xor esi, esi
test eax, eax
jle 0x45761a
lea edx, [esp + 0x29c]
push edx
call fcn.004f1720
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 4
mov ebx, eax
push 0
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_LockFile]
cmp eax, 1
je 0x457418
lea eax, [esp + 0x2c]
push eax
call fcn.0044c7b0
mov ecx, dword [0x667108]
add esp, 4
lea eax, [esp + 0xa64]
mov edx, dword [ecx + 4]
push edx
push str._s.txt
push eax
call edi
lea ecx, [esp + 0xa70]
push 0x60300c
push ecx
call fcn.0044f470
mov esi, eax
add esp, 0x14
test esi, esi
je 0x45740b
lea edx, [esp + 0x154]
lea eax, [esp + 0x2c]
push edx
push eax
push str.Lock_file_on__s__s_n
push esi
call dword [sym.imp.MSVCRT.dll_fprintf]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x457393
mov eax, dword [esp + 0x30fc]
test eax, eax
je 0x457463
lea ecx, [esp + 0x1d4]
push ecx
push 0xbe
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0x154]
push edx
call fcn.0044e430
add esp, 4
lea ecx, [esp + 0x4c]
push eax
lea eax, [esp + 0x1d8]
push eax
push 0x5fe2b8
push ecx
call edi
add esp, 0x10
jmp 0x457553
mov eax, dword [0x665900]
xor ecx, ecx
and eax, 0x2000
or eax, ecx
jne 0x4574f7
lea edx, [esp + 0x4ac]
push edx
push 0xbe
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x154]
push eax
call fcn.0044e430
push eax
lea ecx, [esp + 0x54]
push 0x619640
push ecx
call fcn.00492870
add esp, 0x10
lea edx, [esp + 0x4c]
lea eax, [esp + 0x4ac]
lea ecx, [esp + 0x1d4]
push edx
push eax
push 0x5fe2b8
push ecx
call edi
add esp, 0x10
xor esi, esi
lea edx, [esp + 0x1d4]
push edx
call fcn.004924b0
add esp, 4
test eax, eax
je 0x45752b
lea eax, [esp + 0x1d4]
push eax
call fcn.004fedb0
add esp, 4
inc esi
cmp esi, 0x63
jl 0x4574cb
jmp 0x45752b
mov ecx, dword [ebp + 0x2c]
lea edx, [esp + 0x4c]
push ecx
push 0x619640
push edx
call fcn.00492870
mov ecx, dword [0x6658f8]
add esp, 0xc
lea eax, [esp + 0x4c]
lea edx, [esp + 0x1d4]
push eax
push ecx
push 0x5fe2b8
push edx
call edi
add esp, 0x10
lea edi, [esp + 0x1d4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x4c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x4c]
push 1
push ecx
push ebx
call fcn.00456ee0
lea edi, [esp + 0x58]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x29c]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 1
and ecx, 3
push 0
push 0
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_UnlockFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x4c]
push 0x603028
push ecx
push 1
call fcn.004a6d70
add esp, 0xc
test eax, eax
jg 0x4575ea
mov al, byte [esp + 0x4c]
cmp al, 0x5c
je 0x4575ea
cmp al, 0x2f
je 0x4575ea
lea edx, [esp + 0x4c]
lea eax, [esp + 0xc64]
push edx
push eax
lea ecx, [esp + 0x684]
push 0x60212c
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
jmp 0x457605
lea edx, [esp + 0x4c]
lea eax, [esp + 0x67c]
push edx
push 0x5fc410
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x67c]
push ecx
lea ecx, [ebp + 0x34]
call sub.MFC42.DLL_CString::operator_3
mov esi, 1
lea edx, [esp + 0x29c]
lea ecx, [ebp + 0x42c]
push edx
call sub.MFC42.DLL_CString::operator_3
lea eax, [esp + 0x29c]
push esi
push eax
push ebp
call fcn.004f18e0
lea ecx, [esp + 0x1070]
mov esi, eax
push 0x2080
push ecx
push esi
mov dword [ebp + 0x74], esi
xor edi, edi
call fcn.004f1a40
add esp, 0x18
test eax, eax
je 0x4576bd
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call fcn.004f1d40
add esp, 4
push 1
call ebx
cmp edi, 0x3e8
jge 0x457695
lea edx, [esp + 0x1064]
push 0x2080
push edx
push esi
inc edi
call fcn.004f1a40
add esp, 0xc
test eax, eax
jne 0x457663
jmp 0x4576bd
push 8
push 1
push esi
call fcn.004f1c60
lea eax, [esp + 0x1071]
push 0x2079
push eax
push esi
mov byte [esp + 0x107c], 3
call fcn.004f1a80
add esp, 0x18
lea ecx, [esp + 0x29c]
lea edx, [esp + 0x1064]
push ecx
push edx
call fcn.00456e00
add esp, 8
test eax, eax
jne 0x4576f0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x29c]
push eax
call fcn.00456d90
add esp, 4
mov ebx, dword [esp + 0x106c]
mov ecx, 8
and ebx, 0xffff
lea esi, [esp + 0x1064]
shr ebx, 5
mov eax, ebx
lea edi, [esp + 0x2c]
shl eax, 5
push 1
push eax
rep movsd dword es:[edi], dword [esi]
mov dword [ebp + 0x178], ebx
mov dword [esp + 0x30], eax
call dword [sym.imp.MSVCRT.dll_calloc]
mov edi, dword [sym.imp.MSVCRT.dll_malloc]
lea esi, [ebx*4]
push esi
mov dword [ebp + 0x28], eax
call edi
push ebx
mov dword [ebp + 0x124], eax
call edi
push ebx
mov dword [ebp + 0x150], eax
call sub.MFC42.DLL_operatornew
lea edi, [ebx*4 + 4]
mov dword [ebp + 0x140], eax
push edi
call sub.MFC42.DLL_operatornew
add esp, 0x18
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x30ec], 1
je 0x45779a
push sub.MFC42.DLL_CString::CString
mov dword [eax], ebx
push sub.MFC42.DLL_CString::CString_3
add eax, 4
push ebx
push 4
push eax
mov dword [esp + 0x24], eax
call fcn.00552fad
mov eax, dword [esp + 0x10]
jmp 0x45779c
xor eax, eax
push edi
mov byte [esp + 0x30f0], 0
mov dword [ebp + 0x40], eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x30ec], 2
je 0x4577e2
push sub.MFC42.DLL_CString::CString
mov dword [eax], ebx
push sub.MFC42.DLL_CString::CString_3
add eax, 4
push ebx
push 4
push eax
mov dword [esp + 0x24], eax
call fcn.00552fad
mov eax, dword [esp + 0x10]
jmp 0x4577e4
xor eax, eax
push edi
mov byte [esp + 0x30f0], 0
mov dword [ebp + 0x3c], eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x30ec], 3
je 0x45782a
push sub.MFC42.DLL_CString::CString
mov dword [eax], ebx
push sub.MFC42.DLL_CString::CString_3
add eax, 4
push ebx
push 4
push eax
mov dword [esp + 0x24], eax
call fcn.00552fad
mov eax, dword [esp + 0x10]
jmp 0x45782c
xor eax, eax
push edi
mov byte [esp + 0x30f0], 0
mov dword [ebp + 0x44], eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x30ec], 4
je 0x457872
push sub.MFC42.DLL_CString::CString
mov dword [eax], ebx
push sub.MFC42.DLL_CString::CString_3
add eax, 4
push ebx
push 4
push eax
mov dword [esp + 0x24], eax
call fcn.00552fad
mov eax, dword [esp + 0x10]
jmp 0x457874
xor eax, eax
push edi
mov byte [esp + 0x30f0], 0
mov dword [ebp + 0x48], eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x30ec], 5
je 0x4578ba
push sub.MFC42.DLL_CString::CString
mov dword [eax], ebx
push sub.MFC42.DLL_CString::CString_3
add eax, 4
push ebx
push 4
push eax
mov dword [esp + 0x24], eax
call fcn.00552fad
mov eax, dword [esp + 0x10]
jmp 0x4578bc
xor eax, eax
push edi
mov byte [esp + 0x30f0], 0
mov dword [ebp + 0x4c], eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x30ec], 6
je 0x457902
push sub.MFC42.DLL_CString::CString
mov dword [eax], ebx
push sub.MFC42.DLL_CString::CString_3
add eax, 4
push ebx
push 4
push eax
mov dword [esp + 0x24], eax
call fcn.00552fad
mov eax, dword [esp + 0x10]
jmp 0x457904
xor eax, eax
push esi
mov byte [esp + 0x30f0], 0
mov dword [ebp + 0x14c], eax
call sub.MFC42.DLL_operatornew
push edi
mov dword [ebp + 0x154], eax
call sub.MFC42.DLL_operatornew
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x30ec], 7
je 0x457953
push sub.MFC42.DLL_CString::CString
push sub.MFC42.DLL_CString::CString_3
lea edi, [eax + 4]
push ebx
push 4
push edi
mov dword [eax], ebx
call fcn.00552fad
mov eax, edi
jmp 0x457955
xor eax, eax
mov dword [ebp + 0x50], eax
lea eax, [ebx + ebx]
push eax
mov byte [esp + 0x30f0], 0
call sub.MFC42.DLL_operatornew
push esi
mov dword [ebp + 0x5c], eax
call sub.MFC42.DLL_operatornew
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebp + 0x54], edi
push esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call sub.MFC42.DLL_operatornew
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebp + 0x58], edi
push esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call sub.MFC42.DLL_operatornew
push esi
mov dword [ebp + 0x64], eax
call sub.MFC42.DLL_operatornew
lea esi, [ebx + ebx]
mov dword [ebp + 0x68], eax
push esi
call sub.MFC42.DLL_operatornew
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebp + 0x60], edi
push ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call sub.MFC42.DLL_operatornew
mov ecx, ebx
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebp + 0x6c], edi
push ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call sub.MFC42.DLL_operatornew
mov ecx, ebx
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebp + 0x70], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x56]
and eax, 0xffff
lea esi, [eax + ebx*8 + 0xe]
mov dword [esp + 0x34], esi
lea ecx, [esi + esi*4]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov dword [ebp + 0x128], eax
add eax, esi
mov edi, dword [ebp + 0x28]
mov dword [ebp + 0x12c], eax
add eax, esi
mov edx, dword [esp + 0x4c]
mov dword [ebp + 0x130], eax
add eax, esi
mov ecx, 8
mov dword [ebp + 0x134], eax
add eax, esi
lea esi, [esp + 0x50]
mov dword [ebp + 0x138], eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0x28]
lea ecx, [edx - 0x20]
mov eax, ecx
lea esi, [esp + 0x10a8]
add edi, 0x20
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
dec ebx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x28]
mov dword [ebp + 0xcc], ebx
mov dword [ebp + 0x24], ecx
call fcn.00454e60
mov esi, eax
add esp, 0x28
test esi, esi
je 0x457af8
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
lea edx, [esp + 0x154]
push esi
push edx
lea eax, [esp + 0x18]
push str.File_:_s_nField_No:_i_error_n_nIgnore_problem_and_continue
push eax
mov byte [esp + 0x30fc], 8
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x20]
add esp, 0x10
xor edi, edi
push edi
push 0x14
push ecx
call sub.MFC42.DLL_AfxMessageBox_1
cmp eax, 7
jne 0x457ae5
jmp dword [sym.imp.MSVCRT.dll_abort]
lea ecx, [esp + 0x10]
mov byte [esp + 0x30ec], 0
call sub.MFC42.DLL_CString::CString
jmp 0x457afa
xor edi, edi
cmp word [esp + 0x36], 0x1000
jae 0x457b10
cmp ebx, 1
jl 0x457b10
cmp ebx, 0xff
jle 0x457b20
lea edx, [esp + 0x29c]
push edx
call fcn.00456d90
add esp, 4
mov eax, dword [0x63f580]
push edi
inc eax
mov dword [0x63f580], eax
mov eax, dword [esp + 0x18]
push eax
push ebp
call fcn.00454730
mov ecx, dword [ebp + 0x1c]
add esp, 0xc
mov dword [ecx + 0x16c], edi
mov edx, dword [ebp + 0x1c]
mov dword [edx + 0x174], edi
mov eax, dword [ebp + 0x1c]
mov dword [ebp + 0xd0], edi
mov dword [eax + 0x168], edi
mov ecx, dword [ebp + 0x24]
cmp byte [ecx], 0x83
jne 0x457b9c
mov esi, dword [0x665900]
lea edx, [esp + 0x3a4]
push edx
mov dword [0x665900], edi
mov dword [0x665904], edi
call fcn.004f17e0
mov ecx, dword [ebp + 0x1c]
add esp, 4
mov dword [ecx + 0x168], eax
mov eax, esi
cdq
mov dword [0x665900], eax
mov dword [0x665904], edx
mov edx, dword [ebp + 0x1c]
push ebp
mov dword [edx + 0x164], edi
call fcn.00456990
push ebp
call fcn.004fed30
mov eax, dword [ebp + 0x1c]
mov dword [ebp + 0xb8], edi
add esp, 8
mov byte [eax + 0x41], 0
mov ecx, dword [0x6658f8]
push ecx
lea ecx, [ebp + 0x38]
call sub.MFC42.DLL_CString::operator_3
mov edx, dword [ebp + 0x24]
test byte [edx + 0x17], 2
je 0x457be0
mov eax, dword [ebp + 0x1c]
or byte [eax + 0x41], 2
mov eax, dword [0x6650bc]
mov dword [ebp + 0xb8], eax
mov eax, dword [0x6650bc]
mov dword [eax*4 + 0x66afa0], ebp
inc eax
cmp eax, 0x1f4
mov dword [0x6650bc], eax
jl 0x457c1b
push 0x3de
push str.D:WLIB32_sf32.h
push str.Db_File_Handle___500
call fcn.004c3320
add esp, 0xc
cmp dword [esp + 0x24], 1
jne 0x457c4a
cmp dword [esp + 0x18], edi
jne 0x457c4a
push ebp
call fcn.004feba0
lea ecx, [esp + 0x158]
push ecx
push ebp
call fcn.004c62e0
mov edx, dword [ebp]
add esp, 0xc
mov ecx, ebp
call dword [edx + 0x178]
cmp dword [0x6650a4], edi
je 0x457ca5
cmp dword [0x67ea64], edi
je 0x457ca5
mov eax, dword [0x6650bc]
mov ecx, dword [eax*4 + 0x66af9c]
add ecx, 0x34
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_4
mov edx, dword [esp + 0x18]
mov byte [esp + 0x30ec], 9
cmp dword [edx - 8], edi
jne 0x457c94
add ebp, 0x440
lea ecx, [esp + 0x18]
push ebp
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x18]
mov byte [esp + 0x30ec], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30ec], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x30e4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30e0
ret