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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10140632
mov eax, dword fs:[0]
push eax
sub esp, 0xfd0
mov eax, dword [0x10170024]
xor eax, esp
mov dword [esp + 0xfc8], eax
push ebx
push esi
push edi
mov eax, dword [0x10170024]
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 0x1008d9fb
push eax
call fcn.1007dea0
mov dword [esp + 0x24], eax
jmp 0x1008d9ff
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 0x1008da99
lea eax, [esp + 0x6ac]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x1008da50
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 + 0x6ac]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x1008db7a
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 0x1008dad0
sub eax, edx
cmp eax, esi
jle 0x1008dafb
mov cl, 0x5c
cmp byte [esp + eax + 0x6ac], cl
je 0x1008daf3
sub eax, 1
cmp eax, esi
jg 0x1008dae1
jmp 0x1008dafb
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 0x1008db05
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 + 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 0x1008db7a
push 0x13e
mov dword [esp + 0x24], 0x13e100b
call fcn.1008ce00
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 0x1008e1a3
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x6ac]
push ecx
push edx
call fcn.1007df90
movzx eax, al
cmp eax, esi
jne 0x1008dbbf
push 0x141
mov dword [esp + 0x24], 0x1411004
call fcn.1008ce00
add esp, 4
mov esi, eax
call sub.Comn.dll_GetObjectLog
push esi
push 0x1411004
push str.xmlAllTasks__LoadFile_sCurPath__TIXML_ENCODING_UTF8_
jmp 0x1008e196
mov esi, dword [edi + 0xc]
add edi, 4
cmp dword [edi + 4], esi
mov dword [esp + 0x2c], edi
jbe 0x1008dbd4
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [edi + 4]
cmp ebx, dword [edi + 8]
jbe 0x1008dbe2
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.10090830
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx + 0x18]
test esi, esi
je 0x1008dc14
jmp 0x1008dc00
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x1008dc50
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x1008dc00
xor eax, eax
xor ecx, ecx
test eax, eax
setne cl
mov esi, ecx
test esi, esi
jne 0x1008dc5b
push 0x147
call fcn.1008ce00
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 0x1008e1a3
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
jmp 0x1008dc16
mov esi, dword [eax + 0x18]
test esi, esi
je 0x1008dc7a
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x1008dd99
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x1008dc62
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 0x1008dd0d
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 0x1008e16f
add edi, 0x2c
mov esi, 0x10154798
call fcn.1007ed30
cmp eax, ebx
je 0x1008e131
mov eax, dword [eax + 0x18]
add eax, 8
cmp eax, ebx
je 0x1008e131
mov esi, str.username
call fcn.1007ed30
cmp eax, ebx
je 0x1008e131
mov eax, dword [eax + 0x18]
add eax, 8
cmp eax, ebx
je 0x1008e131
mov esi, str.nasipname
call fcn.1007ed30
cmp eax, ebx
je 0x1008e131
mov eax, dword [eax + 0x18]
add eax, 8
cmp eax, ebx
je 0x1008e131
mov esi, 0x10154798
call fcn.1007ed30
cmp eax, ebx
je 0x1008dda7
mov eax, dword [eax + 0x18]
add eax, 8
jmp 0x1008dda9
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
jmp 0x1008dc7c
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.1007ed30
cmp eax, ebx
je 0x1008ddd5
mov eax, dword [eax + 0x18]
add eax, 8
jmp 0x1008ddd7
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.1007ed30
cmp eax, ebx
je 0x1008de00
mov eax, dword [eax + 0x18]
add eax, 8
jmp 0x1008de02
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 0x1008de31
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 0x1008e0f8
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.1008f770
test eax, eax
je 0x1008e0f8
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 0x1008def0
xor esi, esi
cmp edi, esi
je 0x1008df12
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 0x1008df52
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.1008f770
mov edi, dword [esp + 0x18]
test edi, edi
jbe 0x1008e0f8
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.1008f770
test eax, eax
je 0x1008e0f8
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 0x1008e006
xor ebx, ebx
cmp esi, ebx
je 0x1008e028
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 0x1008e053
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 0x1008e060
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 0x1008e0d0
movzx ecx, word [esp + eax + 0xbc4]
mov word [esp + eax + 0x8c], cx
add eax, 2
cmp cx, bx
jne 0x1008e0d0
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x8c]
call fcn.10090670
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 0x1008e154
lea esp, [esp]
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x1008e164
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x1008e140
xor eax, eax
test eax, eax
mov dword [esp + 0x30], eax
jne 0x1008dc80
jmp 0x1008e1a6
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
jmp 0x1008e156
push 0x154
mov dword [esp + 0x24], 0x154100c
call fcn.1008ce00
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 0x1008e1d8
mov esi, dword [edi + 0x18]
cmp esi, ebx
je 0x1008e1c8
mov ecx, esi
mov eax, dword [ecx]
mov edx, dword [eax]
mov esi, dword [esi + 0x28]
push 1
call edx
cmp esi, ebx
jne 0x1008e1b7
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.1012d370
mov esp, ebp
pop ebp
ret