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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57410f
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x5f969c]
xor eax, ebp
mov dword [ebp - 0x48], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x270], ecx
mov dword [ebp - 0x20], 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x270]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
lea ecx, [ebp - 0x3c]
call fcn.004381b0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x40], 0
jmp 0x4ccfc7
mov eax, dword [ebp - 0x40]
add eax, 1
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
cmp ecx, dword [ebp - 0x20]
jae 0x4cd100
lea ecx, [ebp - 0x25c]
call fcn.00438030
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x40]
push edx
push 0x5883ac
lea eax, [ebp - 0x25c]
push eax
call fcn.004386c0
add esp, 0xc
mov dword [ebp - 0x260], 0x208
lea ecx, [ebp - 0x260]
push ecx
lea edx, [ebp - 0x254]
push edx
lea eax, [ebp - 0x44]
push eax
push 0
lea ecx, [ebp - 0x25c]
call fcn.004dfdf0
push eax
mov ecx, dword [ebp - 0x270]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0
je 0x4cd056
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x25c]
call fcn.0044fc20
jmp 0x4ccfbe
movzx eax, word [ebp - 0x254]
test eax, eax
je 0x4cd082
cmp dword [ebp - 0x44], 1
jne 0x4cd082
lea ecx, [ebp - 0x25c]
call fcn.004dfdf0
push eax
mov ecx, dword [ebp - 0x270]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 0x10], 0
jne 0x4cd0b8
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x254]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4cd0b8
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x25c]
call fcn.0044fc20
jmp 0x4ccfbe
lea edx, [ebp - 0x254]
push edx
lea ecx, [ebp - 0x268]
call fcn.0041a130
mov byte [ebp - 4], 2
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004368d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x268]
call fcn.0044fc20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x25c]
call fcn.0044fc20
jmp 0x4ccfbe
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x1c]
call fcn.00438030
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
push ecx
push 0x5883b4
lea edx, [ebp - 0x1c]
push edx
call fcn.004386c0
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp + 8]
push eax
push 1
push 0
lea ecx, [ebp - 0x1c]
call fcn.004dfdf0
push eax
mov ecx, dword [ebp - 0x270]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x3c]
call fcn.004a6180
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add eax, 1
cmp eax, dword [ebp + 0xc]
jl 0x4cd184
lea ecx, [ebp - 0x3c]
call fcn.004cd830
mov ecx, dword [ebp - 0x14]
sub ecx, 1
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 0
jmp 0x4cd196
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
jge 0x4cd22b
lea ecx, [ebp - 0x264]
call fcn.00438030
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x18]
add ecx, 1
push ecx
push 0x5883bc
lea edx, [ebp - 0x264]
push edx
call fcn.004386c0
add esp, 0xc
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0045fcc0
mov ecx, eax
call fcn.004664a0
lea ecx, [eax + eax + 2]
push ecx
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x3c]
call fcn.0045fcc0
mov ecx, eax
call fcn.004dfdf0
push eax
push 1
push 0
lea ecx, [ebp - 0x264]
call fcn.004dfdf0
push eax
mov eax, dword [ebp - 0x270]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x264]
call fcn.0044fc20
jmp 0x4cd18d
mov dword [ebp - 0x26c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0044fc20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00438220
mov eax, dword [ebp - 0x26c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x48]
xor ecx, ebp
call fcn.0053c85d
mov esp, ebp
pop ebp
ret 8