Function at 0x42ffa0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4fe48c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x234
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_3
xor ebx, ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x24c], ebx
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x14]
mov byte [esp + 0x24c], 1
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x24]
mov byte [esp + 0x24c], 2
call fcn.004c84b4
lea eax, [esp + 0x140]
mov byte [esp + 0x24c], 3
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x430044
mov edi, 0x542e7c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x140]
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 + 0x140]
push ecx
lea ecx, [esp + 0x20]
call fcn.004c8322
mov esi, dword [esp + 0x258]
push ebx
push 0x8000
push esi
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x43008a
push esi
add ebp, 0xa0
push 0xef
push ebp
call sub.MFC42.DLL_CString::Format_1
add esp, 0xc
jmp 0x43010a
mov edi, str.Changzheng_Liudi
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFile::Read
mov edi, str.Changzheng_Liudi
or ecx, 0xffffffff
xor eax, eax
mov esi, str.Changzheng_Liudi
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x38]
mov byte [esp + ecx + 0x38], bl
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4300e8
cmp cl, bl
je 0x4300e4
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4300e8
add eax, 2
add esi, 2
cmp cl, bl
jne 0x4300c4
xor eax, eax
jmp 0x4300ed
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x430157
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::Close
push 0xeb
lea ecx, [ebp + 0xa0]
call sub.MFC42.DLL_CString::LoadStringA
lea ecx, [esp + 0x24]
mov byte [esp + 0x24c], 2
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0x14]
mov byte [esp + 0x24c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x24c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4302e3
lea eax, [esp + 0x18]
push 4
push eax
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFile::Read
lea ecx, [esp + 0x18]
push 4
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFile::Read
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x38]
push edx
push eax
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFile::Read
lea ecx, [esp + 0x20]
push 4
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFile::Read
mov eax, dword [esp + 0x20]
xor edi, edi
cmp eax, ebx
jbe 0x430289
mov esi, dword [esp + 0x254]
lea edx, [esp + 0x18]
push 4
push edx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFile::Read
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x38]
push eax
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFile::Read
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + edx + 0x3c], bl
call fcn.004c830a
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_2
mov edx, dword [ebp + 0x6c]
lea ecx, [esp + 0x14]
add edx, 0x90
push edx
call fcn.004c830a
lea eax, [esp + 0x38]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x20]
test eax, eax
je 0x430270
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [ebp + 0x78]
call fcn.00415d90
push ecx
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp + 0x8c]
call fcn.00415d90
mov eax, dword [esp + 0x20]
inc edi
cmp edi, eax
jb 0x4301af
jmp 0x430289
mov ecx, dword [esp + 0x14]
add ebp, 0xa0
push ecx
push 0xed
push ebp
call sub.MFC42.DLL_CString::Format_1
add esp, 0xc
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::Close
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x24c], 2
cmp edi, ecx
lea ecx, [esp + 0x24]
sbb esi, esi
inc esi
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0x14]
mov byte [esp + 0x24c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x24c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x240
ret 8