Function at 0x10022550
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100dc54e
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x10145188]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push 0xc
mov edi, ecx
mov dword [ebp - 0xac], ebx
call dword [sym.imp.mfc100u.dll_new]
add esp, 4
cmp eax, ebx
je 0x100228d0
mov dword [eax], eax
mov dword [ebp - 0xb0], eax
mov dword [eax + 4], eax
lea edx, [ebp - 0xb0]
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.10025ec0
mov dword [ebp - 0xa0], ebx
cmp dword [edi + 0x554], ebx
jle 0x100227ce
jmp 0x100225d0
mov esi, dword [ebp - 0xb0]
mov eax, dword [esi]
mov dword [ebp - 0xa4], eax
cmp eax, esi
je 0x100227a0
jmp 0x100225f6
mov eax, dword [ebp - 0xa4]
mov ebx, dword [eax + 8]
call dword [sym.imp.MSVCR100.dll_rand]
push 0x30
mov dword [ebp - 0xb4], eax
call dword [sym.imp.mfc100u.dll_new]
add esp, 4
mov dword [ebp - 0x9c], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x10022628
push eax
call fcn.10027370
mov esi, eax
jmp 0x1002262a
xor esi, esi
mov eax, dword [ebp - 0xa0]
mov byte [ebp - 4], 0
mov dword [ebp - 0x9c], esi
test eax, eax
js 0x100227c8
cmp eax, dword [edi + 0x554]
jge 0x100227c8
mov ecx, dword [edi + 0x550]
lea eax, [ecx + eax*4]
push eax
lea ecx, [ebp - 0x98]
call dword [0x100ec964]
lea edx, [ebp - 0x98]
push edx
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
mov eax, dword [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
sete cl
mov byte [esi + 0x10], cl
push 0x5c
lea ecx, [ebp - 0x98]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::ReverseFind]
inc eax
push eax
lea edx, [ebp - 0xbc]
push edx
lea ecx, [ebp - 0x98]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Mid]
push eax
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 3
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 2
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 dword [esi + 0xc], 0
mov eax, dword [edi + 4]
mov dword [esi + 0x28], eax
mov edx, dword [ebx]
mov eax, dword [edx + 0xc8]
mov ecx, ebx
call eax
mov ecx, eax
call dword [sym.imp.DuiLib_u.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const]
push eax
mov ecx, esi
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
mov edx, dword [ebx]
mov edx, dword [edx + 0x28]
lea eax, [ebp - 0x94]
push eax
mov ecx, ebx
call edx
mov ecx, eax
mov byte [ebp - 4], 4
call dword [sym.imp.DuiLib_u.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const]
push eax
lea ecx, [esi + 4]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 2
call dword [sym.imp.DuiLib_u.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
mov eax, dword [ebp - 0xb4]
mov dword [esi + 0x1c], eax
mov esi, dword [edi + 0x5e0]
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x9c]
push ecx
push edx
push esi
call fcn.10017ac0
mov ecx, dword [edi + 0x5e4]
mov edx, 0x3ffffffe
sub edx, ecx
cmp edx, 1
jb 0x100227bd
inc ecx
mov dword [edi + 0x5e4], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0
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 eax, dword [ebp - 0xa4]
mov eax, dword [eax]
mov dword [ebp - 0xa4], eax
cmp eax, dword [ebp - 0xb0]
jne 0x100225f0
mov esi, dword [ebp - 0xb0]
mov eax, dword [ebp - 0xa0]
inc eax
mov dword [ebp - 0xa0], eax
cmp eax, dword [edi + 0x554]
jl 0x100225d0
xor ebx, ebx
jmp 0x100227d4
push str.list_T__too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
call dword [sym.imp.mfc100u.dll_AfxThrowInvalidArgException]
mov esi, dword [ebp - 0xb0]
cmp dword [edi + 0x530], ebx
je 0x1002282c
cmp dword [edi + 0x534], ebx
je 0x1002282c
mov ecx, dword [edi + 0x530]
mov edx, dword [ecx]
mov eax, dword [edx + 0xdc]
push 1
call eax
mov ecx, dword [edi + 0x534]
mov edx, dword [ecx]
mov eax, dword [edx + 0xdc]
push ebx
call eax
mov eax, dword [edi + 0x494]
cmp eax, ebx
je 0x1002281d
mov cl, byte [edi + 0x4b1]
mov byte [eax + 0xd88], cl
push 0xffffffffffffffff
lea ecx, [edi + 0x54c]
push ebx
call dword [sym.imp.mfc100u.dll_CStringArray::SetSize]
call dword [sym.imp.Configuration.dll_class_cm_configuration::ConfigurationManager____cdecl_cm_configuration::GetConfigurationManager_void_]
mov ecx, eax
call dword [sym.imp.Configuration.dll_public:_enum_RCD_PRODUCT_MODE___thiscall_cm_configuration::ConfigurationManager::get_rcd_mode_void_]
cmp eax, 2
je 0x1002287c
mov ecx, dword [edi + 0x494]
add ecx, 0x760
call dword [sym.imp.DuiLib_u.dll_public_virtual:_void___thiscall_DuiLib::CListUI::RemoveAll_void_]
mov eax, dword [edi + 0x5e0]
mov ebx, dword [eax]
mov dword [ebp - 0x9c], eax
cmp ebx, eax
je 0x1002287c
mov edx, dword [ebx + 8]
mov ecx, dword [edi + 0x494]
push edx
call fcn.10095c10
mov ebx, dword [ebx]
cmp ebx, dword [ebp - 0x9c]
jne 0x10022863
mov eax, dword [edi + 4]
push 0
push 0
push 0x17bc
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esi]
mov ebx, dword [sym.imp.mfc100u.dll_delete_1]
mov dword [esi], esi
mov dword [esi + 4], esi
cmp eax, esi
je 0x100228ae
mov edi, dword [eax]
push eax
call ebx
add esp, 4
mov eax, edi
cmp edi, esi
jne 0x100228a0
push esi
call ebx
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100d0962
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0xb8]
push ecx
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0xb8], ebx
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x10122018
lea edx, [ebp - 0xc8]
push edx
mov dword [ebp - 0xc8], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3