Function at 0x4089b0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42ad7c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
mov al, byte [esp + 7]
push ebp
push esi
push edi
mov edi, ecx
push 0
mov dword [esp + 0x18], edi
lea esi, [edi + 4]
mov ecx, esi
mov byte [esi], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov cl, byte [esp + 0x13]
lea ebx, [edi + 0x14]
push 0
mov dword [esp + 0x124], 0
mov byte [ebx], cl
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [edi + 0x24]
mov byte [esp + 0x120], 1
call fcn.00408950
mov ecx, dword [esp + 0x128]
mov dword [edi], 0x42d9c0
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [esp + 0x120], 2
mov eax, dword [edx]
push eax
push 0
push ecx
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov edx, dword [esp + 0x12c]
push 0x4373e8
push edx
call dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 8
test al, al
je 0x408aa4
mov edi, 0x434c10
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
mov ecx, ebx
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x408be8
mov edi, dword [ebx + 4]
mov ecx, ebp
mov eax, ecx
mov esi, 0x434c10
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], ebp
mov byte [ecx + ebp], 0
jmp 0x408be8
lea edx, [esp + 0x18]
push 0xff
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
mov ecx, ebx
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x408af4
mov edi, dword [ebx + 4]
mov ecx, ebp
mov eax, ecx
lea esi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], ebp
mov byte [ecx + ebp], 0
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov eax, dword [edx]
mov edx, dword [ebx + 8]
sub eax, edx
cmp eax, 1
ja 0x408b0c
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov esi, dword [ebx + 8]
push 0
inc esi
mov ecx, ebx
push esi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x408b34
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 4]
add ecx, eax
mov byte [ecx], 0x5c
mov edx, dword [ebx + 4]
mov dword [ebx + 8], esi
mov byte [edx + esi], 0
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [esp + 0x12c]
mov eax, dword [eax]
mov ecx, dword [ecx + 8]
mov edi, eax
cmp ecx, edi
jae 0x408b4d
mov edi, ecx
sub eax, dword [ebx + 8]
cmp eax, edi
ja 0x408b5a
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test edi, edi
jbe 0x408ba8
mov ebp, dword [ebx + 8]
push 0
add ebp, edi
mov ecx, ebx
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x408ba8
mov edx, dword [esp + 0x12c]
mov esi, dword [edx + 4]
test esi, esi
jne 0x408b86
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov eax, dword [ebx + 8]
mov ecx, edi
mov edi, dword [ebx + 4]
add edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], ebp
mov byte [ecx + ebp], 0
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov eax, dword [edx]
mov edx, dword [ebx + 8]
sub eax, edx
cmp eax, 1
ja 0x408bc0
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov esi, dword [ebx + 8]
push 0
inc esi
mov ecx, ebx
push esi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x408be8
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 8]
add ecx, eax
mov byte [ecx], 0x5c
mov edx, dword [ebx + 4]
mov dword [ebx + 8], esi
mov byte [edx + esi], 0
mov ecx, dword [esp + 0x118]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x114
ret 8