Function at 0x10006680
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100c4535
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x100ef07c]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov eax, dword [0x100ef07c]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
lea esi, [esp + 0x1c]
mov ebx, ecx
call fcn.10001630
push eax
lea eax, [esp + 0x1c]
xor esi, esi
push eax
mov edi, str.UpdateGMInstall.exe
mov dword [esp + 0xb0], esi
call fcn.10008380
add esp, 8
push eax
mov ecx, ebx
mov byte [esp + 0xac], 1
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x1c]
mov dword [esp + 0xa8], 0xffffffff
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000672c
lea eax, [esi - 0x31]
jmp 0x10006976
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], esi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov dword [esp + 0xa8], 2
lea ecx, [esp + 0x44]
mov dword [esp + 0x40], esi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ecx, [esp + 0x40]
mov byte [esp + 0xa8], 3
mov edi, dword [ebx]
push ecx
call fcn.1000f180
test eax, eax
je 0x100067c6
mov byte [esp + 0xa8], 2
mov eax, dword [esp + 0x40]
cmp eax, esi
je 0x10006788
push eax
call sub.mfc90u.dll_delete__
add esp, 4
mov dword [esp + 0x40], esi
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov dword [esp + 0xa8], 0xffffffff
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x100067b2
push eax
call sub.mfc90u.dll_delete__
add esp, 4
mov dword [esp + 0x20], esi
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, 0xffffffce
jmp 0x10006976
push 0x100cbe84
lea ecx, [esp + 0x64]
lea edi, [esp + 0x44]
call fcn.1000f230
mov byte [esp + 0xa8], 4
cmp dword [esp + 0x74], esi
jne 0x1000680f
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100067f8
call fcn.10004480
lea ecx, [esp + 0x60]
mov byte [esp + 0xa8], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
jmp 0x1000676b
lea edx, [esp + 0x14]
push edx
call fcn.100016e0
add esp, 4
mov byte [esp + 0xa8], 5
mov eax, dword [eax]
lea ecx, [esp + 0x20]
push ecx
mov edi, eax
call fcn.1000f180
lea ecx, [esp + 0x14]
mov byte [esp + 0xa8], 4
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push 0x100cbe84
lea ecx, [esp + 0x80]
lea edi, [esp + 0x24]
call fcn.1000f230
mov byte [esp + 0xa8], 6
mov ecx, dword [esp + 0x80]
mov eax, 8
cmp dword [esp + 0x94], eax
jae 0x1000687d
lea ecx, [esp + 0x80]
cmp dword [esp + 0x78], eax
mov eax, dword [esp + 0x64]
jae 0x1000688b
lea eax, [esp + 0x64]
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpLogicalW]
mov ebx, dword [ebx]
push ebx
test eax, eax
jg 0x100068f9
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100068a9
call fcn.10004480
lea ecx, [esp + 0x7c]
mov byte [esp + 0xa8], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x60]
mov byte [esp + 0xa8], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea esi, [esp + 0x40]
mov byte [esp + 0xa8], 2
call fcn.1000f050
lea esi, [esp + 0x20]
mov dword [esp + 0xa8], 0xffffffff
call fcn.1000f050
mov eax, 0xffffffce
jmp 0x10006976
lea edx, [esp + 0x14]
push edx
call fcn.10010e90
add esp, 8
push str.Glarysoft_LTD
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CompareNoCase]
lea ecx, [esp + 0x10]
test eax, eax
je 0x10006925
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
jmp 0x100068a9
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x7c]
mov byte [esp + 0xa8], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x60]
mov byte [esp + 0xa8], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea esi, [esp + 0x40]
mov byte [esp + 0xa8], 2
call fcn.1000f050
lea esi, [esp + 0x20]
mov dword [esp + 0xa8], 0xffffffff
call fcn.1000f050
xor eax, eax
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.100c09bd
mov esp, ebp
pop ebp
ret