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

Disassembly:
push 0xffffffffffffffff
push 0x1014056a
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x10170024]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10170024]
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 0x1008fbfb
push eax
call fcn.1007dea0
mov ebp, eax
mov dword [esp + 0x18], eax
jmp 0x1008fc01
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 0x1008fc8a
lea eax, [esp + 0x44]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x1008fc44
mov edx, dword [str.AomeiBRNAS.XML]
mov ecx, dword [0x101546e4]
mov dword [eax], edx
mov edx, dword [0x101546e8]
mov dword [eax + 4], ecx
mov ecx, dword [0x101546ec]
mov dword [eax + 8], edx
mov dl, byte [0x101546f0]
mov dword [eax + 0xc], ecx
mov byte [eax + 0x10], dl
lea eax, [esp + 0x44]
push eax
call esi
cmp eax, 0xffffffff
jne 0x1008fd4a
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 0x1008fcb7
sub eax, edx
test eax, eax
jle 0x1008fcdc
mov cl, 0x5c
cmp byte [esp + eax + 0x44], cl
je 0x1008fcd7
sub eax, 1
test eax, eax
jg 0x1008fcc8
jmp 0x1008fcdc
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 0x1008fce3
mov ecx, dword [str.NAS.XML]
mov edx, dword [0x101546f8]
mov dword [eax], ecx
mov cl, byte [0x101546fc]
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 0x1008fd4a
push 0x439
call fcn.1008ce00
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 0x100900c5
lea ecx, [esp + 0x44]
push ecx
push ebp
call fcn.1007df90
movzx eax, al
test eax, eax
jne 0x1008fd8a
push 0x43c
call fcn.1008ce00
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 0x100900c5
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x1008fda5
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x1008fde5
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x1008fd91
xor eax, eax
xor ecx, ecx
test eax, eax
setne cl
mov dword [esp + 0x14], eax
mov esi, ecx
test esi, esi
jne 0x1008fdf0
push 0x440
call fcn.1008ce00
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 0x100900c5
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
jmp 0x1008fda7
mov esi, dword [eax + 0x18]
test esi, esi
je 0x1008fe0b
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x1008fe67
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x1008fdf7
xor eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
jmp 0x1008fe20
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 0x10090081
lea edi, [ebx + 0x2c]
mov esi, str.nasipname
call fcn.1007ed30
test eax, eax
je 0x1008fe72
mov eax, dword [eax + 0x18]
add eax, 8
jmp 0x1008fe74
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
jmp 0x1008fe0d
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 0x1008feb0
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 0x1008ffc2
mov esi, dword [ebx + 0x28]
test esi, esi
je 0x1008ff5b
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x1008ff75
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x1008ff47
xor esi, esi
mov ecx, dword [esp + 0x14]
cmp dword [ebx + 0x10], ecx
jne 0x1008ffa7
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x1008ff82
mov edx, dword [ebx + 0x24]
mov dword [eax + 0x24], edx
jmp 0x1008ff88
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
mov esi, eax
jmp 0x1008ff5d
mov eax, dword [ebx + 0x24]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x1008ff97
mov ecx, dword [ebx + 0x28]
mov dword [eax + 0x28], ecx
jmp 0x1008ff9d
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 0x100900bb
mov ebx, esi
jmp 0x1009003a
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 0x1009002b
mov ecx, dword [esp + 0x20]
push edi
push ecx
lea edx, [esp + 0x254]
push edx
call esi
add esp, 0xc
test eax, eax
jne 0x1009002b
mov esi, dword [ebx + 0x28]
test esi, esi
je 0x10090014
lea ecx, [ecx]
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
test eax, eax
jne 0x10090069
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x10090000
xor esi, esi
mov edx, dword [esp + 0x14]
mov ecx, ebx
call fcn.1007d680
test esi, esi
je 0x100900ac
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 0x1009005b
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
test eax, eax
jne 0x10090076
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x10090047
xor eax, eax
test eax, eax
mov ebx, eax
jne 0x1008fe20
jmp 0x100900c1
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
mov esi, eax
jmp 0x10090016
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
jmp 0x1009005d
push 0x449
call fcn.1008ce00
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 0x100900c1
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 0x10090155
mov eax, dword [ebp + 0x20]
add eax, 8
push eax
mov ebx, 0x101536b4
call fcn.1007d100
mov esi, eax
xor ebx, ebx
add esp, 4
cmp esi, ebx
je 0x1009012c
cmp byte [ebp + 0x44], bl
je 0x1009010f
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 0x10090144
mov ecx, esi
mov eax, dword [ecx]
mov edx, dword [eax]
mov esi, dword [esi + 0x28]
push 1
call edx
cmp esi, ebx
jne 0x10090133
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.1012d370
add esp, 0x450
ret 8