Function at 0x1007432
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push 0x818
mov eax, 0x102dde2
call fcn.01026060
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x820], eax
mov eax, dword [ebp + 0x10]
mov esi, ecx
mov dword [ebp - 0x81c], eax
mov eax, dword [ebp + 0x14]
lea ecx, [esi + 4]
mov dword [ebp - 0x824], esi
mov dword [ebp - 0x814], eax
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [esi + 8]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x818]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov byte [ebp - 4], 2
push dword [ebp - 0x820]
mov ecx, 0x1038498
mov byte [esi], bl
mov dword [esi + 0xc], ebx
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
mov al, byte [ebp + 0x20]
cmp al, bl
mov dword [0x1038494], edi
mov byte [0x1038004], al
je 0x1007508
push dword [ebp - 0x820]
mov edi, 0x103849c
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
push 0x1001680
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_899]
push ebx
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1007502
test al, 0x10
jne 0x1007508
mov byte [0x1038004], bl
push dword [ebp - 0x820]
mov edi, 0x10384a0
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
push 0x1001674
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_899]
push ebx
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1007550
test al, 0x10
jne 0x1007579
lea eax, [ebp - 0x810]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x100773e
lea eax, [ebp - 0x810]
push eax
mov ecx, edi
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
push dword [ebp - 0x81c]
lea ecx, [esi + 4]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
push dword [ebp - 0x814]
lea ecx, [esi + 8]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
cmp dword [esi + 0xc], ebx
mov al, byte [ebp + 0x18]
mov byte [esi + 1], al
mov al, byte [ebp + 0x1c]
mov byte [esi + 2], al
jne 0x10076a4
push 8
pop ecx
xor eax, eax
lea edi, [esi + 0x20]
rep stosd dword es:[edi], eax
lea eax, [esi + 0x40]
push eax
mov ecx, esi
mov dword [esi + 0x38], esi
call fcn.01007399
lea eax, [esi + 0x20]
push eax
lea eax, [esi + 0x40]
push eax
push 0x100700b
push 0x1006d0e
push 0x1006cd8
push 0x1006cab
push 0x1006c75
push 0x1006c3f
push 0x1006b71
push 0x1006b53
push 0x1006b35
lea edi, [esi + 0x10]
push 0x1006d3b
push edi
call fcn.010269ac
add esp, 0x34
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x10076a4
cmp byte [esi + 2], bl
jne 0x1007720
lea eax, [ebp - 0x81c]
push 0xc000c3cc
push eax
call fcn.0100ba1d
mov dword [ebp - 0x814], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x810]
push eax
push dword [edi]
call fcn.010070f8
mov ecx, dword [ebp - 0x814]
add esp, 0x10
push eax
push dword [edi]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
lea eax, [ebp - 0x818]
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_2311]
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x81c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, dword [0x1038494]
mov edi, dword [eax]
push 1
push 1
push ebx
push ebx
lea ecx, [ebp - 0x818]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
mov ecx, dword [0x1038494]
push eax
push 0xc000c3cc
call dword [edi + 4]
jmp 0x1007720
cmp byte [esi + 2], bl
jne 0x1007720
mov edi, 0x4000c3cd
lea eax, [ebp - 0x814]
push edi
push eax
call fcn.0100ba1d
pop ecx
pop ecx
mov byte [ebp - 4], 4
push dword [ebp - 0x81c]
mov ecx, eax
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
lea eax, [ebp - 0x818]
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_2311]
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x814]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, dword [0x1038494]
mov eax, dword [eax]
push 1
push 1
push ebx
push ebx
lea ecx, [ebp - 0x818]
mov dword [ebp - 0x814], eax
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
mov ecx, dword [0x1038494]
push eax
mov eax, dword [ebp - 0x814]
push edi
call dword [eax + 4]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x818]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010260f2
ret 0x1c
mov ecx, dword [0x1038494]
mov eax, dword [ecx]
push 1
push 1
push ebx
push ebx
push 0xc000c3cb
call dword [eax]
push 0x103201c
lea eax, [ebp - 0x814]
push eax
mov dword [ebp - 0x814], 0xfffffffe
call sub.MSVCR80.dll__CxxThrowException
int3