Function at 0x4277fb
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push 0xac
mov eax, 0x54d81c
call fcn.0051d3dc
push 7
xor ebx, ebx
xor eax, eax
pop ecx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x40], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ecx
mov word [ebp - 0x58], ax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 2
push eax
call fcn.0042159a
pop ecx
mov byte [ebp - 4], 3
cmp dword [ebp - 0x90], ebx
je 0x425ed2
push 0x55fcb8
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.004014b0
add esp, 0xc
lea ecx, [ebp - 0x40]
push eax
call fcn.00401e27
lea ecx, [ebp - 0xb8]
call fcn.004036e0
push str.old_360pic.exe
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.004014b0
add esp, 0xc
lea ecx, [ebp - 0x58]
push eax
call fcn.00401e27
lea ecx, [ebp - 0xb8]
call fcn.004036e0
push str.new_360pic.exe
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.004014b0
add esp, 0xc
lea ecx, [ebp - 0x28]
push eax
call fcn.00401e27
lea ecx, [ebp - 0xb8]
call fcn.004036e0
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x58]
push 8
pop edi
cmp dword [ebp - 0x44], edi
cmovae eax, dword [ebp - 0x58]
push eax
call esi
test eax, eax
je 0x425efd
cmp dword [ebp - 0x44], edi
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
test eax, eax
jne 0x425f35
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x5d6
push 0x562cf8
push str.__s__d___File_miss_new__s
call fcn.00402cc1
add esp, 0x10
jmp 0x4260db
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ecx
mov word [ebp - 0x88], ax
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ecx
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00437a74
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00437a74
add esp, 0x10
cmp dword [ebp - 0x78], 0
je 0x426095
cmp dword [ebp - 0x60], 0
je 0x426095
cmp dword [ebp - 0x74], edi
lea ecx, [ebp - 0x88]
lea eax, [ebp - 0x70]
cmovae ecx, dword [ebp - 0x88]
cmp dword [ebp - 0x5c], edi
push ecx
cmovae eax, dword [ebp - 0x70]
push eax
call fcn.00436f3f
pop ecx
pop ecx
test eax, eax
jle 0x426095
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0043bf37
pop ecx
test eax, eax
jne 0x425ff0
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x5e6
push 0x562cf8
push str.__s__d___Check_sign___s_Failed
call fcn.00402cc1
add esp, 0x10
jmp 0x4260c8
cmp dword [ebp - 0x44], edi
lea ecx, [ebp - 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x58]
cmp dword [ebp - 0x2c], edi
push 1
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call esi
test eax, eax
jne 0x42604c
cmp dword [ebp - 0x44], 8
lea edi, [ebp - 0x58]
lea esi, [ebp - 0x40]
cmovae edi, dword [ebp - 0x58]
cmp dword [ebp - 0x2c], 8
cmovae esi, dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
push 0x5ed
push 0x562cf8
push str.__s__d___Update_Failed_MoveFileEx__s_to__s__Error_Code:_ld
call fcn.00402cc1
add esp, 0x18
jmp 0x4260c8
cmp dword [ebp - 0x2c], edi
lea ecx, [ebp - 0x40]
push 1
cmovae ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], edi
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call esi
test eax, eax
jne 0x426090
cmp dword [ebp - 0x2c], 8
lea edi, [ebp - 0x40]
lea esi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 8
cmovae esi, dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
push 0x5f3
jmp 0x426038
xor ebx, ebx
inc ebx
jmp 0x4260c8
cmp dword [ebp - 0x5c], edi
lea ecx, [ebp - 0x70]
lea eax, [ebp - 0x88]
cmovae ecx, dword [ebp - 0x70]
cmp dword [ebp - 0x74], edi
push ecx
cmovae eax, dword [ebp - 0x88]
push eax
push 0x5e1
push 0x562cf8
push str.__s__d___CmpVer_old__s_:_new__s
call fcn.00402cc1
add esp, 0x14
lea ecx, [ebp - 0x70]
call fcn.004036e0
lea ecx, [ebp - 0x88]
call fcn.004036e0
lea ecx, [ebp - 0xa0]
call fcn.004036e0
lea ecx, [ebp - 0x28]
call fcn.004036e0
lea ecx, [ebp - 0x58]
call fcn.004036e0
lea ecx, [ebp - 0x40]
call fcn.004036e0
mov eax, ebx
call fcn.0051d386
ret
call fcn.00422de9
test eax, eax
jne 0x427805
ret
jmp 0x425ded