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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100ece45
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x1012007c]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov eax, dword [0x1012007c]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
lea esi, [esp + 0x1c]
mov ebx, ecx
call fcn.100017e0
push eax
lea eax, [esp + 0x1c]
xor esi, esi
push eax
mov edi, str.UpdateGMInstall.exe
mov dword [esp + 0xb0], esi
call fcn.10008ed0
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 0x1000715c
lea eax, [esi - 0x31]
jmp 0x100073a6
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.10011130
test eax, eax
je 0x100071f6
mov byte [esp + 0xa8], 2
mov eax, dword [esp + 0x40]
cmp eax, esi
je 0x100071b8
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 0x100071e2
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 0x100073a6
push 0x100f6bb4
lea ecx, [esp + 0x64]
lea edi, [esp + 0x44]
call fcn.100111e0
mov byte [esp + 0xa8], 4
cmp dword [esp + 0x74], esi
jne 0x1000723f
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10007228
call fcn.10004870
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 0x1000719b
lea edx, [esp + 0x14]
push edx
call fcn.10001890
add esp, 4
mov byte [esp + 0xa8], 5
mov eax, dword [eax]
lea ecx, [esp + 0x20]
push ecx
mov edi, eax
call fcn.10011130
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 0x100f6bb4
lea ecx, [esp + 0x80]
lea edi, [esp + 0x24]
call fcn.100111e0
mov byte [esp + 0xa8], 6
mov ecx, dword [esp + 0x80]
mov eax, 8
cmp dword [esp + 0x94], eax
jae 0x100072ad
lea ecx, [esp + 0x80]
cmp dword [esp + 0x78], eax
mov eax, dword [esp + 0x64]
jae 0x100072bb
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 0x10007329
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100072d9
call fcn.10004870
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.10011000
lea esi, [esp + 0x20]
mov dword [esp + 0xa8], 0xffffffff
call fcn.10011000
mov eax, 0xffffffce
jmp 0x100073a6
lea edx, [esp + 0x14]
push edx
call fcn.10014260
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 0x10007355
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 0x100072d9
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.10011000
lea esi, [esp + 0x20]
mov dword [esp + 0xa8], 0xffffffff
call fcn.10011000
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.100e7da2
mov esp, ebp
pop ebp
ret