Function at 0x10022a30
Capabilities:
Check if file exists
Create thread
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e1af4
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x10145188]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x5e0]
mov edi, dword [eax]
mov dword [ebp - 0x10], 0
cmp edi, eax
je 0x10022b63
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [edi + 8]
mov eax, dword [ecx + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10022bd9
lea ecx, [ebp - 0x2c]
call dword [0x100ec830]
push 0x2710
lea edx, [ebp - 0x2c]
xor esi, esi
push edx
mov dword [ebp - 4], esi
mov eax, dword [edi + 8]
push ecx
add eax, 0x18
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call dword [0x100ec964]
call fcn.100013d0
mov eax, dword [ebp - 0x24]
add esp, 0xc
test eax, eax
jle 0x10022b42
test esi, esi
js 0x10022be2
cmp esi, eax
jge 0x10022be2
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + esi*4]
push eax
call ebx
test al, 0x10
jne 0x10022b27
lea ecx, [ebp - 0x40]
call dword [0x100eca34]
mov byte [ebp - 4], 1
cmp esi, dword [ebp - 0x24]
jge 0x10022be2
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + esi*4]
push 0
push 0
push eax
lea ecx, [ebp - 0x40]
call dword [sym.imp.mfc100u.dll_CFile::Open]
lea ecx, [ebp - 0x40]
test eax, eax
je 0x10022b31
call dword [sym.imp.mfc100u.dll_CFile::Close]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call dword [sym.imp.mfc100u.dll_CFile::CFile]
mov eax, dword [ebp - 0x24]
inc esi
cmp esi, eax
jl 0x10022ac6
jmp 0x10022b42
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 0
call dword [sym.imp.mfc100u.dll_CFile::CFile]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mfc100u.dll_CStringArray::CStringArray]
mov edi, dword [edi]
mov eax, dword [ebp + 8]
cmp edi, dword [eax + 0x5e0]
jne 0x10022a78
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
push 0
push esi
push 0x10022390
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [ebp - 0x10]
cmp eax, 1
jne 0x10022be8
push str.FileSend_1
lea ecx, [ebp + 8]
call dword [0x100ec95c]
mov dword [ebp - 4], 2
mov edx, dword [ebp + 8]
mov edi, dword [esi + 4]
mov esi, dword [sym.imp.DuiLib_u.dll_public:_static_wchar_t_const____cdecl_DuiLib::CPaintManagerUI::GetStringById_wchar_t_const__]
push edx
call esi
add esp, 4
push 0
push edi
push str.Common_3
mov dword [ebp - 0x10], eax
call esi
add esp, 4
push str.Common_9
mov edi, eax
call esi
mov ecx, dword [ebp - 0x10]
add esp, 4
push eax
xor ebx, ebx
mov edx, edi
call fcn.100031f0
lea ecx, [ebp + 8]
jmp 0x10022c40
mov dword [ebp - 0x10], 4
jmp 0x10022b63
call dword [sym.imp.mfc100u.dll_AfxThrowInvalidArgException]
cmp eax, 4
jne 0x10022c49
push str.FileSend_76
lea ecx, [ebp - 0x10]
call dword [0x100ec95c]
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x10]
mov edi, dword [esi + 4]
mov esi, dword [sym.imp.DuiLib_u.dll_public:_static_wchar_t_const____cdecl_DuiLib::CPaintManagerUI::GetStringById_wchar_t_const__]
push eax
call esi
add esp, 4
push 0
push edi
push str.Common_3
mov dword [ebp + 8], eax
call esi
add esp, 4
push str.Common_9
mov edi, eax
call esi
mov ecx, dword [ebp + 8]
add esp, 4
push eax
xor ebx, ebx
mov edx, edi
call fcn.100031f0
lea ecx, [ebp - 0x10]
add esp, 0xc
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4