Function at 0x49ac80
Capabilities:
Check if file exists
Create directory
Create process on windows
Get common file path
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5d08c1
push eax
mov dword fs:[0], esp
sub esp, 0x218
lea eax, [esp + 0x18]
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x27
push eax
mov esi, ecx
push ebx
call dword [sym.imp.shell32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 0x24]
push ecx
push 0x61dff4
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
push eax
call fcn.0049abb0
add esp, 8
test eax, eax
je 0x49ae7e
lea ecx, [esp + 0x10]
call sub.mfc42u.dll_CString::CString_3
lea edi, [esi + 0x190]
push ebx
mov ecx, edi
mov dword [esp + 0x230], ebx
call fcn.0049aea0
push ecx
add eax, 0x20
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call sub.mfc42u.dll_CString::CString_1
lea edx, [esp + 0x1c]
push edx
call fcn.004f4600
add esp, 8
mov eax, dword [eax]
lea ecx, [esp + 0x24]
push eax
push ecx
lea edx, [esp + 0x18]
push 0x61dfe8
push edx
mov byte [esp + 0x23c], 1
call sub.mfc42u.dll_CString::Format_1
add esp, 0x10
lea ecx, [esp + 0x18]
mov byte [esp + 0x22c], bl
call sub.mfc42u.dll_CString::CString
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x49ad5e
lea ecx, [esp + 0x10]
push ecx
call fcn.0042f440
add esp, 4
mov edx, dword [esp + 0x10]
push ebx
push edx
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
mov ecx, esi
call fcn.00497c80
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x20], ebx
call fcn.0049aeb0
mov ecx, dword [esp + 0x14]
mov eax, 2
cmp ecx, eax
mov byte [esp + 0x22c], al
mov dword [esp + 0xc], eax
jl 0x49add3
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
call fcn.0049aeb0
lea ecx, [esp + 0x18]
call sub.mfc42u.dll_CString::CString
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0xc], eax
jle 0x49ada3
mov ecx, edi
mov dword [esp + 0xc], ebx
call fcn.004f8140
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jge 0x49ae0e
mov eax, dword [esi + 0x1d8]
mov eax, dword [eax + ecx*4]
cmp eax, ebx
je 0x49adf6
mov dword [eax + 0x48], ebx
mov eax, dword [esp + 0xc]
mov ecx, edi
inc eax
mov dword [esp + 0xc], eax
call fcn.004f8140
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jl 0x49ade6
mov ecx, dword [esi + 0x1cc]
push ebx
push ecx
mov ecx, esi
mov dword [esi + 0x17c], ebx
call fcn.0043db90
mov ecx, esi
call fcn.0043f300
call sub.mfc42u.dll_AfxGetThread
cmp eax, ebx
je 0x49ae3e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
cmp eax, ebx
jne 0x49ae42
xor eax, eax
jmp 0x49ae45
mov eax, dword [eax + 0x20]
mov ecx, dword [esp + 0x1c]
push 3
push ebx
push ebx
push ecx
push 0x61898c
push eax
call dword [sym.imp.shell32.dll_ShellExecuteW]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x22c], bl
call sub.mfc42u.dll_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x22c], 0xffffffff
call sub.mfc42u.dll_CString::CString
mov ecx, dword [esp + 0x224]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x224
ret