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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
call dword [0x446f78]
mov dword [ebp - 0x10], eax
call fcn.004044c3
cmp eax, 4
je 0x4334ca
lea eax, [ebp - 4]
push eax
call fcn.00432559
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x4334d1
cmp dword [ebp + 0x14], ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
je 0x433217
push dword [ebp + 0x14]
call esi
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.0040366c
mov eax, esp
push dword [ebp - 0x10]
push edi
push dword [ebp + 0x14]
push eax
call fcn.0040cd49
jmp 0x43321a
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push 0x1d4d
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
call fcn.00412b0a
test eax, eax
jne 0x433267
cmp dword [ebp - 0x14], ebx
jne 0x43323f
mov dword [ebp - 8], ebx
jmp 0x433267
push dword [ebp - 0x14]
call esi
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.0040366c
mov eax, esp
push dword [ebp - 0x10]
push edi
push dword [ebp - 0x14]
push eax
call fcn.0040cd49
mov dword [ebp - 8], eax
cmp dword [ebp + 0x14], ebx
je 0x433293
push dword [ebp + 0x14]
call esi
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.0040366c
mov eax, esp
push dword [ebp - 0x10]
push edi
push dword [ebp + 0x14]
push eax
call fcn.0040cd49
jmp 0x433296
mov eax, dword [ebp - 4]
push dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push edi
push ebx
push 2
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.00432720
test eax, eax
jl 0x4332f8
cmp edi, ebx
jne 0x4332b7
mov dword [ebp - 0x38], ebx
jmp 0x4332db
push edi
call esi
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.0040366c
mov eax, esp
push dword [ebp - 0x10]
push esi
push edi
push eax
call fcn.0040cd49
mov dword [ebp - 0x38], eax
xor eax, eax
inc eax
mov dword [ebp - 0x2c], 0x40ea14
mov dword [ebp - 0x20], 0x40ea10
lea edi, [ebp - 0x38]
mov dword [ebp + 0x14], 3
jmp 0x433354
cmp dword [ebp + 0x14], ebx
je 0x433324
push dword [ebp + 0x14]
call esi
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.0040366c
mov eax, esp
push dword [ebp - 0x10]
push esi
push dword [ebp + 0x14]
push eax
call fcn.0040cd49
jmp 0x433327
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x44], eax
xor eax, eax
inc eax
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], al
mov byte [ebp - 0x3b], bl
mov dword [ebp - 0x38], 0x40ea14
mov dword [ebp - 0x2c], 0x40ea10
mov dword [ebp - 0x20], ecx
lea edi, [ebp - 0x44]
mov dword [ebp + 0x14], 4
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], al
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], al
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], al
lea eax, [ebp + 0x10]
push eax
push ebx
push ebx
push dword [ebp + 0x14]
mov byte [ebp - 0x2f], bl
push edi
push dword [ebp - 4]
mov byte [ebp - 0x23], bl
push dword [ebp - 4]
mov byte [ebp - 0x17], bl
call fcn.00432e28
test eax, eax
jne 0x4333af
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorLength]
push eax
push dword [ebp + 0x10]
push 3
push ebx
push 0x4334f4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push ebx
push 0x4334e0
push dword [ebp + 8]
mov dword [ebp + 0xc], ebx
call esi
test eax, eax
jne 0x433472
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x433469
lea ecx, [ebp + 0xc]
push ecx
push eax
push ebx
push ebx
push 0x4334e0
push dword [ebp + 8]
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x43345e
mov esi, dword [ebp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSecurityDescriptor]
test eax, eax
je 0x433446
mov eax, dword [ebp + 0x14]
cmp eax, ebx
jbe 0x433441
mov dword [ebp + 0x14], eax
lea eax, [ebp - 0x10]
push eax
push edi
push esi
call fcn.00432b62
cmp eax, ebx
jne 0x433436
cmp esi, dword [ebp + 0x10]
je 0x433431
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp - 0x10]
jmp 0x433439
mov dword [ebp - 8], eax
add edi, 0xc
dec dword [ebp + 0x14]
jne 0x433416
mov dword [ebp + 0x14], esi
jmp 0x43345e
lea eax, [ebp + 0x14]
push eax
push ebx
push ebx
push dword [ebp + 0x14]
push edi
push dword [ebp - 4]
push dword [ebp - 4]
call fcn.00432e28
mov dword [ebp - 8], eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x43348a
mov dword [ebp - 8], 0x8007000e
jmp 0x43348a
lea eax, [ebp + 0x14]
push eax
push ebx
push ebx
push dword [ebp + 0x14]
push edi
push dword [ebp - 4]
push dword [ebp - 4]
call fcn.00432e28
mov dword [ebp - 8], eax
cmp dword [ebp - 8], ebx
jne 0x4334b6
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorLength]
push eax
push dword [ebp + 0x14]
push 3
push ebx
push 0x4334e0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 4]
call fcn.004036f0
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x4334d1
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret 0x10