Function at 0x42f210
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4fe21c
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 + 0x14]
call sub.MFC42.DLL_CString::CString_3
xor ebx, ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24c], ebx
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x18]
mov byte [esp + 0x24c], 1
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x20]
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 0x42f2b4
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 + 0x18]
call fcn.004c8322
mov edx, dword [esp + 0x25c]
push ebx
push 0x8000
push edx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x42f2e7
push 0xef
jmp 0x42f35c
mov edi, str.Changzheng_Liudi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x38]
push ecx
push eax
lea ecx, [esp + 0x28]
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 0x42f345
cmp cl, bl
je 0x42f341
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x42f345
add eax, 2
add esi, 2
cmp cl, bl
jne 0x42f321
xor eax, eax
jmp 0x42f34a
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x42f3c3
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::Close
push 0xeb
mov esi, dword [esp + 0x258]
mov ecx, esi
call fcn.00456190
push 0x1000
mov ecx, esi
call fcn.00456180
lea ecx, [esp + 0x20]
mov byte [esp + 0x24c], 2
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0x18]
mov byte [esp + 0x24c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x24c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x24c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x42f4b3
lea eax, [esp + 0x10]
push 4
push eax
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFile::Read
lea ecx, [esp + 0x10]
push 4
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFile::Read
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x38]
push edx
push eax
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFile::Read
lea ecx, [esp + 0x30]
push 4
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFile::Read
mov eax, dword [esp + 0x30]
xor esi, esi
cmp eax, ebx
jbe 0x42f45f
lea edi, [ebp + 0x78]
lea edx, [esp + 0x10]
push 4
push edx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFile::Read
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x38]
push eax
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFile::Read
mov edx, dword [esp + 0x10]
push ecx
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
mov byte [esp + edx + 0x40], bl
call sub.MFC42.DLL_CString::CString_1
mov ecx, edi
call fcn.00415d90
mov eax, dword [esp + 0x30]
inc esi
cmp esi, eax
jb 0x42f413
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 0x20]
mov byte [esp + 0x24c], 2
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0x18]
mov byte [esp + 0x24c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x24c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x24c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x240
ret 0xc