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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c880d
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x4fe37c]
xor eax, ebp
mov dword [ebp - 0x98], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x13c], ecx
mov ecx, dword [ebp + 8]
call fcn.00407070
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48124c
mov ecx, dword [ebp + 8]
call fcn.00407070
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x48124c
mov eax, dword [0x504b34]
and eax, 1
jne 0x480fe3
mov ecx, dword [0x504b34]
or ecx, 1
mov dword [0x504b34], ecx
mov dword [ebp - 4], 0
push 0x504b18
call fcn.0049a460
add esp, 4
push 0x4cbe80
call fcn.00444bd1
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push str.sogouipfilter.dll
mov ecx, dword [ebp + 8]
call fcn.0040d010
cmp eax, dword [0x4e7a84]
jne 0x481017
push 0
mov ecx, 0x504b18
call fcn.00407070
push eax
mov ecx, dword [ebp + 8]
call fcn.0040d010
cmp eax, dword [0x4e7a84]
je 0x48101e
mov al, 1
jmp 0x48124e
push 1
push 3
lea ecx, [ebp - 0x94]
call fcn.00421aa0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xb4]
call fcn.00406f20
mov byte [ebp - 4], 2
lea edx, [ebp - 0xb4]
push edx
call fcn.0049caa0
add esp, 4
lea eax, [ebp - 0x94]
test eax, eax
je 0x48106d
lea ecx, [ebp - 0x94]
add ecx, 8
mov dword [ebp - 0x140], ecx
jmp 0x481077
mov dword [ebp - 0x140], 0
lea edx, [ebp - 0xb4]
push edx
push 0x4d79b4
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x140]
push ecx
call fcn.00428c30
add esp, 8
push eax
call fcn.00424ff0
add esp, 8
push eax
call fcn.00428c30
add esp, 8
lea edx, [ebp - 0xd4]
push edx
lea ecx, [ebp - 0x94]
call fcn.00421bd0
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp - 0x144]
call fcn.00407070
push eax
mov ecx, dword [ebp + 8]
call fcn.00407070
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0xb5], al
lea ecx, [ebp - 0xd4]
call fcn.00406fd0
movzx eax, byte [ebp - 0xb5]
test eax, eax
je 0x4811a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xfc], esp
mov edx, dword [ebp + 8]
push edx
call fcn.00406f90
mov dword [ebp - 0x148], eax
lea ecx, [ebp - 0xf8]
call fcn.004919e0
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x150], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x150]
push ecx
push 3
mov edx, dword [ebp - 0x13c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x13c]
mov edx, dword [eax + 0x2ec]
call edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xf8]
call fcn.00491300
mov byte [ebp - 0xfd], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb4]
call fcn.00406fd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004213c0
mov al, byte [ebp - 0xfd]
jmp 0x48124e
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x94]
call fcn.00421bd0
mov dword [ebp - 0x154], eax
mov ecx, dword [ebp - 0x154]
call fcn.00407070
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0xfe], al
lea ecx, [ebp - 0x11c]
call fcn.00406fd0
movzx ecx, byte [ebp - 0xfe]
test ecx, ecx
je 0x48122b
lea edx, [ebp - 0x138]
push edx
lea ecx, [ebp - 0x94]
call fcn.00421bd0
mov dword [ebp - 0x158], eax
push 4
push 0
mov ecx, dword [ebp - 0x158]
call fcn.00407070
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x138]
call fcn.00406fd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb4]
call fcn.00406fd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004213c0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x98]
xor ecx, ebp
call fcn.004443e3
mov esp, ebp
pop ebp
ret 4