Function at 0x42f7a2
Capabilities:
Check os version
Create directory
Get common file path

Disassembly:
push 0x3b8
mov eax, 0x43deeb
call fcn.0043805e
mov esi, edx
mov dword [ebp - 0x3b0], esi
mov edi, ecx
mov dword [ebp - 0x3ac], edi
mov dword [ebp - 0x3b8], edi
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x3b4], edi
xor ebx, ebx
push 0x444535
mov dword [ebp - 0x3b4], eax
call fcn.00402815
mov dword [ebp - 4], ebx
cmp byte [ebp + 0x10], bl
je 0x42f802
push 9
push str.ProjectX
lea ecx, [ebp - 0x260]
call fcn.004044fc
push str.Shell32.dll
mov dword [ebp - 0x3c0], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
mov dword [ebp - 0x3bc], ebx
test ebx, ebx
je 0x42f831
push str.SHGetKnownFolderPath
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x3c0], eax
push 0x110
lea eax, [ebp - 0x3a4]
mov byte [ebp - 4], 1
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x3a8], 0x114
lea eax, [ebp - 0x3a8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x3a4], 6
jb 0x42fa2f
cmp esi, 8
ja case.default.0x42f874
jmp dword [esi*4 + 0x42fbd6]
mov esi, 0x43ff2c
jmp 0x42f8b1
mov esi, 0x43fedc
jmp 0x42f8b1
mov esi, 0x43ff0c
jmp 0x42f8b1
mov esi, 0x43fecc
jmp 0x42f8b1
mov esi, 0x43febc
jmp 0x42f8b1
mov esi, 0x43feec
jmp 0x42f8b1
mov esi, 0x43feac
jmp 0x42f8b1
mov esi, 0x43ff1c
lea edi, [ebp - 0x228]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x3b0]
mov edi, dword [ebp - 0x3ac]
and dword [ebp - 0x3b8], 0
mov ecx, dword [ebp - 0x3c0]
test ecx, ecx
je 0x42fa2f
lea eax, [ebp - 0x3b8]
push eax
movzx eax, byte [ebp + 8]
push 0
shl eax, 0xf
push eax
lea eax, [ebp - 0x228]
push eax
call ecx
cmp eax, 0x80004001
je 0x42fa2f
push dword [ebp - 0x3b8]
lea ecx, [ebp - 0x3ac]
call fcn.00415fd8
mov byte [ebp - 4], 2
lea eax, [ebp - 0x260]
cmp dword [ebp - 0x24c], 0xf
lea ecx, [ebp - 0x3ac]
cmova eax, dword [ebp - 0x260]
push eax
call fcn.0042fc7a
push 0x44c270
lea ecx, [ebp - 0x3ac]
call fcn.0042fc7a
cmp byte [ebp + 8], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x42f971
push 0
push dword [ebp - 0x3ac]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42f971
call esi
cmp eax, 0xb7
jne 0x42fb98
mov eax, dword [ebp - 0x3b4]
test eax, eax
je 0x42f9ce
push eax
lea ecx, [ebp - 0x3ac]
call fcn.0042fc7a
cmp byte [ebp + 8], 0
je 0x42f9ce
push 0
push dword [ebp - 0x3ac]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42f9ce
call esi
cmp eax, 0xb7
je 0x42f9ce
call esi
push eax
push dword [ebp - 0x3ac]
lea eax, [ebp - 0x290]
push str.Failed_to_create_subdirectory__S__error_d
push eax
call fcn.0040f01b
add esp, 0x10
mov byte [ebp - 4], 4
jmp 0x42fbb9
push dword [ebp - 0x3ac]
lea ecx, [ebp - 0x3b0]
call fcn.00415fd8
lea ecx, [ebp - 0x3b0]
mov byte [ebp - 4], 5
call fcn.0042fc4a
push dword [ebp - 0x3b0]
mov ecx, edi
call fcn.0040bb9e
lea ecx, [ebp - 0x3b0]
call fcn.00402b3c
lea ecx, [ebp - 0x3ac]
call fcn.00402b3c
test ebx, ebx
je 0x42fa1c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x260]
call fcn.004027a6
mov eax, edi
call fcn.0043800d
ret
movzx eax, byte [ebp + 8]
lea edx, [ebp - 0x260]
shl eax, 0xf
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x3b8], eax
call fcn.0040ee2a
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x3b4]
test eax, eax
je 0x42fab3
push eax
lea ecx, [ebp - 0x230]
call fcn.00402815
lea edx, [ebp - 0x230]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x248]
call fcn.0040ee2a
mov byte [ebp - 4], 8
mov ecx, eax
cmp dword [eax + 0x14], 7
jbe 0x42fa8a
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x278]
call fcn.0040c066
lea ecx, [ebp - 0x248]
call fcn.00402ab8
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 6
call fcn.004027a6
cmp esi, 8
ja case.0x42fab8.7
jmp dword [esi*4 + 0x42fbfa]
push 0x1c
pop ecx
jmp 0x42fae2
push 0x23
jmp 0x42fac1
push 2
jmp 0x42fac1
push 0x17
jmp 0x42fac1
push 0x26
jmp 0x42fac1
xor ecx, ecx
jmp 0x42fae2
push 0x1a
jmp 0x42fac1
mov ecx, dword [ebp - 0x3b4]
cmp dword [ebp - 0x264], 7
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x278]
cmova eax, dword [ebp - 0x278]
or ecx, dword [ebp - 0x3b8]
push eax
xor eax, eax
push eax
push eax
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
test eax, eax
jne 0x42fb7d
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x3b4]
call fcn.00415fd8
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x3b0]
push dword [ebp - 0x3b4]
call fcn.00415fd8
lea ecx, [ebp - 0x3b0]
mov byte [ebp - 4], 0xa
call fcn.0042fc4a
push dword [ebp - 0x3b0]
mov ecx, edi
call fcn.0040bb9e
lea ecx, [ebp - 0x3b0]
call fcn.00402b3c
lea ecx, [ebp - 0x3b4]
call fcn.00402b3c
lea ecx, [ebp - 0x278]
call fcn.00402ab8
jmp 0x42fa11
push eax
lea eax, [ebp - 0x290]
push str.Bad_result_from_SHGetFolderPathAndSubDirW_d
push eax
call fcn.0040f01b
add esp, 0xc
mov byte [ebp - 4], 0xb
jmp 0x42fbb9
call esi
push eax
push dword [ebp - 0x3ac]
lea eax, [ebp - 0x290]
push str.Failed_to_create_directory__S__error_d
push eax
call fcn.0040f01b
add esp, 0x10
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x23c]
call fcn.00405d7a
push 0x456d68
lea eax, [ebp - 0x23c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
jnp 0x42fbd0
inc edx
add byte [edx - 0x76ffbd08], al
clc
inc edx
add byte [eax - 0x61ffbd08], dl
clc
inc edx
add byte [edi - 0x5affbd08], dl
clc
inc edx
add byte [eax + edi*8 - 0x784ffbe], ch
inc edx
add byte [edi - 0x40ffbd06], bh
cli
inc edx
add ah, al
cli
inc edx
add al, cl
cli
inc edx
add ah, cl
cli
inc edx
add al, dl
cli
inc edx
add ah, dl
cli
inc edx
add ah, bl
cli
inc edx
add al, bl
cli
inc edx
add byte [ebx + 0x33], dl
push ebx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x42fc46
push eax
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
ret