Function at 0x402290
Capabilities:
Create directory
Get file attributes
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x407608
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x58]
test esi, esi
push edi
je 0x4024d2
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x4024d2
lea eax, [esp + 0x10]
push esi
push eax
call fcn.00402760
add esp, 8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x54], 0
call sub.MFC42u.DLL_CStringArray::CStringArray
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push 0x40a1f0
push edx
mov byte [esp + 0x60], 1
call fcn.00401a70
add esp, 0xc
test eax, eax
jle 0x4024b3
lea ecx, [esp + 0x30]
call fcn.00404f10
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x5c]
push eax
mov byte [esp + 0x58], 2
call fcn.00407046
mov eax, dword [esp + 0x24]
mov edi, 1
cmp eax, edi
mov byte [esp + 0x54], 3
jle 0x402444
mov ebp, dword [sym.imp.MSVCRT.dll_wcscmp]
lea ecx, [esp + 0x14]
push 1
push ecx
lea ecx, [esp + 0x64]
call sub.MFC42u.DLL_CString::Right
mov edx, dword [eax]
push 0x40a1f0
push edx
mov byte [esp + 0x5c], 4
call ebp
add esp, 8
test eax, eax
mov eax, 0x40a1f0
jne 0x402375
mov eax, 0x40af10
push eax
lea ecx, [esp + 0x60]
call fcn.00407052
lea ecx, [esp + 0x14]
mov byte [esp + 0x54], 3
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x20]
lea ecx, [eax + edi*4]
push ecx
lea ecx, [esp + 0x60]
call fcn.00407004
mov edx, dword [esp + 0x5c]
xor esi, esi
push esi
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4023c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402497
mov esi, 1
mov eax, dword [esp + 0x64]
test eax, eax
je 0x4023d2
test esi, esi
je 0x402404
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x18]
push 1
push eax
lea ecx, [ecx + edi*4]
call sub.MFC42u.DLL_CString::Left
mov edx, dword [eax]
push 0x40a2b4
push edx
call ebp
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
sete bl
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x40241d
mov eax, dword [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [esp + 0x5c]
or al, 2
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test esi, esi
jne 0x402437
mov eax, dword [esp + 0x60]
test eax, eax
je 0x402437
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x30]
push edx
call fcn.00405000
mov eax, dword [esp + 0x24]
inc edi
cmp edi, eax
jl 0x402345
lea ecx, [esp + 0x5c]
mov byte [esp + 0x54], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 1
call fcn.00404f50
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 0
call fcn.00407058
lea ecx, [esp + 0x10]
mov dword [esp + 0x54], 0xffffffff
call sub.MFC42u.DLL_CString::CString
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret
lea ecx, [esp + 0x5c]
mov byte [esp + 0x54], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 1
call fcn.00404f50
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 0
call fcn.00407058
lea ecx, [esp + 0x10]
mov dword [esp + 0x54], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret