Function at 0x4163d0
Capabilities:
Delete file
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x545cd0
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x5ec938]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2a0]
push ecx
push 0x2001f
xor esi, esi
push esi
push str.SYSTEMCurrentControlSetControlSession_Manager
push 0x80000002
mov dword [ebp - 0x2ac], eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x2a0], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
je 0x4168ff
mov eax, dword [ebp - 0x2a0]
lea edx, [ebp - 0x294]
push edx
push esi
push esi
push esi
push str.PendingFileRenameOperations
mov dword [ebp - 0x294], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
call esi
mov eax, dword [ebp - 0x294]
shr eax, 1
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042c8a4
mov ebx, eax
mov eax, dword [ebp - 0x294]
shr eax, 1
xor ecx, ecx
inc eax
add esp, 4
mov edx, 2
mul edx
seto cl
mov dword [ebp - 0x2b0], ebx
neg ecx
or ecx, eax
push ecx
call fcn.0042c8a4
mov ecx, dword [ebp - 0x2a0]
add esp, 4
mov edi, eax
lea eax, [ebp - 0x294]
push eax
push ebx
push 0
push 0
push str.PendingFileRenameOperations
push ecx
mov dword [ebp - 0x2a8], edi
call esi
test eax, eax
je 0x4164fe
test ebx, ebx
je 0x4164dd
push ebx
call fcn.0042c8af
add esp, 4
test edi, edi
je 0x4164ea
push edi
call fcn.0042c8af
add esp, 4
mov edx, dword [ebp - 0x2a0]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x416904
mov eax, dword [ebp - 0x294]
mov ecx, eax
xor edi, edi
shr ecx, 1
inc ecx
mov dword [ebp - 0x2a4], ecx
mov ecx, dword [ebp - 0x2a8]
mov dword [ebp - 0x290], edi
mov dword [ebp - 0x29c], edi
mov dword [ebp - 0x298], ecx
mov esi, ebx
jmp 0x416533
mov edi, dword [ebp - 0x290]
cmp edi, eax
jae 0x4168b9
mov edx, dword [ebp - 0x2ac]
push edx
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x41673b
xor eax, eax
mov word [ebp - 0x270], ax
mov eax, esi
mov dword [ebp - 0x2b4], esi
mov dword [ebp - 0x25c], 7
mov dword [ebp - 0x260], 0
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416580
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x270]
call fcn.0040a700
cmp dword [ebp - 0x25c], 8
mov ebx, dword [ebp - 0x260]
jb 0x4165ba
mov ecx, dword [ebp - 0x270]
push ecx
call fcn.0042c8af
add esp, 4
mov eax, dword [ebp - 0x294]
xor edx, edx
mov dword [ebp - 0x25c], 7
mov dword [ebp - 0x260], 0
mov word [ebp - 0x270], dx
lea esi, [esi + ebx*2]
lea edi, [edi + ebx*2]
mov dword [ebp - 0x290], edi
cmp word [esi], dx
jne 0x4165fa
cmp edi, eax
jae 0x4165fa
add esi, 2
add edi, 2
jmp 0x4165e3
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x21a]
push ecx
mov word [ebp - 0x21c], ax
call fcn.0052c850
push 6
push str.____
call fcn.0052ceda
push eax
push esi
lea edx, [ebp - 0x21c]
push 0x104
push edx
call fcn.0052d9fb
add esp, 0x24
push str.____
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x416730
mov ecx, dword [ebp - 0x2b4]
push 0x3a
push ecx
call fcn.0052dac8
add esp, 8
sub eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor edx, edx
mov eax, esi
mov word [ebp - 0x28c], dx
mov dword [ebp - 0x278], 7
mov dword [ebp - 0x27c], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416695
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x28c]
call fcn.0040a700
cmp dword [ebp - 0x278], 8
mov ebx, dword [ebp - 0x27c]
jb 0x4166cf
mov eax, dword [ebp - 0x28c]
push eax
call fcn.0042c8af
add esp, 4
mov eax, dword [ebp - 0x294]
xor ecx, ecx
mov dword [ebp - 0x278], 7
mov dword [ebp - 0x27c], 0
mov word [ebp - 0x28c], cx
lea esi, [esi + ebx*2]
lea edi, [edi + ebx*2]
mov dword [ebp - 0x290], edi
cmp word [esi], cx
jne 0x41670f
cmp edi, eax
jae 0x416717
add esi, 2
add edi, 2
jmp 0x4166f8
cmp edi, eax
jb 0x41653b
mov eax, dword [ebp - 0x298]
xor edx, edx
add dword [ebp - 0x29c], 2
mov word [eax], dx
lea esp, [esp]
mov eax, dword [ebp - 0x294]
jmp 0x416533
mov ecx, dword [ebp - 0x2a4]
mov edx, dword [ebp - 0x298]
push esi
push ecx
push edx
call fcn.0052cd4a
mov edi, dword [ebp - 0x298]
add esp, 0xc
xor eax, eax
mov word [ebp - 0x254], ax
mov ebx, 7
mov eax, edi
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x244], 0
lea edx, [eax + 2]
jmp 0x416780
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416780
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x254]
call fcn.0040a700
cmp dword [ebp - 0x240], 8
mov edi, dword [ebp - 0x244]
jb 0x4167ba
mov ecx, dword [ebp - 0x254]
push ecx
call fcn.0042c8af
add esp, 4
sub dword [ebp - 0x2a4], edi
mov dword [ebp - 0x240], ebx
xor edx, edx
lea ebx, [edi + edi]
add dword [ebp - 0x298], ebx
xor eax, eax
mov word [ebp - 0x238], ax
mov eax, esi
mov word [ebp - 0x254], dx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x224], 7
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416800
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x238]
call fcn.0040a700
cmp dword [ebp - 0x224], 8
mov edi, dword [ebp - 0x228]
jb 0x41683a
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.0042c8af
add esp, 4
add dword [ebp - 0x29c], ebx
xor edx, edx
lea eax, [edi + edi]
add dword [ebp - 0x290], eax
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], dx
lea esi, [esi + edi*2]
lea esp, [esp]
mov eax, dword [ebp - 0x294]
cmp dword [ebp - 0x290], eax
jae 0x41652d
cmp word [esi], dx
jne 0x41652d
mov eax, dword [ebp - 0x298]
xor ecx, ecx
mov word [eax], cx
mov ecx, 2
add dword [ebp - 0x29c], ecx
add dword [ebp - 0x290], ecx
add eax, ecx
add esi, ecx
dec dword [ebp - 0x2a4]
mov dword [ebp - 0x298], eax
jmp 0x416870
mov edx, dword [ebp - 0x29c]
mov esi, dword [ebp - 0x2a8]
mov eax, dword [ebp - 0x2a0]
push edx
push esi
push 7
push 0
push str.PendingFileRenameOperations
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x2a0]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x2b0]
push edx
call fcn.0042c8af
push esi
call fcn.0042c8af
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0052c2ec
mov esp, ebp
pop ebp
ret 4