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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4b12ab
push eax
mov eax, 0x205c
mov dword fs:[0], esp
call fcn.00460380
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 0x430f80
lea eax, [esi + 0x98]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x2080], ebp
jne 0x4310d0
mov ecx, dword [esp + 0x18]
mov edi, dword [ecx]
cmp edi, ebp
je 0x4311f7
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 0x539050
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 0x430fd7
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x54]
push 0
mov ecx, edi
call sub.MFC42.DLL_CString::GetBuffer
push 0x51936c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x43104c
mov eax, dword [esp + 0x18]
mov edi, dword [eax]
test edi, edi
je 0x4311f7
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 0x539050
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 0x4311f7
mov eax, dword [edi]
mov edx, dword [esi]
push 0
push 0x8010
push eax
mov ecx, esi
call dword [edx + 0x28]
jmp 0x4311f7
mov al, byte [esi + 0xc]
mov bl, 0x10
test bl, al
jne 0x43108d
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 0x431062
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 0x4311f7
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 0x539050
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
sete bl
jmp 0x431029
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.0041bda0
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 0x431140
lea eax, [esp + 0x1c]
push eax
call fcn.0041bda0
mov eax, dword [eax]
add esp, 4
lea ecx, [esp + 0x106c]
push ecx
push ebp
push 0x539050
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.0045f6be
mov eax, dword [esp + 0x14]
push 0x519b0c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4311e3
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 0x431180
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.00436490
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