Function at 0x10018470
Capabilities:
Get common file path
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10146063
mov eax, dword fs:[0]
push eax
sub esp, 0x658
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x650], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10177024]
xor eax, esp
push eax
lea eax, [esp + 0x66c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x67c]
mov dword [esp + 0x18], eax
call sub.Comn.dll_GetObjectSys
mov byte [0x101c1f19], 0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x1c]
mov bl, 1
call eax
test eax, eax
je 0x100184da
xor bl, bl
mov byte [0x101c1f19], 1
xor ebp, ebp
push 0x3fe
lea ecx, [esp + 0x26a]
push ebp
push ecx
mov word [esp + 0x270], bp
call sub.MSVCR80.dll_memset
add esp, 0xc
test bl, bl
je 0x100185c3
mov ecx, dword [0x10152b94]
mov eax, dword [0x10152b90]
mov edx, dword [0x10152b8c]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x264]
push ecx
push ebp
mov dword [esp + 0x40], eax
mov ax, word [0x10152b9c]
push ebp
mov dword [esp + 0x40], edx
mov edx, dword [0x10152b98]
mov word [esp + 0x50], ax
xor eax, eax
push 0x23
push ebp
mov dword [esp + 0x54], edx
mov dword [esp + 0x5a], eax
mov dword [esp + 0x5e], eax
mov dword [esp + 0x62], eax
mov dword [esp + 0x66], eax
mov dword [esp + 0x6a], eax
mov word [esp + 0x6e], ax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [esp + 0x34]
mov edx, eax
jmp 0x10018570
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10018570
lea edi, [esp + 0x264]
sub eax, edx
add edi, 0xfffffffe
jmp 0x10018590
mov cx, word [edi + 2]
add edi, 2
cmp cx, bp
jne 0x10018590
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea edx, [esp + 0x264]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
push edx
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
jmp 0x1001881c
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x674], ebp
call fcn.100032e0
mov esi, eax
mov dword [esp + 0x2c], esi
call fcn.100022a0
xor edi, edi
test eax, eax
je 0x100186ea
cmp esi, ebp
jle 0x100187e2
xor ebx, ebx
mov edi, edi
mov esi, dword [esp + 0x20]
cmp esi, ebp
je 0x10018625
mov ecx, dword [esp + 0x24]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x1001862f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x20]
lea eax, [ebx + esi]
push eax
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
push 0x206
lea eax, [esp + 0x62]
push ebp
mov byte [esp + 0x67c], 1
push eax
mov word [esp + 0x68], bp
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0x44]
add esp, 0xc
cmp dword [esp + 0x4c], 8
jae 0x1001866c
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x60]
push 0x10154868
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
sub esp, 0x10
lea edx, [esp + 0x78]
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
call fcn.100033f0
add esp, 0x1c
cmp eax, ebp
jne 0x100186c4
lea ecx, [esp + 0x34]
mov byte [esp + 0x674], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
add edi, 1
add ebx, 0x1c
cmp edi, dword [esp + 0x2c]
jl 0x10018600
jmp 0x100187e2
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
lea ecx, [esp + 0x34]
mov byte [esp + 0x674], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
jmp 0x100187e2
cmp esi, ebp
jle 0x100187e2
mov ebp, dword [sym.imp.USER32.dll_wsprintfW]
xor ebx, ebx
lea ebx, [ebx]
mov esi, dword [esp + 0x20]
test esi, esi
je 0x10018725
mov ecx, dword [esp + 0x24]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x1001872f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x20]
lea eax, [ebx + esi]
push eax
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
push 0x206
lea ecx, [esp + 0x62]
push 0
mov byte [esp + 0x67c], 2
push ecx
mov word [esp + 0x68], 0
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0x44]
add esp, 0xc
cmp dword [esp + 0x4c], 8
jae 0x1001876f
lea eax, [esp + 0x38]
push eax
lea edx, [esp + 0x60]
push str._sDocuments_and_SettingsAll_UsersApplication_DataAomeiBR
push edx
call ebp
sub esp, 0x10
lea eax, [esp + 0x78]
mov ecx, esp
mov dword [esp + 0x4c], esp
push eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
call fcn.100033f0
add esp, 0x1c
test eax, eax
jne 0x100187bf
lea ecx, [esp + 0x34]
mov byte [esp + 0x674], al
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
add edi, 1
add ebx, 0x1c
cmp edi, dword [esp + 0x2c]
jl 0x10018700
jmp 0x100187e0
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x1c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
lea ecx, [esp + 0x34]
mov byte [esp + 0x674], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor ebp, ebp
mov dword [esp + 0x674], 0xffffffff
mov esi, dword [esp + 0x20]
cmp esi, ebp
je 0x1001881c
mov edi, dword [esp + 0x24]
cmp esi, edi
je 0x10018813
lea ecx, [ecx]
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
add esi, 0x1c
cmp esi, edi
jne 0x10018800
mov esi, dword [esp + 0x20]
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x66c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x650]
xor ecx, esp
call fcn.10130e50
add esp, 0x664
ret 4