Function at 0x401a8d
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [0x406198]
push edi
push str.Wow64DisableWow64FsRedirection
push str.kernel32
mov ebx, eax
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0x401acc
lea ecx, [esp + 0x20]
push ecx
call eax
mov dword [esp + 0x1c], eax
push 0x16
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [0x40620c], eax
mov dword [0x406210], edi
mov dword [0x406214], edi
mov dword [esp + 0x14], edi
cmp dword [esi], edi
jbe 0x401c47
lea ecx, [esi + 0x14]
mov dword [esp + 0x10], ecx
mov eax, dword [ecx]
mov edx, eax
shr edx, 4
and edx, dword [0x4061ac]
lea ebp, [ecx - 8]
test edx, 0xffff
je 0x401c30
and eax, dword [0x4061b0]
test al, 0xf
je 0x401c30
mov esi, dword [esp + 0x2c]
mov eax, dword [ecx + 0xc]
add eax, dword [0x40619c]
push 0x104
push esi
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push str.Copy__s_r_n
call fcn.0040140b
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401b92
mov eax, esi
cmp word [eax], di
je 0x401b92
cmp word [esi], di
je 0x401b92
cmp word [esi], 0x5c
je 0x401b76
inc esi
inc esi
cmp word [esi], di
jne 0x401b69
cmp word [esi], di
je 0x401b92
push edi
xor eax, eax
push ebx
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x5c
pop eax
mov word [esi], ax
inc esi
inc esi
jmp 0x401b64
test dword [ebp + 8], 0x400000
jne 0x401c28
push edi
push edi
push 2
push edi
push edi
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401bf8
test dword [ebp + 8], 0x800000
je 0x401cee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x401cee
push ebx
call fcn.00401998
pop ecx
push edi
push edi
push 2
push edi
push edi
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401cee
mov eax, dword [ebp + 0x10]
cmp eax, edi
jbe 0x401c17
push esi
push eax
mov eax, dword [ebp + 0x18]
add eax, dword [0x406198]
push 0x406200
call fcn.004013c4
add esp, 0xc
push ebp
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
add ecx, 0x1c
mov dword [esp + 0x10], ecx
cmp eax, dword [esi]
jb 0x401afc
mov ebp, dword [esp + 0x28]
push 0x401a4f
push 0x1e
mov esi, 0xff
push esi
push ebp
call dword [sym.imp.USER32.dll_SetTimer]
cmp dword [0x4061a4], edi
je 0x401c7c
push dword [esp + 0x30]
mov ecx, dword [esp + 0x30]
xor eax, eax
push ebx
mov word [ecx], ax
call fcn.004014d9
pop ecx
pop ecx
mov eax, dword [esp + 0x2c]
push ebp
push ebx
call fcn.00401639
pop ecx
pop ecx
push esi
push ebp
call dword [sym.imp.USER32.dll_KillTimer]
push edi
push 0x2710
push 0x402
push dword [0x40620c]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x4044a4
call fcn.0040140b
xor ebx, ebx
inc ebx
pop ecx
cmp dword [esp + 0x1c], ebx
jne 0x401cde
mov esi, dword [esp + 0x20]
push str.Wow64RevertWow64FsRedirection
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x401cde
push esi
call eax
mov dword [0x406180], ebx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.Failed_to_write_file:__s__code:__d_r_n
call fcn.0040140b
xor eax, eax
add esp, 0xc
inc eax
jmp 0x401ce6