Function at 0x4060e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46cef5
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x495580]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x1c]
call fcn.00404d30
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x4c], vtable.OCArray_class_CKlidRegEntry_.0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x38], vtable.OCArray_class_CKlidRegEntry_.0
push esi
lea edx, [ebp - 0x4c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00405200
add esp, 4
or ebx, 0xffffffff
test al, al
je 0x4061d2
push esi
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x1c]
call fcn.00404fe0
add esp, 4
test al, al
je 0x4061d2
cmp dword [ebp - 0x44], 0
jle 0x406221
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x18]
call fcn.00405470
mov byte [ebp - 4], 3
push dword [eax]
push str.Layout_cannot_be_uninstalled_because_following_layout_s__are_still_loaded_in_the_Language_Bar:_r_n_r_n_s_r_n_r_nPlease_remove_these_layouts_from_the_Language_Bar_first
push esi
call fcn.00403530
mov edx, dword [ebp - 0x18]
add esp, 0xc
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4061d2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 0xd], 0
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], vtable.OCArray_class_CKlidRegEntry_.0
call fcn.00402e50
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], vtable.OCArray_class_CKlidRegEntry_.0
call fcn.00402e50
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40620c
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
cmp dword [ebp - 0x30], edi
jle 0x40624b
mov esi, dword [ebp - 0x34]
nop dword [eax + eax]
mov ecx, dword [esi]
call fcn.00414e50
test al, al
je 0x406313
inc edi
add esi, 0x1c
cmp edi, dword [ebp - 0x30]
jl 0x406230
mov esi, dword [ebp - 0x18]
push 0
push 0x4792ac
mov ecx, esi
mov byte [ebp - 0xd], 1
call fcn.00403e20
lea ecx, [ebp - 0x24]
call fcn.00404d30
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x20]
mov esi, dword [eax]
call fcn.0040de10
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x14]
mov edx, dword [eax]
push esi
call fcn.0040d7d0
add esp, 4
mov edx, dword [ebp - 0x20]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4062a2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov eax, ebx
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4062c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x14]
call fcn.0040d3e0
test eax, eax
je 0x4062f0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4062f0
push dword [ebp - 0x14]
push str.Couldnt_delete_file__s_r_nMake_sure_you_have_full_write_access_to_the_Windows_System_directory
push dword [ebp - 0x18]
call fcn.00403530
add esp, 0xc
mov byte [ebp - 0xd], 0
mov edx, dword [ebp - 0x14]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4061d6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4061d6
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.004133e0
mov byte [ebp - 4], 4
push dword [eax]
push str.Couldnt_uninstall_layout__s_r_nThis_is_commonly_caused_by_interference_from_anti_virus_software.
push dword [ebp - 0x18]
call fcn.00403530
mov edx, dword [ebp - 0x20]
jmp 0x4061b8