Function at 0x42f750
Capabilities:
Create directory
Get common file path

Disassembly:
push 0x2a0
mov eax, 0x43de0b
call fcn.00437f7e
mov esi, edx
mov dword [ebp - 0x298], esi
mov edi, ecx
mov dword [ebp - 0x294], edi
mov dword [ebp - 0x2a0], edi
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x29c], edi
xor ebx, ebx
push 0x444535
mov dword [ebp - 0x29c], eax
call fcn.00402815
mov dword [ebp - 4], ebx
cmp byte [ebp + 0x10], bl
je 0x42f7b0
push 9
push str.ProjectX
lea ecx, [ebp - 0x260]
call fcn.004044fc
push str.Shell32.dll
mov dword [ebp - 0x2a8], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
mov dword [ebp - 0x2a4], ebx
test ebx, ebx
je 0x42f7df
push str.SHGetKnownFolderPath
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x2a8], eax
push ecx
push 6
xor edx, edx
mov byte [ebp - 4], 1
pop ecx
call fcn.0041eb35
pop ecx
test al, al
je 0x42f9b7
cmp esi, 8
ja case.default.0x42f7fc
jmp dword [esi*4 + 0x42fb60]
mov esi, 0x43ff2c
jmp 0x42f839
mov esi, 0x43fedc
jmp 0x42f839
mov esi, 0x43ff0c
jmp 0x42f839
mov esi, 0x43fecc
jmp 0x42f839
mov esi, 0x43febc
jmp 0x42f839
mov esi, 0x43feec
jmp 0x42f839
mov esi, 0x43feac
jmp 0x42f839
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 - 0x298]
mov edi, dword [ebp - 0x294]
and dword [ebp - 0x2a0], 0
mov ecx, dword [ebp - 0x2a8]
test ecx, ecx
je 0x42f9b7
lea eax, [ebp - 0x2a0]
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 0x42f9b7
push dword [ebp - 0x2a0]
lea ecx, [ebp - 0x294]
call fcn.00416070
mov byte [ebp - 4], 2
lea eax, [ebp - 0x260]
cmp dword [ebp - 0x24c], 0xf
lea ecx, [ebp - 0x294]
cmova eax, dword [ebp - 0x260]
push eax
call fcn.0042fc04
push 0x44c2a8
lea ecx, [ebp - 0x294]
call fcn.0042fc04
cmp byte [ebp + 8], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x42f8f9
push 0
push dword [ebp - 0x294]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42f8f9
call esi
cmp eax, 0xb7
jne 0x42fb20
mov eax, dword [ebp - 0x29c]
test eax, eax
je 0x42f956
push eax
lea ecx, [ebp - 0x294]
call fcn.0042fc04
cmp byte [ebp + 8], 0
je 0x42f956
push 0
push dword [ebp - 0x294]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42f956
call esi
cmp eax, 0xb7
je 0x42f956
call esi
push eax
push dword [ebp - 0x294]
lea eax, [ebp - 0x290]
push str.Failed_to_create_subdirectory__S__error_d
push eax
call fcn.0040f0b3
add esp, 0x10
mov byte [ebp - 4], 4
jmp 0x42fb41
push dword [ebp - 0x294]
lea ecx, [ebp - 0x298]
call fcn.00416070
lea ecx, [ebp - 0x298]
mov byte [ebp - 4], 5
call fcn.0042fbd4
push dword [ebp - 0x298]
mov ecx, edi
call fcn.0040bb9e
lea ecx, [ebp - 0x298]
call fcn.00402b3c
lea ecx, [ebp - 0x294]
call fcn.00402b3c
test ebx, ebx
je 0x42f9a4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x260]
call fcn.004027a6
mov eax, edi
call fcn.00437f2d
ret
movzx eax, byte [ebp + 8]
lea edx, [ebp - 0x260]
shl eax, 0xf
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x2a0], eax
call fcn.0040eec0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x29c]
test eax, eax
je 0x42fa3b
push eax
lea ecx, [ebp - 0x230]
call fcn.00402815
lea edx, [ebp - 0x230]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x248]
call fcn.0040eec0
mov byte [ebp - 4], 8
mov ecx, eax
cmp dword [eax + 0x14], 7
jbe 0x42fa12
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.0x42fa40.7
jmp dword [esi*4 + 0x42fb84]
push 0x1c
pop ecx
jmp 0x42fa6a
push 0x23
jmp 0x42fa49
push 2
jmp 0x42fa49
push 0x17
jmp 0x42fa49
push 0x26
jmp 0x42fa49
xor ecx, ecx
jmp 0x42fa6a
push 0x1a
jmp 0x42fa49
mov ecx, dword [ebp - 0x29c]
cmp dword [ebp - 0x264], 7
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x278]
cmova eax, dword [ebp - 0x278]
or ecx, dword [ebp - 0x2a0]
push eax
xor eax, eax
push eax
push eax
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
test eax, eax
jne 0x42fb05
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x29c]
call fcn.00416070
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x298]
push dword [ebp - 0x29c]
call fcn.00416070
lea ecx, [ebp - 0x298]
mov byte [ebp - 4], 0xa
call fcn.0042fbd4
push dword [ebp - 0x298]
mov ecx, edi
call fcn.0040bb9e
lea ecx, [ebp - 0x298]
call fcn.00402b3c
lea ecx, [ebp - 0x29c]
call fcn.00402b3c
lea ecx, [ebp - 0x278]
call fcn.00402ab8
jmp 0x42f999
push eax
lea eax, [ebp - 0x290]
push str.Bad_result_from_SHGetFolderPathAndSubDirW_d
push eax
call fcn.0040f0b3
add esp, 0xc
mov byte [ebp - 4], 0xb
jmp 0x42fb41
call esi
push eax
push dword [ebp - 0x294]
lea eax, [ebp - 0x290]
push str.Failed_to_create_directory__S__error_d
push eax
call fcn.0040f0b3
add esp, 0x10
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x23c]
call fcn.00405d7a
push 0x456da8
lea eax, [ebp - 0x23c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
nop
add edi, eax
inc edx
add byte [edx], cl
clc
inc edx
add byte [ecx], dl
clc
inc edx
add byte [eax], bl
clc
inc edx
add byte [esi], ah
clc
inc edx
add byte [edi], bl
clc
inc edx
add byte [0x340042f8], ch
clc
inc edx
add byte [ebx], al
clc
inc edx
add byte [edi - 6], al
inc edx
add byte [edi - 6], al
inc edx
add byte [edx + edi*8 + 0x42], cl
add byte [eax - 6], dl
inc edx
add byte [edx + edi*8 + 0x42], dl
add byte [eax - 6], bl
inc edx
add byte [edx + edi*8 + 0x42], bl
add byte [edx + edi*8 + 0x42], ah
add byte [eax - 6], ah
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 0x42fbd0
push eax
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
ret