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

Disassembly:
sub esp, 0x314
mov eax, dword [0x4156a8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x328]
push edi
xor ebp, ebp
mov dword [esp + 0x224], eax
xor bl, bl
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x228]
cmp esi, ebp
mov byte [esp + 0x13], bl
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
rep stosd dword es:[edi], eax
je 0x403749
mov edx, dword [str.SoftwareMDCRefCounters]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push ebp
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40352f
mov ecx, dword [str.SoftwareMDCRefCounters]
lea eax, [esp + 0x14]
push ebp
push eax
push ebp
push 0xf003f
push ebp
push ebp
push ebp
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x403735
mov eax, dword [esp + 0x328]
cmp eax, 0xffffffff
je 0x40358c
cmp eax, ebp
je 0x4035ad
cmp eax, 1
jne 0x403735
mov edx, dword [esp + 0x14]
push eax
push 0x4156a4
push eax
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
test eax, eax
jne 0x403735
cmp dword [esp + 0x338], ebp
je 0x4035a8
mov eax, dword [esp + 0x14]
push 0x18
push str.single_bind
push 1
push ebp
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x403735
jmp 0x4035a8
mov ecx, dword [esp + 0x14]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x4035ad
mov edx, dword [esp + 0x14]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov byte [esp + 0x13], 1
mov ax, word [0x459f00]
mov ecx, 0x3f
mov word [esp + 0x24], ax
xor eax, eax
lea edi, [esp + 0x26]
push ebp
rep stosd dword es:[edi], eax
push ebp
push ebp
lea ecx, [esp + 0x28]
push ebp
lea edx, [esp + 0x34]
push ecx
stosw word es:[edi], ax
mov eax, dword [esp + 0x28]
push edx
mov ebx, 0x100
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push eax
xor esi, esi
mov dword [esp + 0x3c], ebx
call ebp
cmp eax, 0x103
je 0x4036cb
test eax, eax
jne 0x403731
mov ecx, dword [0x4156a8]
lea edi, [esp + 0x128]
mov dword [esp + 0x124], ecx
mov ecx, 0x3f
rep stosd dword es:[edi], eax
lea edx, [esp + 0x20]
lea eax, [esp + 0x124]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x28]
push eax
push ecx
push edx
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x403731
cmp word [esp + 0x124], 0x31
jne 0x403654
inc dword [esp + 0x18]
mov edi, dword [esp + 0x330]
test edi, edi
je 0x403687
mov eax, dword [esp + 0x32c]
lea ecx, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x403687
cmp word [esp + 0x124], 0x31
sete dl
mov byte [edi], dl
mov ax, word [0x459f00]
mov ecx, 0x3f
mov word [esp + 0x24], ax
xor eax, eax
lea edi, [esp + 0x26]
push 0
rep stosd dword es:[edi], eax
push 0
push 0
lea ecx, [esp + 0x28]
push 0
lea edx, [esp + 0x34]
inc esi
stosw word es:[edi], ax
mov eax, dword [esp + 0x24]
push ecx
push edx
push esi
push eax
mov dword [esp + 0x3c], ebx
call ebp
cmp eax, 0x103
jne 0x4035f9
mov eax, dword [esp + 0x334]
test eax, eax
je 0x4036dc
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x224]
push 0xa
push edx
push eax
call dword [sym.imp.MSVCRT.dll__ultow]
lea ecx, [esp + 0x230]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0x10
lea edx, [esp + 0x224]
push eax
mov eax, dword [esp + 0x18]
push edx
push 1
push 0x459f00
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
test eax, eax
jne 0x403731
mov eax, dword [esp + 0x328]
test eax, eax
jne 0x403731
mov byte [esp + 0x13], 1
mov bl, byte [esp + 0x13]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x403749
cmp eax, 0xffffffff
je 0x403749
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
add esp, 0x314
ret