Function at 0x40255d
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xef4
mov eax, 0x411187
call fcn.0040f4b1
push 0xe3e
xor edi, edi
lea eax, [ebp - 0xe54]
push edi
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xe5c]
call dword [0x41278c]
lea ecx, [ebp - 0xe58]
mov dword [ebp - 4], edi
call dword [0x41278c]
mov byte [ebp - 4], 1
mov eax, dword [ebx]
mov dword [ebp - 0xe68], edi
mov dword [ebp - 0xe64], edi
mov eax, dword [eax - 0xc]
cmp eax, 3
jle 0x4025e5
push 0x412be2
push ebx
call fcn.004039d7
pop ecx
pop ecx
test al, al
jne 0x4025da
push 0x412b58
push ebx
call fcn.004039d7
pop ecx
pop ecx
test al, al
je 0x4025e5
cmp byte [ebx + 4], 0
jne 0x4025ef
jmp 0x4029a7
cmp byte [ebx + 4], 0
je 0x4027cf
mov ecx, ebx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::TrimLeft]
mov ecx, ebx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::TrimRight]
mov eax, dword [ebx]
cmp dword [eax - 0xc], edi
je 0x4027cf
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4027cf
mov eax, dword [ebx]
mov eax, dword [eax - 0xc]
dec eax
push eax
mov ecx, ebx
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::operator__]
cmp ax, 0x5c
jne 0x40264f
mov eax, dword [ebx]
mov eax, dword [eax - 0xc]
push 0x20
dec eax
push eax
mov ecx, ebx
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::SetAt]
mov ecx, ebx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::TrimLeft]
mov ecx, ebx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::TrimRight]
push edi
call dword [sym.imp.MSVCR90.dll__time64]
mov dword [ebp - 0xe68], eax
pop ecx
lea eax, [ebp - 0xf00]
push eax
lea eax, [ebp - 0xe68]
push eax
mov dword [ebp - 0xe64], edx
call fcn.00403a45
cmp eax, edi
je 0x402685
mov eax, dword [eax + 4]
mov dword [ebp - 0xe6c], eax
jmp 0x40268c
or dword [ebp - 0xe6c], 0xffffffff
lea eax, [ebp - 0xe94]
push eax
lea eax, [ebp - 0xe68]
push eax
call fcn.00403a45
cmp eax, edi
je 0x4026ae
mov eax, dword [eax + 8]
mov dword [ebp - 0xe60], eax
jmp 0x4026b5
or dword [ebp - 0xe60], 0xffffffff
lea eax, [ebp - 0xedc]
push eax
lea eax, [ebp - 0xe68]
push eax
call fcn.00403a45
cmp eax, edi
je 0x4026d2
mov esi, dword [eax + 0x10]
inc esi
jmp 0x4026d4
xor esi, esi
lea eax, [ebp - 0xeb8]
push eax
lea eax, [ebp - 0xe68]
push eax
call fcn.00403a45
cmp eax, edi
je 0x4026ee
mov edi, dword [eax + 0xc]
push dword [ebp - 0xe6c]
lea eax, [ebp - 0xe68]
push dword [ebp - 0xe60]
push eax
call fcn.00403a1f
push eax
push esi
push edi
lea eax, [ebp - 0xe5c]
push 0x412b5c
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
mov eax, dword [ebx]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esp, 0x1c
push 0
push eax
call esi
lea edi, [ebp - 0xe60]
call fcn.00403a88
mov ecx, edi
mov byte [ebp - 4], 2
mov eax, dword [ebx]
push ecx
push eax
lea eax, [ebp - 0xe70]
push eax
call fcn.00403c10
add esp, 0xc
mov byte [ebp - 4], 3
mov eax, dword [eax]
test eax, eax
je 0x40275d
mov eax, dword [eax]
jmp 0x40275f
xor eax, eax
push eax
lea eax, [ebp - 0xe6c]
push eax
lea ecx, [ebp - 0xe5c]
call fcn.00403d1f
pop ecx
pop ecx
push eax
mov ecx, ebx
mov byte [ebp - 4], 4
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
lea ecx, [ebp - 0xe6c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea edi, [ebp - 0xe70]
call fcn.00403bcb
lea edi, [ebp - 0xe60]
mov byte [ebp - 4], 1
call fcn.00403bcb
push 0
push dword [ebx]
call esi
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4029a7
push 0x412b7c
mov ecx, ebx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
jmp 0x4029a7
mov eax, dword [sym.imp.MSVCR90.dll___wargv]
mov eax, dword [eax]
push dword [eax]
lea eax, [ebp - 0xe54]
call fcn.00401291
lea eax, [ebp - 0xa44]
push eax
lea ecx, [ebp - 0xe60]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
lea ecx, [ebp - 0xa3e]
push ecx
lea ecx, [ebp - 0xe70]
push ecx
mov esi, eax
mov byte [ebp - 4], 5
call fcn.00403cb4
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0xe58]
mov byte [ebp - 4], 6
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
lea ecx, [ebp - 0xe70]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0xe60]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push edi
call dword [sym.imp.MSVCR90.dll__time64]
mov dword [ebp - 0xe68], eax
pop ecx
lea eax, [ebp - 0xeb8]
push eax
lea eax, [ebp - 0xe68]
push eax
mov dword [ebp - 0xe64], edx
call fcn.00403a45
cmp eax, edi
je 0x402874
mov eax, dword [eax + 4]
mov dword [ebp - 0xe60], eax
jmp 0x40287b
or dword [ebp - 0xe60], 0xffffffff
lea eax, [ebp - 0xedc]
push eax
lea eax, [ebp - 0xe68]
push eax
call fcn.00403a45
cmp eax, edi
je 0x40289d
mov eax, dword [eax + 8]
mov dword [ebp - 0xe6c], eax
jmp 0x4028a4
or dword [ebp - 0xe6c], 0xffffffff
lea eax, [ebp - 0xe94]
push eax
lea eax, [ebp - 0xe68]
push eax
call fcn.00403a45
cmp eax, edi
je 0x4028c1
mov esi, dword [eax + 0x10]
inc esi
jmp 0x4028c3
xor esi, esi
lea eax, [ebp - 0xf00]
push eax
lea eax, [ebp - 0xe68]
push eax
call fcn.00403a45
cmp eax, edi
je 0x4028dd
mov edi, dword [eax + 0xc]
push dword [ebp - 0xe60]
lea eax, [ebp - 0xe68]
push dword [ebp - 0xe6c]
push eax
call fcn.00403a1f
push eax
push esi
push edi
lea eax, [ebp - 0xe5c]
push 0x412b5c
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esp, 0x1c
push 0
push dword [ebp - 0xe58]
call esi
lea eax, [ebp - 0xe5c]
push eax
lea eax, [ebp - 0xe70]
push eax
lea ecx, [ebp - 0xe58]
call fcn.00403984
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0xe58]
mov byte [ebp - 4], 7
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
lea ecx, [ebp - 0xe70]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push 0
push dword [ebp - 0xe58]
call esi
push dword [ebp - 0xe58]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, ebx
test eax, eax
jne 0x402982
push 0x412b80
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
jmp 0x40298f
lea eax, [ebp - 0xe58]
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
lea ecx, [ebp - 0xe58]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
lea ecx, [ebp - 0xe5c]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
lea ecx, [ebp - 0xe58]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0xe5c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
call fcn.0040f4fb
ret