Function at 0x412270
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4dd328
push 0x4a4cd0
mov eax, dword fs:[0]
push eax
add esp, 0xffffffa8
push ebx
push esi
push edi
mov eax, dword [0x4e2210]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], str.SYSTEMCurrentControlSetControlSession_Manager
mov dword [ebp - 0x4c], str.PendingFileRenameOperations
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp - 0x34]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x41234a
mov dword [ebp - 0x54], 0
push 0xfffffffffffffffe
lea edx, [ebp - 0x10]
push edx
push 0x4e2210
call fcn.004b1644
add esp, 0xc
mov eax, dword [ebp - 0x54]
jmp 0x4127a0
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x41238d
mov dword [ebp - 0x58], 0
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x4e2210
call fcn.004b1644
add esp, 0xc
mov eax, dword [ebp - 0x58]
jmp 0x4127a0
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004a0124
add esp, 4
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x20]
push edx
call fcn.004a0124
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
push eax
call fcn.004a0124
add esp, 4
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x40], 0
je 0x4123cc
cmp dword [ebp - 0x1c], 0
je 0x4123cc
cmp dword [ebp - 0x28], 0
jne 0x412427
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.004a01e7
add esp, 4
mov dword [ebp - 0x40], 0
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004a01e7
add esp, 4
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x28]
push eax
call fcn.004a01e7
add esp, 4
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x5c], 0
push 0xfffffffffffffffe
lea ecx, [ebp - 0x10]
push ecx
push 0x4e2210
call fcn.004b1644
add esp, 0xc
mov eax, dword [ebp - 0x5c]
jmp 0x4127a0
mov edx, dword [ebp - 0x20]
push edx
push 0
mov eax, dword [ebp - 0x40]
push eax
call fcn.0049d120
add esp, 0xc
mov ecx, dword [ebp - 0x20]
push ecx
push 0
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0049d120
add esp, 0xc
mov eax, dword [ebp - 0x20]
push eax
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0049d120
add esp, 0xc
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x40]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x4124db
mov eax, dword [ebp - 0x40]
push eax
call fcn.004a01e7
add esp, 4
mov dword [ebp - 0x40], 0
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004a01e7
add esp, 4
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x28]
push edx
call fcn.004a01e7
add esp, 4
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x60], 0
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x4e2210
call fcn.004b1644
add esp, 0xc
mov eax, dword [ebp - 0x60]
jmp 0x4127a0
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004a0124
add esp, 4
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x41254b
mov edx, dword [ebp - 0x40]
push edx
call fcn.004a01e7
add esp, 4
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004a01e7
add esp, 4
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004a01e7
add esp, 4
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x64], 0
push 0xfffffffffffffffe
lea edx, [ebp - 0x10]
push edx
push 0x4e2210
call fcn.004b1644
add esp, 0xc
mov eax, dword [ebp - 0x64]
jmp 0x4127a0
mov eax, dword [ebp - 0x20]
push eax
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.0049d120
add esp, 0xc
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x38], 0
jmp 0x412588
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.0049d109
add esp, 4
mov edx, dword [ebp - 0x44]
lea eax, [edx + eax*2 + 2]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
movzx edx, word [ecx]
test edx, edx
je 0x4126df
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x20]
jae 0x4126df
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.0049d109
add esp, 4
mov edx, dword [ebp - 0x38]
lea eax, [edx + eax*2 + 2]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.0049d109
add esp, 4
lea edx, [eax + eax + 2]
push edx
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0049f180
add esp, 0xc
mov edx, dword [ebp - 0x44]
push edx
call fcn.0049d109
add esp, 4
mov ecx, dword [ebp - 0x44]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
push eax
call fcn.0049d109
add esp, 4
mov ecx, dword [ebp - 0x38]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x44]
push eax
call fcn.0049d109
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.0049f180
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x50]
call fcn.004120a0
test eax, eax
jne 0x412648
jmp 0x412572
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0049d109
add esp, 4
lea edx, [eax + eax + 2]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0049f180
add esp, 0xc
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0049d109
add esp, 4
mov ecx, dword [ebp - 0x48]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.0049d109
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x48]
push eax
call fcn.0049f180
add esp, 0xc
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0049d109
add esp, 4
mov edx, dword [ebp - 0x48]
lea eax, [edx + eax*2 + 2]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0049d109
add esp, 4
mov esi, eax
mov edx, dword [ebp - 0x28]
push edx
call fcn.0049d109
add esp, 4
add eax, dword [ebp - 0x30]
lea eax, [eax + esi + 2]
mov dword [ebp - 0x30], eax
jmp 0x412572
mov ecx, dword [ebp - 0x48]
mov word [ecx], 0
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
push 7
push 0
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x412734
mov dword [ebp - 0x68], 0
push 0xfffffffffffffffe
lea ecx, [ebp - 0x10]
push ecx
push 0x4e2210
call fcn.004b1644
add esp, 0xc
mov eax, dword [ebp - 0x68]
jmp 0x4127a0
mov dword [ebp - 4], 0xfffffffe
call fcn.00412742
jmp 0x41279b
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4