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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4b075b
push eax
mov eax, 0x2058
mov dword fs:[0], esp
call fcn.00423c20
mov eax, dword [esp + 0x2070]
push ebx
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
push edi
mov esi, ecx
je 0x4353fb
lea eax, [esi + 0x4c]
mov dword [esp + 0x14], eax
jmp 0x435402
lea ecx, [esi + 0x50]
mov dword [esp + 0x14], ecx
cmp dword [esp + 0x207c], ebp
jne 0x435552
mov edx, dword [esp + 0x14]
mov edi, dword [edx]
cmp edi, ebp
je 0x435767
mov eax, dword [edi + 4]
lea esi, [edi + 4]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call dword [eax + 0x18]
mov eax, dword [eax]
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x55b7e8
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 0x435459
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x54]
push 0
mov ecx, edi
call sub.MFC42.DLL_CString::GetBuffer
push 0x54d294
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4354ce
mov eax, dword [esp + 0x14]
mov edi, dword [eax]
test edi, edi
je 0x435767
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 0x55b7e8
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 0x435767
mov eax, dword [edi]
mov edx, dword [esi]
push 0
push 0x8010
push eax
mov ecx, esi
call dword [edx + 0x28]
jmp 0x435767
mov al, byte [esi + 0xc]
mov bl, 0x10
test bl, al
jne 0x43550f
mov edi, dword [esp + 0x2078]
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 0x1000
lea ecx, [esp + 0x70]
push 1
push ecx
call ebp
mov edx, dword [edi]
add esp, 0x10
push 0
push eax
lea eax, [esp + 0x70]
push eax
push edi
call dword [edx + 0x10]
test byte [esi + 0xc], bl
je 0x4354e4
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, dword [esp + 0x18]
add esp, 4
mov edi, dword [ecx]
test edi, edi
je 0x435767
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 0x55b7e8
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
sete bl
jmp 0x4354ab
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_3
mov esi, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x2074], ebp
call fcn.0041a340
mov eax, dword [eax]
add esp, 4
lea edx, [esp + 0x1068]
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 0x4355c2
lea eax, [esp + 0x10]
push eax
call fcn.0041a340
mov eax, dword [eax]
add esp, 4
lea ecx, [esp + 0x1068]
push ecx
push ebp
push 0x55b7e8
push eax
call esi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x1068]
lea ecx, [esp + 0x18]
push edx
call fcn.004232c4
mov eax, dword [esp + 0x18]
push 0x54dad0
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
cmp ebx, ebp
je 0x435753
mov esi, dword [esp + 0x2078]
lea edx, [esp + 0x20]
push 1
push edx
mov ecx, dword [esi]
push esi
call dword [ecx + 0x30]
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x68]
lea edx, [esp + 0x68]
rep stosd dword es:[edi], eax
mov eax, dword [esi]
lea ecx, [esp + 0x1c]
push ecx
push 0x1000
push edx
push esi
call dword [eax + 0xc]
mov eax, dword [esp + 0x1c]
push ebx
push eax
lea ecx, [esp + 0x70]
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
mov edx, dword [esp + 0x38]
add esp, 0x10
inc ebp
shr edx, 0xc
cmp ebp, edx
jbe 0x435604
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0x18]
push 0
call sub.MFC42.DLL_CString::GetBuffer
mov ebp, dword [esp + 0x14]
mov ebx, eax
mov esi, dword [ebp]
test esi, esi
je 0x4356c7
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4356c0
test esi, esi
mov dword [esp + 0x10], esi
je 0x4356c0
mov ecx, esi
mov byte [esp + 0x2070], 2
call fcn.00435350
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esi + 4]
mov byte [esp + 0x2070], 1
call sub.MFC42.DLL_CFile::CFile
mov ecx, esi
mov byte [esp + 0x2070], 0
call sub.MFC42.DLL_CString::CString
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebp], 0
push 0x18
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
test edi, edi
mov byte [esp + 0x2070], 3
je 0x43574e
push ebx
mov ecx, edi
call sub.MFC42.DLL_CString::CString_1
lea esi, [edi + 4]
mov byte [esp + 0x2070], 4
mov ecx, esi
call sub.MFC42.DLL_CFile::CFile_1
mov edx, dword [esi]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov byte [esp + 0x2074], 5
mov dword [edi + 0x14], 1
call dword [edx + 0x18]
mov eax, dword [eax]
push 0x55b7e8
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x435750
mov eax, dword [edi]
mov edx, dword [esi]
push 0
push 0x8010
push eax
mov ecx, esi
call dword [edx + 0x28]
jmp 0x435750
xor edi, edi
mov dword [ebp], edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x2070], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x2068]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2064
ret 0xc