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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c59d5
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x4f06b4]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push esi
push edi
mov eax, dword [0x4f06b4]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
cmp dword [esi + 0x14], 8
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
jb 0x494b7f
mov eax, dword [esi]
jmp 0x494b81
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x494dd6
cmp dword [esi + 0x14], 8
jb 0x494b9a
mov eax, dword [esi]
jmp 0x494b9c
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x494dd6
test byte [0x4f5aa4], 1
mov ebx, 0x4f5a88
jne 0x494be1
or dword [0x4f5aa4], 1
and dword [esp + 0x130], eax
mov edi, ebx
call fcn.0047e6b7
push 0x4c7030
call fcn.004a6981
or dword [esp + 0x134], 0xffffffff
pop ecx
mov edi, str.sogouipfilter.dll
push edi
call fcn.004a5eb4
pop ecx
push eax
push edi
xor eax, eax
mov ecx, esi
call fcn.0040f26e
cmp eax, 0xffffffff
jne 0x494dd6
cmp dword [0x4f5a9c], 8
jb 0x494c10
mov ebx, dword [0x4f5a88]
push ebx
call fcn.004a5eb4
pop ecx
push eax
push ebx
xor eax, eax
mov ecx, esi
call fcn.0040f26e
cmp eax, 0xffffffff
jne 0x494dd6
lea eax, [esp + 0x1c]
push eax
call fcn.00407c19
mov dword [esp + 0x130], 1
and dword [esp + 0xd4], 0
xor eax, eax
mov dword [esp + 0xd8], 7
mov word [esp + 0xc4], ax
lea ecx, [esp + 0xc4]
mov byte [esp + 0x130], 2
call fcn.004810a4
push 0x4cdb44
push ecx
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call fcn.00408999
pop ecx
pop ecx
push eax
call fcn.00408b2f
push eax
lea ecx, [esp + 0xd0]
call fcn.00408999
add esp, 0xc
lea eax, [esp + 0xe0]
push eax
lea eax, [esp + 0x20]
call fcn.00407cf0
cmp dword [eax + 0x14], 8
jb 0x494cb4
mov eax, dword [eax]
cmp dword [esi + 0x14], 8
jb 0x494cbc
mov esi, dword [esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ebx, eax
neg ebx
sbb bl, bl
push 1
xor edi, edi
lea esi, [esp + 0xe4]
call fcn.0040a3ed
inc bl
je 0x494d47
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x38], esp
push dword [esp + 0x34]
call fcn.00409de0
lea ebx, [esp + 0x11c]
call fcn.00488fd4
mov ecx, dword [esp + 0x10]
push eax
mov byte [esp + 0x134], 3
mov edx, dword [ecx]
push 3
call dword [edx + 0x24c]
mov ecx, ebx
call fcn.0048904a
push 1
lea esi, [esp + 0xc8]
call fcn.0040a3ed
or dword [esp + 0x130], 0xffffffff
lea eax, [esp + 0x1c]
call fcn.004071a2
xor al, al
jmp 0x494dd8
lea eax, [esp + 0xe0]
push eax
lea eax, [esp + 0x20]
call fcn.00407cf0
cmp dword [eax + 0x14], 8
jb 0x494d60
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
neg ebx
sbb bl, bl
push 1
xor edi, edi
lea esi, [esp + 0xe4]
call fcn.0040a3ed
inc bl
je 0x494db5
lea eax, [esp + 0xe0]
push eax
lea eax, [esp + 0x20]
call fcn.00407cf0
cmp dword [eax + 0x14], 8
jb 0x494d9a
mov eax, dword [eax]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 1
xor edi, edi
lea esi, [esp + 0xe4]
call fcn.0040a3ed
push 1
xor edi, edi
lea esi, [esp + 0xc8]
call fcn.0040a3ed
or dword [esp + 0x130], 0xffffffff
lea eax, [esp + 0x1c]
call fcn.004071a2
mov al, 1
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.004a545d
mov esp, ebp
pop ebp
ret 4