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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x40f014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 0x238], ecx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x244], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x248], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0x250], eax
mov eax, dword [ebp + 0x40]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp + 0x48]
mov dword [ebp - 0x254], eax
xor eax, eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x218], eax
call fcn.00403d45
test eax, eax
jne 0x405b3d
mov esi, 0x8007000e
jmp 0x4060f7
mov eax, dword [ebp - 0x238]
cmp dword [eax + 0x1c], 7
jge 0x405b53
mov esi, 0x8007139f
jmp 0x4060f7
test esi, esi
je 0x4060f2
test edi, edi
je 0x4060f2
mov eax, dword [eax + 0x24]
mov cx, word [esi]
cmp cx, word [eax]
jne 0x405b8c
test cx, cx
je 0x405b88
mov cx, word [esi + 2]
cmp cx, word [eax + 2]
jne 0x405b8c
add esi, 4
add eax, 4
test cx, cx
jne 0x405b66
xor eax, eax
jmp 0x405b91
sbb eax, eax
or eax, 1
test eax, eax
je 0x405b9f
mov esi, 0x80070005
jmp 0x4060f7
lea ecx, [ebp - 0x21c]
call fcn.0040a924
mov esi, eax
test esi, esi
jne 0x4060f7
lea eax, [ebp - 0x224]
push eax
push 0x2001f
xor eax, eax
push eax
push 0x4026c0
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x405bf8
lea eax, [ebp - 0x224]
push eax
push 0x4026c0
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4060e5
lea eax, [ebp - 0x210]
push eax
push 0x2001f
xor eax, eax
push eax
push edi
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x405c34
lea eax, [ebp - 0x210]
push eax
push edi
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4060e5
xor edi, edi
test ebx, ebx
je 0x405c6f
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x405c3f
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push ebx
push 1
push edi
push edi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4060e5
push 4
pop ebx
push ebx
lea eax, [ebp + 0x10]
push eax
push ebx
push edi
push 0x4027d4
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4060e5
push 0xc
push 0x402858
push 1
push edi
push 0x402818
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4060e5
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x405cdc
push ebx
push eax
push ebx
push edi
push 0x4027a4
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4060e5
lea eax, [ebp - 0x214]
mov ebx, 0x4028d4
push eax
push 0x2001f
push edi
push ebx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x405d1b
lea eax, [ebp - 0x214]
push eax
push ebx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4060e5
mov ebx, dword [ebp - 0x22c]
test ebx, ebx
je 0x405d5e
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x405d2a
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push ebx
push 1
push edi
push 0x4027b4
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4060e5
mov edi, dword [ebp + 0x1c]
test edi, edi
jne 0x405f3f
xor eax, eax
mov dword [ebp - 0x21c], 0x103
mov word [ebp - 6], ax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x22c]
push eax
xor eax, eax
push eax
push 0x4028b0
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405de4
mov ebx, dword [ebp - 0x234]
test ebx, ebx
je 0x405dc2
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x405de4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test ebx, ebx
jne 0x405de4
push 0x4028b0
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor eax, eax
mov dword [ebp - 0x21c], 0x103
mov word [ebp - 6], ax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x22c]
push eax
xor eax, eax
push eax
push 0x40282c
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, dword [ebp - 0x230]
test eax, eax
jne 0x405e5f
test ebx, ebx
je 0x405e3d
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x405e5f
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test ebx, ebx
jne 0x405e63
push 0x40282c
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test ebx, ebx
je 0x405ea2
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x228]
jne 0x405e68
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push ebx
push 1
xor eax, eax
push eax
push 0x40282c
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4060e5
mov ebx, dword [ebp - 0x234]
test ebx, ebx
je 0x405eeb
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x228]
jne 0x405eb1
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push ebx
push 1
xor eax, eax
push eax
push 0x4028b0
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4060e5
lea eax, [ebp - 0x218]
mov ebx, 0x402834
push eax
push 0x2001f
xor eax, eax
push eax
push ebx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x405f2c
lea eax, [ebp - 0x218]
push eax
push ebx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4060e5
push 0x40288c
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x405fa5
lea eax, [ebp - 0x218]
xor ebx, ebx
push eax
push 0x2001f
push ebx
push 0x40288c
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x405f83
lea eax, [ebp - 0x218]
push eax
push 0x40288c
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4060e5
push 4
lea eax, [ebp + 0x28]
push eax
push 4
push ebx
push 0x402904
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4060e5
mov ebx, dword [ebp - 0x240]
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x228]
jne 0x405fb0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push ebx
push 1
xor eax, eax
push eax
push eax
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4060e5
test edi, edi
jne 0x4060f7
mov ebx, dword [ebp - 0x244]
xor esi, esi
test ebx, ebx
je 0x406033
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x405fff
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push ebx
push 1
push esi
push 0x4028b8
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4060e5
mov ebx, dword [ebp - 0x248]
test ebx, ebx
je 0x406072
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x406042
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push ebx
push 1
push esi
push 0x4027c8
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4060e5
lea eax, [ebp - 0x220]
push eax
push 0x2001f
push esi
mov esi, 0x402804
push esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4060ad
lea eax, [ebp - 0x220]
push eax
push esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4060e5
push dword [ebp - 0x24c]
push dword [ebp - 0x250]
push dword [ebp + 0x38]
push dword [ebp - 0x220]
call fcn.004040c1
mov esi, eax
test esi, esi
js 0x4060f7
push dword [ebp - 0x254]
push dword [ebp + 0x44]
push dword [ebp - 0x220]
call fcn.00404038
mov esi, eax
jmp 0x4060f7
jle 0x4060e1
movzx esi, ax
or esi, 0x80070000
jmp 0x4060f7
mov esi, 0x80070057
cmp dword [ebp - 0x220], 0
je 0x40610c
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], 0
je 0x406121
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x218], 0
je 0x406136
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x210], 0
je 0x40614b
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x224], 0
je 0x406160
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x238]
call fcn.00403d59
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040de60
leave
ret 0x50