Function at 0x402760
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
mov ecx, dword [esp + 8]
push 0x405fcd
push eax
mov dword fs:[0], esp
sub esp, 0x268
push ebx
push ebp
mov ebp, dword [ecx + 4]
push esi
mov esi, dword [ecx + 8]
xor ebx, ebx
push edi
cmp esi, esi
mov edi, esi
je 0x4027b4
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 [eax]
push ecx
push ebx
push edi
mov ecx, ebp
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_]
add edi, 0x10
add ebp, 0x10
cmp edi, esi
jne 0x402791
mov ecx, dword [esp + 0x288]
mov eax, dword [ecx + 8]
push eax
push ebp
call fcn.00402a20
mov edx, dword [esp + 0x288]
lea eax, [esp + 0x70]
push eax
push ebx
push ebx
push 0x1a
push ebx
mov dword [edx + 8], ebp
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x402999
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x70]
lea edx, [esp + 0x174]
push ecx
push str._sSkype.
push edx
mov dword [esp + 0x28c], ebx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x174]
lea ecx, [esp + 0x30]
push ebx
push eax
call sub.MFC42.DLL_CFileFind::FindFile
cmp eax, ebx
je 0x40297c
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x402972
mov edx, dword [esp + 0x30]
push 0x10
lea ecx, [esp + 0x34]
call dword [edx + 0x40]
cmp eax, ebx
je 0x402972
lea eax, [esp + 0x14]
lea ecx, [esp + 0x30]
push eax
call sub.MFC42.DLL_CFileFind::GetFilePath
push str.config.xml
lea ecx, [esp + 0x18]
mov byte [esp + 0x284], 1
call fcn.00405836
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x4c]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__stat]
add esp, 8
test eax, eax
jne 0x402962
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x30]
push eax
call sub.MFC42.DLL_CFileFind::GetFileName
mov cl, byte [esp + 0x13]
mov esi, dword [eax]
mov byte [esp + 0x18], cl
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x284], 2
mov ebp, ecx
lea ecx, [esp + 0x1c]
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 0x402901
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov edx, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov ecx, dword [esp + 0x288]
lea edx, [esp + 0x18]
push edx
push 1
mov eax, dword [ecx + 8]
mov byte [esp + 0x288], 3
push eax
call fcn.00402a70
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x402945
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x40293c
cmp al, 0xff
je 0x40293c
dec al
mov byte [ecx], al
jmp 0x402945
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x280], 1
call fcn.00405830
lea ecx, [esp + 0x14]
mov byte [esp + 0x280], bl
call fcn.00405830
cmp dword [esp + 0x28], ebx
jne 0x402825
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [esp + 0x30]
mov dword [esp + 0x280], 0xffffffff
call fcn.0040593e
mov ecx, dword [esp + 0x278]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x274
ret 4