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

Disassembly:
push 0xffffffffffffffff
push 0x100481aa
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x10056024]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10056024]
xor eax, esp
push eax
lea eax, [esp + 0x458]
mov dword fs:[0], eax
mov eax, dword [esp + 0x468]
xor ebx, ebx
push 0x103
lea edx, [esp + 0x49]
push ebx
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x50], bl
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
cmp eax, ebx
mov dword [esp + 0x460], ebx
je 0x10040567
push eax
call fcn.10039a50
mov edi, eax
mov dword [esp + 0x14], eax
jmp 0x1004056d
xor edi, edi
mov dword [esp + 0x14], edi
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 ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jl 0x100405f6
lea eax, [esp + 0x44]
add eax, 0xffffffff
lea ecx, [ecx]
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x100405b0
mov edx, dword [str.AomeiBRNAS.XML]
mov ecx, dword [0x1004f13c]
mov dword [eax], edx
mov edx, dword [0x1004f140]
mov dword [eax + 4], ecx
mov ecx, dword [0x1004f144]
mov dword [eax + 8], edx
mov dl, byte [0x1004f148]
mov dword [eax + 0xc], ecx
mov byte [eax + 0x10], dl
lea eax, [esp + 0x44]
push eax
call esi
cmp eax, 0xffffffff
jne 0x100406b6
push 0x104
lea ecx, [esp + 0x48]
push ebx
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea edx, [esp + 0x48]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x44]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x10040621
sub eax, edx
cmp eax, ebx
jle 0x10040645
mov cl, 0x5c
cmp byte [esp + eax + 0x44], cl
je 0x10040641
sub eax, 1
cmp eax, ebx
jg 0x10040632
jmp 0x10040645
mov byte [esp + eax + 0x44], bl
lea eax, [esp + 0x44]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x10040650
mov ecx, dword [str.NAS.XML]
mov edx, dword [0x1004f150]
mov dword [eax], ecx
mov cl, byte [0x1004f154]
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
cmp eax, ebx
jne 0x100406b6
push 0x32a
call fcn.1003dfc0
mov esi, eax
call sub.Comn.dll_GetObjectLog
mov edx, dword [eax]
push esi
push ebx
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 0x10040a82
lea ecx, [esp + 0x44]
push ecx
push edi
call fcn.10039b00
movzx eax, al
cmp eax, ebx
jne 0x100406f5
push 0x32d
call fcn.1003dfc0
mov esi, eax
call sub.Comn.dll_GetObjectLog
mov edx, dword [eax]
push esi
push ebx
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 0x10040a82
mov esi, dword [edi + 0x18]
cmp esi, ebx
je 0x10040714
lea esp, [esp]
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x10040754
mov esi, dword [esi + 0x28]
cmp esi, ebx
jne 0x10040700
xor edi, edi
mov dword [esp + 0x18], edi
xor ecx, ecx
cmp edi, ebx
setne cl
mov esi, ecx
cmp esi, ebx
jne 0x10040765
push 0x331
call fcn.1003dfc0
mov ebp, eax
call sub.Comn.dll_GetObjectLog
mov edx, dword [eax]
push ebp
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 0x10040a7e
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
mov edi, eax
mov dword [esp + 0x18], eax
jmp 0x1004071a
mov esi, dword [edi + 0x18]
cmp esi, ebx
je 0x10040788
lea esp, [esp]
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x100408ea
mov esi, dword [esi + 0x28]
cmp esi, ebx
jne 0x10040770
xor eax, eax
mov ebp, eax
lea esp, [esp]
push 0x103
lea ecx, [esp + 0x14d]
push ebx
push ecx
mov byte [esp + 0x154], bl
call sub.MSVCR80.dll_memset
xor eax, eax
add esp, 0xc
cmp ebp, ebx
setne al
cmp eax, ebx
je 0x10040a3f
mov eax, dword [ebp + 0x4c]
lea edx, [ebp + 0x2c]
cmp eax, edx
je 0x100407eb
mov esi, dword [eax + 0x14]
add esi, 8
mov edi, str.nasipname
mov ecx, 0xa
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x100408f8
mov eax, dword [eax + 0x20]
cmp eax, edx
jne 0x100407c6
mov edi, dword [esp + 0x18]
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 ebx
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 0x10040828
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 ebx
push ecx
mov word [esp + 0x264], bx
call sub.MSVCR80.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add esp, 0x18
push ebx
push ebx
push 0xffffffffffffffff
lea edx, [esp + 0x154]
push edx
push ebx
push 0xfde9
call esi
push eax
lea eax, [esp + 0x250]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x154]
push ecx
push ebx
push 0xfde9
call esi
mov edx, dword [esp + 0x46c]
mov eax, dword [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x254]
push ecx
call dword [sym.imp.MSVCR80.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x10040946
mov esi, dword [ebp + 0x28]
cmp esi, ebx
je 0x100408d4
lea esp, [esp]
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x10040909
mov esi, dword [esi + 0x28]
cmp esi, ebx
jne 0x100408c0
xor esi, esi
cmp dword [ebp + 0x10], edi
jne 0x1004093c
mov eax, dword [ebp + 0x28]
cmp eax, ebx
je 0x10040916
mov ecx, dword [ebp + 0x24]
mov dword [eax + 0x24], ecx
jmp 0x1004091c
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
jmp 0x1004078a
mov eax, dword [eax + 0x18]
mov edi, dword [esp + 0x18]
add eax, 8
xor ebx, ebx
jmp 0x100407ed
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
mov esi, eax
jmp 0x100408d6
mov edx, dword [ebp + 0x24]
mov dword [edi + 0x1c], edx
mov eax, dword [ebp + 0x24]
cmp eax, ebx
je 0x1004092b
mov ecx, dword [ebp + 0x28]
mov dword [eax + 0x28], ecx
jmp 0x10040931
mov edx, dword [ebp + 0x28]
mov dword [edi + 0x18], edx
mov eax, dword [ebp]
mov edx, dword [eax]
push 1
mov ecx, ebp
call edx
cmp esi, ebx
je 0x10040a69
mov ebp, esi
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 0x100409f3
mov ecx, dword [esp + 0x46c]
mov edx, dword [esp + 0x20]
push ecx
push edx
lea eax, [esp + 0x254]
push eax
call dword [sym.imp.MSVCR80.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x100409f3
mov esi, dword [ebp + 0x28]
cmp esi, ebx
je 0x100409a4
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x100409ba
mov esi, dword [esi + 0x28]
cmp esi, ebx
jne 0x10040990
xor esi, esi
cmp dword [ebp + 0x10], edi
jne 0x100409ed
mov eax, dword [ebp + 0x28]
cmp eax, ebx
je 0x100409c7
mov ecx, dword [ebp + 0x24]
mov dword [eax + 0x24], ecx
jmp 0x100409cd
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
mov esi, eax
jmp 0x100409a6
mov edx, dword [ebp + 0x24]
mov dword [edi + 0x1c], edx
mov eax, dword [ebp + 0x24]
cmp eax, ebx
je 0x100409dc
mov ecx, dword [ebp + 0x28]
mov dword [eax + 0x28], ecx
jmp 0x100409e2
mov edx, dword [ebp + 0x28]
mov dword [edi + 0x18], edx
mov eax, dword [ebp]
mov edx, dword [eax]
push 1
mov ecx, ebp
call edx
cmp esi, ebx
je 0x10040a69
mov ebp, esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x460], 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 ebp, dword [ebp + 0x28]
cmp ebp, ebx
je 0x10040a25
nop
mov eax, dword [ebp]
mov edx, dword [eax + 0x18]
mov ecx, ebp
call edx
test eax, eax
jne 0x10040a33
mov ebp, dword [ebp + 0x28]
cmp ebp, ebx
jne 0x10040a10
xor eax, eax
cmp eax, ebx
mov ebp, eax
jne 0x10040790
jmp 0x10040a7e
mov eax, dword [ebp]
mov edx, dword [eax + 0x18]
mov ecx, ebp
call edx
jmp 0x10040a27
push 0x33a
call fcn.1003dfc0
mov esi, eax
call sub.Comn.dll_GetObjectLog
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push esi
push ebx
push str.__pItem__NULL_
push str._s_return_code:_0x_08X___s.
push eax
call edx
add esp, 0x18
jmp 0x10040a7e
lea ecx, [esp + 0x28]
mov dword [esp + 0x460], 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 edi, dword [esp + 0x14]
cmp edi, ebx
je 0x10040ab9
mov eax, dword [edi + 0x20]
add eax, 8
call fcn.10039d90
mov esi, dword [edi + 0x18]
cmp esi, ebx
je 0x10040aa9
mov ecx, esi
mov eax, dword [ecx]
mov edx, dword [eax]
mov esi, dword [esi + 0x28]
push 1
call edx
cmp esi, ebx
jne 0x10040a98
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 + 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.10045f6c
add esp, 0x450
ret 8