Function at 0x42fd10
Capabilities:
Get common file path
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4d835b
push eax
mov eax, 0x205c
mov dword fs:[0], esp
call fcn.0045bc60
mov eax, dword [esp + 0x2074]
push ebx
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
push edi
mov esi, ecx
mov dword [esp + 0x18], ebp
jne 0x42fd50
lea eax, [esi + 0x9c]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x2080], ebp
jne 0x42fea0
mov ecx, dword [esp + 0x18]
mov edi, dword [ecx]
cmp edi, ebp
je 0x42ffc7
mov edx, dword [edi + 4]
lea esi, [edi + 4]
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call dword [edx + 0x18]
mov eax, dword [eax]
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x5e2540
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x42fda7
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x54]
push 0
mov ecx, edi
call sub.MFC42.DLL_CString::GetBuffer
push 0x5c134c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x42fe1c
mov eax, dword [esp + 0x18]
mov edi, dword [eax]
test edi, edi
je 0x42ffc7
mov edx, dword [edi + 4]
lea esi, [edi + 4]
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call dword [edx + 0x18]
mov eax, dword [eax]
push 0x5e2540
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x42ffc7
mov eax, dword [edi]
mov edx, dword [esi]
push 0
push 0x8010
push eax
mov ecx, esi
call dword [edx + 0x28]
jmp 0x42ffc7
mov al, byte [esi + 0xc]
mov bl, 0x10
test bl, al
jne 0x42fe5d
mov edi, dword [esp + 0x207c]
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 0x1000
lea ecx, [esp + 0x74]
push 1
push ecx
call ebp
mov edx, dword [edi]
add esp, 0x10
push 0
push eax
lea eax, [esp + 0x74]
push eax
push edi
call dword [edx + 0x10]
test byte [esi + 0xc], bl
je 0x42fe32
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, dword [esp + 0x1c]
add esp, 4
mov edi, dword [ecx]
test edi, edi
je 0x42ffc7
mov edx, dword [edi + 4]
lea esi, [edi + 4]
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call dword [edx + 0x18]
mov eax, dword [eax]
push 0x5e2540
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
sete bl
jmp 0x42fdf9
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
mov esi, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x2078], ebp
call fcn.0041bd10
mov eax, dword [eax]
add esp, 4
lea edx, [esp + 0x106c]
push edx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push eax
call esi
test eax, eax
lea ecx, [esp + 0x10]
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x42ff10
lea eax, [esp + 0x1c]
push eax
call fcn.0041bd10
mov eax, dword [eax]
add esp, 4
lea ecx, [esp + 0x106c]
push ecx
push ebp
push 0x5e2540
push eax
call esi
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x106c]
lea ecx, [esp + 0x14]
push edx
call fcn.0045afae
mov eax, dword [esp + 0x14]
push 0x5c1aec
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x42ffb3
mov esi, dword [esp + 0x207c]
lea edx, [esp + 0x24]
push 1
push edx
mov ecx, dword [esi]
push esi
call dword [ecx + 0x30]
xor ebx, ebx
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x6c]
lea edx, [esp + 0x6c]
rep stosd dword es:[edi], eax
mov eax, dword [esi]
lea ecx, [esp + 0x20]
push ecx
push 0x1000
push edx
push esi
call dword [eax + 0xc]
mov eax, dword [esp + 0x20]
push ebp
push eax
lea ecx, [esp + 0x74]
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
mov edx, dword [esp + 0x3c]
add esp, 0x10
inc ebx
shr edx, 0xc
cmp ebx, edx
jbe 0x42ff50
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0x14]
push 0
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 0x18]
push eax
call fcn.004351c0
lea ecx, [esp + 0x14]
mov dword [esp + 0x2074], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x206c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2068
ret 0xc