Function at 0x4092a0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b28f
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x4424f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x33728]
add eax, 0x33438
push eax
lea ecx, [ebp - 0x18]
call dword [0x42f908]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::GetLength]
sub eax, 4
push eax
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Left]
lea edx, [ebp - 0x2c]
push edx
mov byte [ebp - 4], 1
call fcn.00420420
lea ecx, [ebp - 0x14]
push ecx
push eax
lea edx, [ebp - 0x28]
push edx
mov byte [ebp - 4], 2
call fcn.00408df0
push str..new
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 3
call fcn.00401010
add esp, 0x1c
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [esi + 0xb8]
call fcn.00407b40
push 0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 7
call fcn.00402f80
push 1
push ecx
lea edx, [ebp - 0x24]
mov ecx, esp
mov dword [ebp - 0x34], esp
mov bl, 8
push edx
mov byte [ebp - 4], bl
call dword [0x42f918]
push ecx
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
mov byte [ebp - 4], 9
call dword [0x42f918]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], bl
call fcn.00402ec0
cmp eax, 3
je 0x4093ea
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 7
call fcn.00402dd0
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00420420
add esp, 4
cmp dword [esi + 0x33760], 0
mov byte [ebp - 4], 0xa
je 0x40945d
push str.updaterUpdated.tag
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00401010
add esp, 0xc
push 0x1000
mov ecx, eax
mov byte [ebp - 4], 0xb
call dword [sym.imp.mfc100u.dll_]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040eaf4
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xd
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x48]
call sub.mfc100u.dll_CFile::Close
lea ecx, [ebp - 0x48]
mov dword [esi + 0x33764], 1
mov byte [ebp - 4], 0xa
call sub.mfc100u.dll_CFile::CFile
lea ecx, [ebp - 0x7c]
call fcn.0040e812
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 0xe
call fcn.00408df0
push str..old
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x2c]
push edx
mov byte [ebp - 4], 0xf
call fcn.00401010
add esp, 0x18
push 0
mov ecx, eax
mov byte [ebp - 4], 0x10
call dword [sym.imp.mfc100u.dll_]
push eax
lea ecx, [ebp - 0x7c]
call sub.mfc100u.dll_CFileFind::FindFile
lea ecx, [ebp - 0x2c]
mov edi, eax
mov byte [ebp - 4], 0xf
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
test edi, edi
je 0x4094ea
push str..old
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00401010
add esp, 0xc
mov ecx, eax
call dword [sym.imp.mfc100u.dll_]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
push str..new
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00401010
add esp, 0xc
push 0
mov ecx, eax
mov byte [ebp - 4], 0x11
call dword [sym.imp.mfc100u.dll_]
push eax
lea ecx, [ebp - 0x7c]
call sub.mfc100u.dll_CFileFind::FindFile
lea ecx, [ebp - 0x2c]
mov edi, eax
mov byte [ebp - 4], 0xf
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
test edi, edi
je 0x4096b2
push str..old
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.00401010
mov edi, eax
push str..exe
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov byte [ebp - 4], 0x12
call fcn.00401010
add esp, 0x18
mov ecx, edi
mov ebx, eax
call dword [sym.imp.mfc100u.dll_]
push eax
mov ecx, ebx
call dword [sym.imp.mfc100u.dll_]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
push eax
call edi
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xf
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
push str..exe
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x34]
push eax
call fcn.00401010
mov ebx, eax
push str..new
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x2c]
push edx
mov byte [ebp - 4], 0x13
call fcn.00401010
add esp, 0x18
mov ecx, ebx
mov dword [ebp - 0x30], eax
call dword [sym.imp.mfc100u.dll_]
mov ecx, dword [ebp - 0x30]
push eax
call dword [sym.imp.mfc100u.dll_]
push eax
call edi
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xf
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
push str..exe
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00401010
add esp, 0xc
mov edx, dword [esi + 0x33748]
push edx
mov byte [ebp - 4], 0x14
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
lea eax, [ebp - 0x28]
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
mov dword [esi + 0x33748], 0
call dword [0x42f918]
call fcn.00408d90
add esp, 4
test eax, eax
jne 0x4096a1
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0xa
call sub.mfc100u.dll_CFileFind::CFileFind
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 7
call fcn.00402dd0
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x64
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0xa
call sub.mfc100u.dll_CFileFind::CFileFind
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 7
call fcn.00402dd0
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret