Function at 0x4cf260
Capabilities:
Get common file path

Disassembly:
push 0x134
mov eax, 0x595072
call fcn.00584fd1
mov eax, dword [ebp + 8]
mov edi, ecx
mov ecx, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x84], esi
push ecx
push eax
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 4], esi
call sym.txupd.exe_class_CTXStringW___cdecl_Util::FS::CombinePath_class_CTXStringW_const___class_CTXStringW_const__
add esp, 0xc
mov ecx, eax
mov byte [ebp - 4], 1
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
lea eax, [ebp - 0x9c]
push 0x5b7810
push eax
call sym.txupd.exe_class_CTXStringW___cdecl_FS::CombineQNC_wchar_t_const___wchar_t_const__
add esp, 0xc
lea ecx, [ebp - 0x84]
push ecx
push 0x1001
mov ecx, eax
mov byte [ebp - 4], 2
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call sym.txupd.exe_int___cdecl_FS::CreateFileW_wchar_t_const___unsigned_long_int__struct_ITXFile___
add esp, 0xc
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x9c]
inc bl
mov byte [ebp - 4], 1
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
test bl, bl
je 0x4cf31e
mov eax, dword [ebp - 0x84]
or dword [ebp - 4], 0xffffffff
cmp eax, esi
je 0x4cf317
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor al, al
jmp 0x4cf910
lea ecx, [ebp - 0xc0]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_void_
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
cmp dword [edi + 0x10], esi
mov byte [ebp - 4], 5
mov dword [ebp - 0xa8], esi
jbe 0x4cf736
push dword [ebp - 0xa8]
mov ecx, dword [ebp - 0x98]
call fcn.004cc99a
push eax
lea ecx, [ebp - 0xc0]
call fcn.004cb115
xor eax, eax
lea edi, [ebp - 0xd0]
push 0xffffffffffffffff
lea ecx, [ebp - 0xc0]
stosb byte es:[edi], al
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
push dword [ebp - 0xd0]
lea ecx, [ebp - 0xc4]
call sym.txupd.exe_public:_void___thiscall_CTXStringA::constructor_struct_tagGBK__wchar_t_const___int_
mov ecx, eax
mov byte [ebp - 4], 6
call sym.txupd.exe_public:_char_const____thiscall_CTXStringA::GetString_void_const
push eax
lea ecx, [ebp - 0x48]
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__]
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 8
call sym.txupd.exe_public:_void___thiscall_CTXStringA::destructor_void_
mov edi, dword [ebp - 0x34]
xor ebx, ebx
cmp edi, esi
jbe 0x4cf3e9
push ebx
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP80.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_int_]
cmp byte [eax], 0x5c
jne 0x4cf3e4
push ebx
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP80.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_int_]
mov byte [eax], 0x2f
inc ebx
cmp ebx, edi
jb 0x4cf3c8
cmp edi, esi
mov dword [ebp - 0xac], esi
jbe 0x4cf40f
lea eax, [edi - 1]
push eax
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP80.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_int_]
cmp byte [eax], 0x2f
jne 0x4cf40f
mov dword [ebp - 0xac], 0x10
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xbc]
mov edx, dword [ebp - 0xb8]
mov ebx, dword [ebp - 0xb4]
mov word [ebp - 0x108], ax
mov word [ebp - 0x136], ax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x11a], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x102], ecx
mov dword [ebp - 0x130], ecx
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x110], 0x4034b50
mov word [ebp - 0x10c], 0x14
mov word [ebp - 0x10a], si
mov word [ebp - 0x106], si
mov word [ebp - 0x104], 0x21
mov dword [ebp - 0xfe], edx
mov dword [ebp - 0xfa], ebx
mov word [ebp - 0xf6], di
mov word [ebp - 0xf4], si
mov dword [ebp - 0x140], 0x2014b50
mov word [ebp - 0x13c], 0x14
mov word [ebp - 0x13a], 0x14
mov word [ebp - 0x138], si
mov word [ebp - 0x134], si
mov word [ebp - 0x132], 0x21
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x128], ebx
mov word [ebp - 0x124], di
mov word [ebp - 0x122], si
mov word [ebp - 0x120], si
mov word [ebp - 0x11e], si
mov word [ebp - 0x11c], si
mov dword [ebp - 0x116], eax
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_void_
push 0x64
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 9
call sym.txupd.exe_public:_wchar_t____thiscall_CTXStringW::GetBuffer_int_
push eax
push 0x64
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x8c]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::ReleaseBuffer_int_
xor eax, eax
lea edi, [ebp - 0xd8]
push 0xffffffffffffffff
lea ecx, [ebp - 0x48]
stosb byte es:[edi], al
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push dword [ebp - 0xd8]
lea ecx, [ebp - 0xcc]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_struct_tagGBK__char_const___int_
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xc8]
push eax
mov byte [ebp - 4], 0xa
call sym.txupd.exe_class_CTXStringW___cdecl_operator_class_CTXStringW_const___class_CTXStringW_const__
push 0x5a9b80
push eax
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 0xb
call sym.txupd.exe_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__
add esp, 0x18
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 0xd
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xcc]
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
mov dword [ebp - 0x90], esi
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0xf
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
lea eax, [ebp - 0xd4]
push 0x5b7810
push eax
call sym.txupd.exe_class_CTXStringW___cdecl_FS::CombineQNC_wchar_t_const___wchar_t_const__
add esp, 0xc
lea ecx, [ebp - 0x90]
push ecx
push esi
mov ecx, eax
mov byte [ebp - 4], 0x10
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call sym.txupd.exe_int___cdecl_FS::CreateFileW_wchar_t_const___unsigned_long_int__struct_ITXFile___
add esp, 0xc
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0xd4]
inc bl
mov byte [ebp - 4], 0xf
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
test bl, bl
mov eax, dword [ebp - 0x90]
jne 0x4cf830
lea edx, [ebp - 0xa0]
push edx
mov dword [ebp - 0xa0], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x40]
mov dword [ebp - 0xa4], esi
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax]
lea edx, [ebp - 0xa4]
push edx
push eax
mov byte [ebp - 4], 0x11
call dword [ecx + 0x48]
mov eax, dword [ebp - 0xa4]
lea edx, [ebp - 0x9c]
push edx
mov dword [ebp - 0x9c], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
cmp dword [ebp - 0xa4], esi
je 0x4cf897
push 0x1e
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.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__::append_char_const___unsigned_int_]
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.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__::append_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push dword [ebp - 0xa0]
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x9c]
call dword [sym.imp.MSVCP80.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__::append_char_const___unsigned_int_]
push 0x2e
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x80]
call dword [sym.imp.MSVCP80.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__::append_char_const___unsigned_int_]
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x80]
call dword [sym.imp.MSVCP80.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__::append_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [ebp - 0x94]
call sym.txupd.exe_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const
push eax
call sym.txupd.exe_int___cdecl_FS::DeleteFileW_wchar_t_const__
mov eax, dword [ebp - 0xa4]
cmp eax, esi
pop ecx
mov byte [ebp - 4], 0xf
je 0x4cf6dc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x90]
cmp eax, esi
mov byte [ebp - 4], 0xe
je 0x4cf6f0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 9
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 8
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
inc dword [ebp - 0xa8]
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0xa8]
cmp ecx, dword [eax + 0x10]
jb 0x4cf356
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov eax, dword [ebp - 0x98]
movzx eax, word [eax + 0x10]
mov ecx, dword [ebp - 0x18]
mov word [ebp - 0xe8], ax
mov word [ebp - 0xe6], ax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0xe4], eax
lea eax, [eax + ecx + 0x16]
mov dword [ebp - 0xe0], ecx
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x12
mov dword [ebp - 0xf0], 0x6054b50
mov word [ebp - 0xec], si
mov word [ebp - 0xea], si
mov word [ebp - 0xdc], si
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::reserve_unsigned_int_]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVCP80.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__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x64]
call dword [0x5a3454]
push 0x16
lea eax, [ebp - 0xf0]
push eax
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVCP80.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__::append_char_const___unsigned_int_]
push dword [ebp - 0x50]
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
lea ecx, [ebp - 0x88]
call fcn.00472ab0
cmp dword [ebp - 0x88], esi
mov edi, dword [ebp - 0x84]
mov byte [ebp - 4], 0x13
jne 0x4cf7fd
lea eax, [ebp - 0x88]
push eax
call sym.txupd.exe_int___cdecl_Util::Data::CreateTXBuffer_struct_ITXBuffer___
pop ecx
push dword [ebp - 0x88]
mov eax, dword [edi]
push edi
call dword [eax + 0x50]
test eax, eax
jge 0x4cf89f
mov eax, dword [ebp - 0x88]
cmp eax, esi
mov byte [ebp - 4], 0x12
je 0x4cf82b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x88], esi
lea ecx, [ebp - 0x64]
jmp 0x4cf85f
cmp eax, esi
mov byte [ebp - 4], 0xe
je 0x4cf83e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 9
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 8
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
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, [ebp - 0x80]
mov byte [ebp - 4], 4
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, [ebp - 0x2c]
mov byte [ebp - 4], 3
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, [ebp - 0xc0]
mov byte [ebp - 4], 0
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
jmp 0x4cf303
mov eax, dword [ebp - 0x90]
jmp 0x4cf830
mov ecx, dword [ebp - 0x98]
call sym.txupd.exe_public:_void___thiscall_CZipFiles::Clear_void_
mov eax, dword [ebp - 0x88]
cmp eax, esi
mov byte [ebp - 4], 0x12
je 0x4cf8c4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x88], esi
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 5
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, [ebp - 0x80]
mov byte [ebp - 4], 4
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, [ebp - 0x2c]
mov byte [ebp - 4], 3
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, [ebp - 0xc0]
mov byte [ebp - 4], 0
call sym.txupd.exe_public:_void___thiscall_CTXStringW::destructor_void_
mov eax, dword [ebp - 0x84]
or dword [ebp - 4], 0xffffffff
cmp eax, esi
je 0x4cf90e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, 1
call fcn.00585054
ret 8