Function at 0x40f3b6
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x195e4
call fcn.0044f640
mov eax, dword [0x4b7108]
xor eax, esp
mov dword [esp + 0x195e0], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_UnionRect]
push esi
mov esi, ecx
mov dword [esp + 0x2c], 0
push edi
mov dword [esp + 0x34], 0
mov eax, dword [esi + 0x34]
lea edi, [esi + 0x54]
sub eax, dword [esi + 0x2c]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x38]
sub eax, dword [esi + 0x30]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x30]
push eax
push edi
push edi
call ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
cmp eax, 0x7d0
jg 0x40f5d1
je 0x40f59e
lea edi, [eax - 0x3e8]
cmp edi, 0xa
ja case.default.0x40f5df
jmp dword [edi*4 + 0x40f788]
cmp byte [esi + 0x174], 0
je 0x40f2a7
lea ecx, [esi - 0x40]
call fcn.0040cdf0
push 1
lea ecx, [esi - 0x40]
mov dword [esi + 0x44], 3
mov dword [esi + 0x108], edi
call fcn.0040ba90
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x195e0]
xor ecx, esp
call fcn.0044ee41
mov esp, ebp
pop ebp
ret 8
lea ecx, [esi - 0x40]
call fcn.0040ef30
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x195e0]
xor ecx, esp
call fcn.0044ee41
mov esp, ebp
pop ebp
ret 8
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x208
lea eax, [esp + 0x193e4]
push 0
push eax
call fcn.00466930
movzx eax, word [esp + 0x48]
add esp, 0xc
push eax
movzx eax, word [esp + 0x3e]
push eax
movzx eax, word [esp + 0x40]
push eax
movzx eax, word [esp + 0x42]
push eax
movzx eax, word [esp + 0x42]
push eax
movzx eax, word [esp + 0x44]
push eax
lea eax, [esp + 0x193f8]
push 0x4aa62c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [esp + 0x193f0]
lea ecx, [esp + 0x70]
push eax
sub esp, 8
call fcn.00414070
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [esp + 0x64]
call fcn.00414040
cmp eax, 1
jne case.default.0x40f5df
sub esp, 0x18
lea eax, [esp + 0xc8d4]
mov ecx, esp
push eax
call fcn.00402160
lea ecx, [esi - 0x40]
call fcn.0040f020
lea ecx, [esi - 0x40]
call fcn.0040a610
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x195e0]
xor ecx, esp
call fcn.0044ee41
mov esp, ebp
pop ebp
ret 8
push 0x104
lea eax, [esp + 0x193e4]
push 0
push eax
call fcn.00466930
add esp, 0xc
lea eax, [esp + 0x193e0]
push 0
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push ecx
lea eax, [esp + 0x193e4]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.0048bc10
add esp, 8
lea ecx, [esp + 0x34]
mov edx, eax
call fcn.004019c0
add esp, 4
lea ecx, [esp + 0x48]
call fcn.004022d0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x4c]
call fcn.00401bf0
cmp dword [esp + 0x5c], 8
lea eax, [esp + 0x48]
cmovae eax, dword [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f441
test al, 0x10
je 0x40f441
mov edi, 1
jmp 0x40f443
xor edi, edi
mov eax, dword [esp + 0x5c]
cmp eax, 8
jb 0x40f45b
inc eax
lea ecx, [esp + 0x48]
push eax
push dword [esp + 0x4c]
call fcn.004021c0
test edi, edi
jne 0x40f47d
cmp dword [esp + 0x44], 8
lea eax, [esp + 0x30]
push edi
cmovae eax, dword [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40f557
push ecx
lea eax, [esp + 0x14]
push eax
call fcn.0048bf70
add esp, 4
lea ecx, [esp + 0x18]
mov edx, eax
call fcn.0040fb20
add esp, 4
lea ecx, [esp + 0x30]
push dword [eax]
call fcn.00413ed0
lea ecx, [esp + 0x14]
call fcn.004086c0
lea ecx, [esp + 0x10]
call fcn.004086c0
sub esp, 0x18
lea eax, [esp + 0x48]
mov ecx, esp
add esi, 0xffffffc0
push eax
call fcn.00401bf0
mov ecx, esi
call fcn.0040f020
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xc]
cmp eax, method.ui::Checkbox.virtual_12
jne 0x40f77e
mov eax, dword [esi]
call dword [eax + 0x10]
push dword [eax + 0x78]
lea ecx, [esp + 0x1c]
call fcn.00403040
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403090
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 2
push eax
lea ecx, [esp + 0x1c]
call fcn.00403300
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x40f542
mov dword [esp + 0x28], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40f542
mov dword [esp + 0x28], 0
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, esi
call fcn.0040a610
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x40f557
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea ecx, [esp + 0x30]
call fcn.004022d0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x195e0]
xor ecx, esp
call fcn.0044ee41
mov esp, ebp
pop ebp
ret 8
lea ecx, [esi - 0x40]
call fcn.0040c7f0
lea ecx, [esi - 0x40]
call fcn.0040a610
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x195e0]
xor ecx, esp
call fcn.0044ee41
mov esp, ebp
pop ebp
ret 8
lea eax, [esi + 4]
push eax
push edi
push edi
call ebx
mov eax, dword [esi - 0x40]
lea ecx, [esi - 0x40]
push edi
call dword [eax + 0x2c]
mov dword [esi + 0x10c], 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x195e0]
xor ecx, esp
call fcn.0044ee41
mov esp, ebp
pop ebp
ret 8
add eax, 0xfffff82f
cmp eax, 7
ja case.default.0x40f5df
jmp dword [eax*4 + 0x40f7b4]
lea eax, [esi + 4]
push eax
push edi
push edi
call ebx
mov eax, dword [esi - 0x40]
lea ecx, [esi - 0x40]
push edi
call dword [eax + 0x2c]
mov dword [esi + 0x10c], 3
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x195e0]
xor ecx, esp
call fcn.0044ee41
mov esp, ebp
pop ebp
ret 8
lea eax, [esi + 4]
push eax
push edi
push edi
call ebx
mov eax, dword [esi - 0x40]
lea ecx, [esi - 0x40]
push edi
call dword [eax + 0x2c]
mov dword [esi + 0x10c], 7
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x195e0]
xor ecx, esp
call fcn.0044ee41
mov esp, ebp
pop ebp
ret 8
lea eax, [esi + 4]
push eax
push edi
push edi
call ebx
mov eax, dword [esi - 0x40]
lea ecx, [esi - 0x40]
push edi
call dword [eax + 0x2c]
mov dword [esi + 0x110], 0xfffb3838
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x195e0]
xor ecx, esp
call fcn.0044ee41
mov esp, ebp
pop ebp
ret 8
lea eax, [esi + 4]
push eax
push edi
push edi
call ebx
mov eax, dword [esi - 0x40]
lea ecx, [esi - 0x40]
push edi
call dword [eax + 0x2c]
mov dword [esi + 0x110], 0xffffa600
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x195e0]
xor ecx, esp
call fcn.0044ee41
mov esp, ebp
pop ebp
ret 8
lea eax, [esi + 4]
push eax
push edi
push edi
call ebx
mov eax, dword [esi - 0x40]
lea ecx, [esi - 0x40]
push edi
call dword [eax + 0x2c]
mov dword [esi + 0x110], 0xff0077ff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x195e0]
xor ecx, esp
call fcn.0044ee41
mov esp, ebp
pop ebp
ret 8
lea eax, [esi + 4]
push eax
push edi
push edi
call ebx
mov eax, dword [esi - 0x40]
lea ecx, [esi - 0x40]
push edi
call dword [eax + 0x2c]
mov dword [esi + 0x110], 0xff00c16b
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x195e0]
xor ecx, esp
call fcn.0044ee41
mov esp, ebp
pop ebp
ret 8
lea eax, [esi + 4]
push eax
push edi
push edi
call ebx
mov eax, dword [esi - 0x40]
lea ecx, [esi - 0x40]
push edi
call dword [eax + 0x2c]
mov dword [esi + 0x110], 0xff050505
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x195e0]
xor ecx, esp
call fcn.0044ee41
mov esp, ebp
pop ebp
ret 8
lea eax, [esi + 4]
push eax
push edi
push edi
call ebx
mov eax, dword [esi - 0x40]
lea ecx, [esi - 0x40]
push edi
call dword [eax + 0x2c]
mov dword [esi + 0x110], 0xffffffff
mov ecx, dword [esp + 0x195ec]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044ee41
mov esp, ebp
pop ebp
ret 8
call eax
jmp 0x40f4e6