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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4e3c1b
push eax
mov eax, 0x205c
mov dword fs:[0], esp
call fcn.00415b80
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 0x424370
lea eax, [esi + 0x98]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x2080], ebp
jne 0x4244c0
mov ecx, dword [esp + 0x18]
mov edi, dword [ecx]
cmp edi, ebp
je 0x4245e7
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 0x556570
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00415612
test bl, bl
je 0x4243c7
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x54]
push 0
mov ecx, edi
call sub.MFC42.DLL_CString::GetBuffer
push 0x53624c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x42443c
mov eax, dword [esp + 0x18]
mov edi, dword [eax]
test edi, edi
je 0x4245e7
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 0x556570
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
sete bl
call fcn.00415612
test bl, bl
je 0x4245e7
mov eax, dword [edi]
mov edx, dword [esi]
push 0
push 0x8010
push eax
mov ecx, esi
call dword [edx + 0x28]
jmp 0x4245e7
mov al, byte [esi + 0xc]
mov bl, 0x10
test bl, al
jne 0x42447d
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 0x424452
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 0x4245e7
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 0x556570
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
sete bl
jmp 0x424419
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.004085b0
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 fcn.00415612
test bl, bl
je 0x424530
lea eax, [esp + 0x1c]
push eax
call fcn.004085b0
mov eax, dword [eax]
add esp, 4
lea ecx, [esp + 0x106c]
push ecx
push ebp
push 0x556570
push eax
call esi
lea ecx, [esp + 0x1c]
call fcn.00415612
lea edx, [esp + 0x106c]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x14]
push 0x53623c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4245d3
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 0x424570
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.0041d8b0
lea ecx, [esp + 0x14]
mov dword [esp + 0x2074], 0xffffffff
call fcn.00415612
mov ecx, dword [esp + 0x206c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2068
ret 0xc