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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10146672
mov eax, dword fs:[0]
push eax
sub esp, 0xfd0
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0xfc8], eax
push ebx
push esi
push edi
mov eax, dword [0x10177024]
xor eax, esp
push eax
lea eax, [esp + 0xfe0]
mov dword fs:[0], eax
xor esi, esi
push 0x103
lea eax, [esp + 0x6b1]
push esi
push eax
mov edi, ecx
mov dword [esp + 0x2c], esi
mov byte [esp + 0x6b8], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x48
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, esi
mov dword [esp + 0xfe8], esi
je 0x1008dd5b
push eax
call fcn.1007e1c0
mov dword [esp + 0x24], eax
jmp 0x1008dd5f
mov dword [esp + 0x24], esi
mov dword [esp + 0xfe8], 0xffffffff
call sub.Encrypt.dll_CreateEncryptObject
mov edx, dword [eax]
mov dword [esp + 0x28], eax
mov ecx, eax
mov eax, dword [edx + 8]
push 2
mov dword [esp + 0x14], esi
call eax
lea ecx, [esp + 0x6ac]
push ecx
push esi
push esi
push 0x23
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jl 0x1008ddf9
lea eax, [esp + 0x6ac]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x1008ddb0
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 + 0x6ac]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x1008deda
push 0x104
lea ecx, [esp + 0x6b0]
push esi
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea edx, [esp + 0x6b0]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x6ac]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1008de30
sub eax, edx
cmp eax, esi
jle 0x1008de5b
mov cl, 0x5c
cmp byte [esp + eax + 0x6ac], cl
je 0x1008de53
sub eax, 1
cmp eax, esi
jg 0x1008de41
jmp 0x1008de5b
mov byte [esp + eax + 0x6ac], 0
lea eax, [esp + 0x6ac]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x1008de65
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 + 0x6ac]
push edx
mov byte [eax + 8], cl
call ebx
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
cmp eax, esi
jne 0x1008deda
push 0x13e
mov dword [esp + 0x24], 0x13e100b
call fcn.1008d160
add esp, 4
mov esi, eax
call sub.Comn.dll_GetObjectLog
mov edx, dword [eax]
push esi
push 0x13e100b
push str.::GetFileAttributesA_sCurPath__INVALID_FILE_ATTRIBUTES
push str._s_return_code:_0x_08X___s.
push eax
mov eax, dword [edx + 0xc]
call eax
jmp 0x1008e503
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x6ac]
push ecx
push edx
call fcn.1007e2b0
movzx eax, al
cmp eax, esi
jne 0x1008df1f
push 0x141
mov dword [esp + 0x24], 0x1411004
call fcn.1008d160
add esp, 4
mov esi, eax
call sub.Comn.dll_GetObjectLog
push esi
push 0x1411004
push str.xmlAllTasks__LoadFile_sCurPath__TIXML_ENCODING_UTF8_
jmp 0x1008e4f6
mov esi, dword [edi + 0xc]
add edi, 4
cmp dword [edi + 4], esi
mov dword [esp + 0x2c], edi
jbe 0x1008df34
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [edi + 4]
cmp ebx, dword [edi + 8]
jbe 0x1008df42
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push esi
push edi
push ebx
push edi
lea eax, [esp + 0x40]
push eax
call fcn.10090b90
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx + 0x18]
test esi, esi
je 0x1008df74
jmp 0x1008df60
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x1008dfb0
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x1008df60
xor eax, eax
xor ecx, ecx
test eax, eax
setne cl
mov esi, ecx
test esi, esi
jne 0x1008dfbb
push 0x147
call fcn.1008d160
add esp, 4
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
jmp 0x1008e503
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
jmp 0x1008df76
mov esi, dword [eax + 0x18]
test esi, esi
je 0x1008dfda
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x1008e0f9
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x1008dfc2
xor eax, eax
mov dword [esp + 0x30], eax
xor ebx, ebx
push 0x206
lea ecx, [esp + 0x92]
push ebx
push ecx
mov word [esp + 0x98], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x414
lea edx, [esp + 0x298]
push ebx
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x207
lea eax, [esp + 0x7b9]
push ebx
push eax
mov byte [esp + 0x7c0], bl
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x207
lea ecx, [esp + 0x9c1]
push ebx
push ecx
mov byte [esp + 0x9c8], bl
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
je 0x1008e06d
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esp + 0x10], ebx
mov edi, dword [esp + 0x30]
xor eax, eax
cmp edi, ebx
setne al
cmp eax, ebx
je 0x1008e4cf
add edi, 0x2c
mov esi, 0x1015aac8
call fcn.1007f080
cmp eax, ebx
je 0x1008e491
mov eax, dword [eax + 0x18]
add eax, 8
cmp eax, ebx
je 0x1008e491
mov esi, str.username
call fcn.1007f080
cmp eax, ebx
je 0x1008e491
mov eax, dword [eax + 0x18]
add eax, 8
cmp eax, ebx
je 0x1008e491
mov esi, str.nasipname
call fcn.1007f080
cmp eax, ebx
je 0x1008e491
mov eax, dword [eax + 0x18]
add eax, 8
cmp eax, ebx
je 0x1008e491
mov esi, 0x1015aac8
call fcn.1007f080
cmp eax, ebx
je 0x1008e107
mov eax, dword [eax + 0x18]
add eax, 8
jmp 0x1008e109
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
jmp 0x1008dfdc
xor eax, eax
push eax
lea ecx, [esp + 0x3c]
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__]
mov esi, str.username
mov dword [esp + 0xfe8], 1
call fcn.1007f080
cmp eax, ebx
je 0x1008e135
mov eax, dword [eax + 0x18]
add eax, 8
jmp 0x1008e137
xor eax, eax
push eax
lea ecx, [esp + 0x58]
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__]
mov esi, str.nasipname
mov byte [esp + 0xfe8], 2
call fcn.1007f080
cmp eax, ebx
je 0x1008e160
mov eax, dword [eax + 0x18]
add eax, 8
jmp 0x1008e162
xor eax, eax
push eax
lea ecx, [esp + 0x74]
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__]
mov byte [esp + 0xfe8], 3
cmp dword [esp + 0x50], 0x10
mov eax, 0x208
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x3c]
jae 0x1008e191
lea eax, [esp + 0x3c]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x9c0]
push ecx
push edx
push eax
call sub.Encrypt.dll_StrToHex
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push ebx
push ebx
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x7c0]
push edx
mov edx, dword [esp + 0x24]
push edx
lea edx, [esp + 0x9d0]
push edx
call eax
push ebx
push ebx
push 0xffffffffffffffff
lea ecx, [esp + 0x7c0]
push ecx
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x18], esi
jbe 0x1008e458
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
mov edi, eax
add esp, 4
lea eax, [esi + esi + 2]
push eax
push 0
push edi
mov dword [esp + 0x1c], edi
call sub.MSVCR80.dll_memset
add esp, 0xc
push edi
lea ecx, [esp + 0x7b8]
push ecx
lea ebx, [esp + 0x20]
call fcn.1008fad0
test eax, eax
je 0x1008e458
lea edx, [esp + 0x49c]
mov eax, edi
sub edx, edi
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x1008e250
xor esi, esi
cmp edi, esi
je 0x1008e272
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esp + 0x10], esi
mov edi, 0x208
push edi
lea edx, [esp + 0x7b8]
push esi
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
push edi
lea eax, [esp + 0x9c0]
push esi
push eax
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0x64]
add esp, 0xc
cmp dword [esp + 0x6c], 0x10
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edi
jae 0x1008e2b2
lea eax, [esp + 0x58]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x6c]
lea edx, [esp + 0x9c0]
push edx
push ecx
push eax
call sub.Encrypt.dll_StrToHex
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push esi
push esi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x7c0]
push eax
mov eax, dword [esp + 0x24]
push eax
lea eax, [esp + 0x9d0]
push eax
call edx
push esi
lea eax, [esp + 0x7b8]
push eax
lea ebx, [esp + 0x20]
mov dword [esp + 0x20], esi
call fcn.1008fad0
mov edi, dword [esp + 0x18]
test edi, edi
jbe 0x1008e458
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
mov esi, eax
add esp, 4
lea eax, [edi + edi + 2]
push eax
push 0
push esi
mov dword [esp + 0x1c], esi
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
lea ecx, [esp + 0x7b8]
push ecx
call fcn.1008fad0
test eax, eax
je 0x1008e458
lea edx, [esp + 0x294]
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x1008e366
xor ebx, ebx
cmp esi, ebx
je 0x1008e388
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esp + 0x10], ebx
push 0x208
lea edx, [esp + 0x7b8]
push ebx
push edx
call sub.MSVCR80.dll_memset
mov ecx, dword [esp + 0x80]
add esp, 0xc
cmp dword [esp + 0x88], 0x10
jae 0x1008e3b3
lea ecx, [esp + 0x74]
lea edx, [esp + 0x7b4]
lea ebx, [ebx]
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
cmp al, bl
jne 0x1008e3c0
push 0x40e
lea eax, [esp + 0xbca]
push ebx
push eax
mov word [esp + 0xbd0], bx
call sub.MSVCR80.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add esp, 0xc
push ebx
push ebx
push 0xffffffffffffffff
lea ecx, [esp + 0x7c0]
push ecx
push ebx
push 0xfde9
call esi
push eax
lea edx, [esp + 0xbc8]
push edx
push 0xffffffffffffffff
lea eax, [esp + 0x7c0]
push eax
push ebx
push 0xfde9
call esi
xor eax, eax
jmp 0x1008e430
movzx ecx, word [esp + eax + 0xbc4]
mov word [esp + eax + 0x8c], cx
add eax, 2
cmp cx, bx
jne 0x1008e430
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x8c]
call fcn.100909d0
lea ecx, [esp + 0x70]
mov byte [esp + 0xfe8], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x54]
mov byte [esp + 0xfe8], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x38]
mov dword [esp + 0xfe8], 0xffffffff
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 ecx, dword [esp + 0x30]
mov esi, dword [ecx + 0x28]
test esi, esi
je 0x1008e4b4
lea esp, [esp]
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x1008e4c4
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x1008e4a0
xor eax, eax
test eax, eax
mov dword [esp + 0x30], eax
jne 0x1008dfe0
jmp 0x1008e506
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
jmp 0x1008e4b6
push 0x154
mov dword [esp + 0x24], 0x154100c
call fcn.1008d160
add esp, 4
mov esi, eax
call sub.Comn.dll_GetObjectLog
push esi
push 0x154100c
push str.__pItem__NULL_
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push str._s_return_code:_0x_08X___s.
push eax
call edx
add esp, 0x14
mov edi, dword [esp + 0x24]
xor ebx, ebx
cmp edi, ebx
je 0x1008e538
mov esi, dword [edi + 0x18]
cmp esi, ebx
je 0x1008e528
mov ecx, esi
mov eax, dword [ecx]
mov edx, dword [eax]
mov esi, dword [esi + 0x28]
push 1
call edx
cmp esi, ebx
jne 0x1008e517
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
mov eax, dword [esp + 0x28]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x24]
add esp, 4
mov ecx, dword [esp + 0xfe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xfc8]
xor ecx, esp
call fcn.10130e50
mov esp, ebp
pop ebp
ret