Function at 0x1008fed0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x101465aa
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10177024]
xor eax, esp
push eax
lea eax, [esp + 0x458]
mov dword fs:[0], eax
mov eax, dword [esp + 0x468]
push 0x103
lea edx, [esp + 0x49]
push 0
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x50], 0
call sub.MSVCR80.dll_memset
push 0x48
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x10
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x460], 0
je 0x1008ff5b
push eax
call fcn.1007e1c0
mov ebp, eax
mov dword [esp + 0x18], eax
jmp 0x1008ff61
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x460], 0xffffffff
call sub.Encrypt.dll_CreateEncryptObject
mov edx, dword [eax]
mov dword [esp + 0x1c], eax
mov ecx, eax
mov eax, dword [edx + 8]
push 2
call eax
lea ecx, [esp + 0x44]
push ecx
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jl 0x1008ffea
lea eax, [esp + 0x44]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x1008ffa4
mov edx, dword [str.AomeiBRNAS.XML]
mov ecx, dword [0x1015aa14]
mov dword [eax], edx
mov edx, dword [0x1015aa18]
mov dword [eax + 4], ecx
mov ecx, dword [0x1015aa1c]
mov dword [eax + 8], edx
mov dl, byte [0x1015aa20]
mov dword [eax + 0xc], ecx
mov byte [eax + 0x10], dl
lea eax, [esp + 0x44]
push eax
call esi
cmp eax, 0xffffffff
jne 0x100900aa
push 0x104
lea ecx, [esp + 0x48]
push 0
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea edx, [esp + 0x48]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x44]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10090017
sub eax, edx
test eax, eax
jle 0x1009003c
mov cl, 0x5c
cmp byte [esp + eax + 0x44], cl
je 0x10090037
sub eax, 1
test eax, eax
jg 0x10090028
jmp 0x1009003c
mov byte [esp + eax + 0x44], 0
lea eax, [esp + 0x44]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x10090043
mov ecx, dword [str.NAS.XML]
mov edx, dword [0x1015aa28]
mov dword [eax], ecx
mov cl, byte [0x1015aa2c]
mov dword [eax + 4], edx
lea edx, [esp + 0x44]
push edx
mov byte [eax + 8], cl
call esi
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
test eax, eax
jne 0x100900aa
push 0x439
call fcn.1008d160
mov esi, eax
call sub.Comn.dll_GetObjectLog
mov edx, dword [eax]
push esi
push 0
push str.__::GetFileAttributesA_sCurPath___INVALID_FILE_ATTRIBUTES_
push str._s_return_code:_0x_08X___s.
push eax
mov eax, dword [edx + 0xc]
call eax
add esp, 0x18
jmp 0x10090425
lea ecx, [esp + 0x44]
push ecx
push ebp
call fcn.1007e2b0
movzx eax, al
test eax, eax
jne 0x100900ea
push 0x43c
call fcn.1008d160
mov esi, eax
call sub.Comn.dll_GetObjectLog
mov edx, dword [eax]
push esi
push 0
push str.xmlAllTasks__LoadFile_sCurPath__TIXML_ENCODING_UTF8_
push str._s_return_code:_0x_08X___s.
push eax
mov eax, dword [edx + 0xc]
call eax
add esp, 0x18
jmp 0x10090425
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x10090105
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x10090145
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x100900f1
xor eax, eax
xor ecx, ecx
test eax, eax
setne cl
mov dword [esp + 0x14], eax
mov esi, ecx
test esi, esi
jne 0x10090150
push 0x440
call fcn.1008d160
mov edi, eax
call sub.Comn.dll_GetObjectLog
mov edx, dword [eax]
push edi
push esi
push str.__pRoot__NULL_
push str._s_return_code:_0x_08X___s.
push eax
mov eax, dword [edx + 0xc]
call eax
add esp, 0x18
jmp 0x10090425
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
jmp 0x10090107
mov esi, dword [eax + 0x18]
test esi, esi
je 0x1009016b
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x100901c7
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x10090157
xor eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
jmp 0x10090180
push 0x103
lea ecx, [esp + 0x14d]
push 0
push ecx
mov byte [esp + 0x154], 0
call sub.MSVCR80.dll_memset
xor eax, eax
add esp, 0xc
test ebx, ebx
setne al
test eax, eax
je 0x100903e1
lea edi, [ebx + 0x2c]
mov esi, str.nasipname
call fcn.1007f080
test eax, eax
je 0x100901d2
mov eax, dword [eax + 0x18]
add eax, 8
jmp 0x100901d4
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
jmp 0x1009016d
xor eax, eax
push eax
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 0x104
lea edx, [esp + 0x14c]
push 0
push edx
mov dword [esp + 0x46c], 1
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0x38]
add esp, 0xc
cmp dword [esp + 0x40], 0x10
jae 0x10090210
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x14c]
push 0x104
push eax
call dword [sym.imp.MSVCR80.dll_strcpy_s]
push 0x206
lea ecx, [esp + 0x25e]
push 0
push ecx
mov word [esp + 0x264], 0
call sub.MSVCR80.dll_memset
add esp, 0x18
push 0
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x154]
push edx
push 0
push 0xfde9
call ebp
push eax
lea eax, [esp + 0x250]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x154]
push ecx
push 0
push 0xfde9
call ebp
mov edi, dword [esp + 0x46c]
mov edx, dword [esp + 0x20]
mov esi, dword [sym.imp.MSVCR80.dll__wcsnicmp]
push edi
push edx
lea eax, [esp + 0x254]
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x10090322
mov esi, dword [ebx + 0x28]
test esi, esi
je 0x100902bb
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x100902d5
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x100902a7
xor esi, esi
mov ecx, dword [esp + 0x14]
cmp dword [ebx + 0x10], ecx
jne 0x10090307
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x100902e2
mov edx, dword [ebx + 0x24]
mov dword [eax + 0x24], edx
jmp 0x100902e8
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
mov esi, eax
jmp 0x100902bd
mov eax, dword [ebx + 0x24]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x100902f7
mov ecx, dword [ebx + 0x28]
mov dword [eax + 0x28], ecx
jmp 0x100902fd
mov edx, dword [ebx + 0x28]
mov dword [ecx + 0x18], edx
mov eax, dword [ebx]
mov edx, dword [eax]
push 1
mov ecx, ebx
call edx
test esi, esi
mov dword [esp + 0x460], 0xffffffff
lea ecx, [esp + 0x28]
je 0x1009041b
mov ebx, esi
jmp 0x1009039a
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
lea edx, [esp + 0x24c]
push edx
push 0x104
push edx
call eax
test al, al
je 0x1009038b
mov ecx, dword [esp + 0x20]
push edi
push ecx
lea edx, [esp + 0x254]
push edx
call esi
add esp, 0xc
test eax, eax
jne 0x1009038b
mov esi, dword [ebx + 0x28]
test esi, esi
je 0x10090374
lea ecx, [ecx]
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
test eax, eax
jne 0x100903c9
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x10090360
xor esi, esi
mov edx, dword [esp + 0x14]
mov ecx, ebx
call fcn.1007d9a0
test esi, esi
je 0x1009040c
mov ebx, esi
mov dword [esp + 0x460], 0xffffffff
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov esi, dword [ebx + 0x28]
test esi, esi
je 0x100903bb
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
test eax, eax
jne 0x100903d6
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x100903a7
xor eax, eax
test eax, eax
mov ebx, eax
jne 0x10090180
jmp 0x10090421
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
mov esi, eax
jmp 0x10090376
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
jmp 0x100903bd
push 0x449
call fcn.1008d160
mov esi, eax
call sub.Comn.dll_GetObjectLog
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push esi
push 0
push str.__pItem__NULL_
push str._s_return_code:_0x_08X___s.
push eax
call edx
add esp, 0x18
jmp 0x10090421
mov dword [esp + 0x460], 0xffffffff
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x100904b5
mov eax, dword [ebp + 0x20]
add eax, 8
push eax
mov ebx, 0x101599e4
call fcn.1007d420
mov esi, eax
xor ebx, ebx
add esp, 4
cmp esi, ebx
je 0x1009048c
cmp byte [ebp + 0x44], bl
je 0x1009046f
mov edi, dword [sym.imp.MSVCR80.dll_fputc]
push esi
push 0xef
call edi
push esi
push 0xbb
call edi
push esi
push 0xbf
call edi
add esp, 0x18
mov eax, dword [ebp]
mov edx, dword [eax + 4]
push ebx
push esi
mov ecx, ebp
call edx
push esi
call dword [sym.imp.MSVCR80.dll_ferror]
push esi
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 8
mov esi, dword [ebp + 0x18]
cmp esi, ebx
je 0x100904a4
mov ecx, esi
mov eax, dword [ecx]
mov edx, dword [eax]
mov esi, dword [esi + 0x28]
push 1
call edx
cmp esi, ebx
jne 0x10090493
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x1c], ebx
mov eax, dword [ebp]
mov edx, dword [eax]
push 1
mov ecx, ebp
call edx
mov eax, dword [esp + 0x1c]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x458]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.10130e50
add esp, 0x450
ret 8