Function at 0x4144b0
Capabilities:
Create directory
Get common file path
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x2e0
mov eax, dword [0x47cda4]
xor eax, esp
mov dword [esp + 0x2dc], eax
call fcn.00404090
test al, al
je 0x414909
push ebp
xor ebp, ebp
lea eax, [esp + 0xd8]
push eax
push ebp
push ebp
push 0x1c
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
call fcn.00407ed0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, 0x104
lea eax, [esp + 0xd8]
cmp word [eax], bp
je 0x414513
add eax, 2
sub ecx, 1
jne 0x414504
jmp 0x414538
cmp ecx, ebp
je 0x414538
mov eax, 0x104
sub eax, ecx
push str.DXUTSkipRefWarning.dat
mov ecx, 0x104
sub ecx, eax
push ecx
lea edx, [esp + eax*2 + 0xe0]
push edx
call fcn.00401000
push esi
push ebp
push ebp
push 3
push ebp
push 1
push 0x80000000
lea eax, [esp + 0xf4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x414575
push ebp
lea ecx, [esp + 0x14]
push ecx
push 4
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 8], ebp
jne 0x414907
mov edx, 7
push edi
mov ecx, edx
mov dword [esp + 0x18], 0x90c808c5
mov dword [esp + 0x1c], ebp
mov word [esp + 0x20], 5
mov word [esp + 0x22], bp
mov word [esp + 0x24], bp
mov word [esp + 0x26], 0x10d
mov word [esp + 0x28], 0x52
mov word [esp + 0x2a], bp
mov word [esp + 0x2c], bp
mov dword [esp + 0x2e], 0x20
mov word [esp + 0x32], 8
mov esi, str.MS_Shell_Dlg_2
lea edi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0x82
mov eax, 0x18
mov word [esp + 0x68], cx
mov word [esp + 0x84], cx
mov ecx, 0xe
mov word [esp + 0x5c], dx
mov word [esp + 0x5e], dx
mov word [esp + 0x60], ax
mov word [esp + 0x62], ax
mov eax, 0xffff
mov word [esp + 0x7a], dx
mov edi, 0x27
mov edx, 0x32
mov word [esp + 0x9a], cx
mov esi, 0x80
mov word [esp + 0xb6], cx
mov ecx, 7
mov word [esp + 0x52], bp
mov dword [esp + 0x54], 0x50000203
mov dword [esp + 0x58], ebp
mov word [esp + 0x64], 0x100
mov word [esp + 0x66], ax
mov word [esp + 0x6a], bp
mov word [esp + 0x6c], bp
mov word [esp + 0x6e], bp
mov dword [esp + 0x70], 0x50000000
mov dword [esp + 0x74], ebp
mov word [esp + 0x78], 0x28
mov word [esp + 0x7c], 0xe6
mov word [esp + 0x7e], 0x19
mov word [esp + 0x80], 0x101
mov word [esp + 0x82], ax
mov word [esp + 0x86], bp
mov word [esp + 0x88], bp
mov word [esp + 0x8a], bp
mov dword [esp + 0x8c], 0x50010001
mov dword [esp + 0x90], ebp
mov word [esp + 0x94], 0x50
mov word [esp + 0x96], di
mov word [esp + 0x98], dx
mov word [esp + 0x9c], 6
mov word [esp + 0x9e], ax
mov word [esp + 0xa0], si
mov word [esp + 0xa2], bp
mov word [esp + 0xa4], bp
mov word [esp + 0xa6], bp
mov dword [esp + 0xa8], 0x50010000
mov dword [esp + 0xac], ebp
mov word [esp + 0xb0], 0x85
mov word [esp + 0xb2], di
mov word [esp + 0xb4], dx
mov word [esp + 0xb8], cx
mov word [esp + 0xba], ax
mov word [esp + 0xbc], si
mov word [esp + 0xbe], bp
mov word [esp + 0xc0], bp
mov word [esp + 0xc2], bp
mov dword [esp + 0xc4], 0x50010002
mov dword [esp + 0xc8], ebp
mov word [esp + 0xcc], cx
mov word [esp + 0xce], 0x3b
mov word [esp + 0xd0], 0x46
mov word [esp + 0xd2], 0x10
mov word [esp + 0xd6], ax
xor eax, eax
cmp dword [esp + 0x2f0], ebp
mov word [esp + 0xd4], 5
setne al
mov word [esp + 0xd8], si
mov word [esp + 0xda], bp
mov word [esp + 0xdc], bp
mov word [esp + 0xde], bp
add eax, 9
push eax
push 0x4142d0
call fcn.00407ed0
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00403db0
push eax
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
mov edi, eax
mov edx, edi
and edx, esi
cmp dl, 0x80
jne 0x4148f6
lea eax, [esp + 0xe0]
push eax
push ebp
push ebp
push 0x1c
mov dword [esp + 0x1c], 1
call fcn.00407ed0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, 0x104
lea eax, [esp + 0xe0]
cmp word [eax], bp
je 0x414847
add eax, 2
sub ecx, 1
jne 0x414838
jmp 0x41486c
cmp ecx, ebp
je 0x41486c
mov eax, 0x104
sub eax, ecx
push str.DXUT
mov ecx, 0x104
sub ecx, eax
push ecx
lea edx, [esp + eax*2 + 0xe8]
push edx
call fcn.00401000
push ebp
lea eax, [esp + 0xe4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, 0x104
lea eax, [esp + 0xe0]
cmp word [eax], bp
je 0x414896
add eax, 2
sub ecx, 1
jne 0x414887
jmp 0x4148bb
cmp ecx, ebp
je 0x4148bb
mov eax, 0x104
sub eax, ecx
push str.SkipRefWarning.dat
mov ecx, 0x104
sub ecx, eax
push ecx
lea edx, [esp + eax*2 + 0xe8]
push edx
call fcn.00401000
push ebp
push ebp
push 2
push ebp
push ebp
push 0x40000000
lea eax, [esp + 0xf8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4148f6
push ebp
lea ecx, [esp + 0x14]
push ecx
push 4
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
and eax, 0xf
cmp al, 7
pop edi
jne 0x414907
push 1
call fcn.0040a800
pop esi
pop ebp
mov ecx, dword [esp + 0x2dc]
xor ecx, esp
call fcn.00417060
add esp, 0x2e0
ret 4