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

Disassembly:
push 0xffffffffffffffff
push 0x457716
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x46be4c]
xor eax, esp
mov dword [esp + 0x138], eax
push ebp
push esi
push edi
mov eax, dword [0x46be4c]
xor eax, esp
push eax
lea eax, [esp + 0x14c]
mov dword fs:[0], eax
xor edi, edi
mov esi, ecx
mov dword [esp + 0x10], edi
push 0x104
lea eax, [esp + 0x48]
push 0
push eax
mov dword [esp + 0x20], 0x104
mov dword [esp + 0x24], 1
call fcn.004413c0
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push edi
push str.profile
lea ecx, [esp + 0x38]
push str._s_02d
push ecx
call ebp
add esp, 0x1c
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
lea edx, [esp + 0x34]
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x412327
push esi
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x41235a
add edi, 1
cmp edi, 0x64
jb 0x4122b2
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.0044027a
add esp, 0x148
ret
lea ecx, [esp + 0x24]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x41232f
lea esi, [edi + 1]
cmp esi, 0x64
jae 0x41243f
jmp 0x412386
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push 0x104
lea edx, [esp + 0x48]
push 0
push edx
mov dword [esp + 0x20], 0x104
mov dword [esp + 0x24], 1
call fcn.004413c0
push esi
push str.profile
lea eax, [esp + 0x48]
push str._s_02d
push eax
call ebp
add esp, 0x1c
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x20]
push eax
push 0
lea ecx, [esp + 0x44]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41243f
push edi
push str.profile
lea edx, [esp + 0x2c]
push str._s_02d
push edx
call ebp
lea eax, [esp + 0x54]
add esp, 0x10
lea ebp, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x412400
sub eax, ebp
add eax, 1
push eax
lea eax, [esp + 0x48]
push eax
push 1
push 0
lea ecx, [esp + 0x34]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esp + 0x34]
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
add esi, 1
add edi, 1
cmp esi, 0x64
jb 0x412380
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
push ecx
push 0
push ebx
mov dword [esp + 0x34], 0x10
mov dword [esp + 0x3c], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x4125e9
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x14]
call fcn.004027b0
push 7
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x15c], 0
call fcn.00407350
mov eax, dword [eax]
mov ebp, dword [esp + 0x10]
lea esi, [eax - 0x10]
add ebp, 0xfffffff0
cmp esi, ebp
mov byte [esp + 0x154], 1
je 0x412550
cmp dword [ebp + 0xc], 0
jl 0x412542
mov ecx, dword [esi]
cmp ecx, dword [ebp]
jne 0x412542
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x4124e9
cmp eax, dword [esi]
jne 0x4124e9
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x41251f
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x4125f6
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.00440f45
add esp, 0x10
lea eax, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x412539
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
add edi, 0x10
mov dword [esp + 0x10], edi
jmp 0x412550
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00401bc0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or esi, 0xffffffff
mov byte [esp + 0x154], 0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41257a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
push str.profile
push ecx
call fcn.00440d82
add esp, 8
test eax, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x154], esi
je 0x4125fb
add eax, 0xfffffff0
mov dword [esp + 0x14], 0x10
lea edx, [eax + 0xc]
lock xadd dword [edx], esi
dec esi
test esi, esi
jg 0x4125bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x38]
add eax, 1
push edx
push eax
push ebx
mov dword [esp + 0x3c], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x412472
mov dword [esp + 0x10], 2
jmp 0x41232f
jmp fcn.00401340
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x412614
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x10], 1
jmp 0x41232f