Function at 0x403290
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 [0x41359c]
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 0x403539
mov edx, dword [0x41298c]
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 0x40331f
mov ecx, dword [0x41298c]
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 0x403525
mov eax, dword [esp + 0x328]
cmp eax, 0xffffffff
je 0x40337c
cmp eax, ebp
je 0x40339d
cmp eax, 1
jne 0x403525
mov edx, dword [esp + 0x14]
push eax
push 0x413598
push eax
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
test eax, eax
jne 0x403525
cmp dword [esp + 0x338], ebp
je 0x403398
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 0x403525
jmp 0x403398
mov ecx, dword [esp + 0x14]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x40339d
mov edx, dword [esp + 0x14]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov byte [esp + 0x13], 1
mov ax, word [0x44a278]
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 0x4034bb
test eax, eax
jne 0x403521
mov ecx, dword [0x41359c]
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 0x403521
cmp word [esp + 0x124], 0x31
jne 0x403444
inc dword [esp + 0x18]
mov edi, dword [esp + 0x330]
test edi, edi
je 0x403477
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 0x403477
cmp word [esp + 0x124], 0x31
sete dl
mov byte [edi], dl
mov ax, word [0x44a278]
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 0x4033e9
mov eax, dword [esp + 0x334]
test eax, eax
je 0x4034cc
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 0x44a278
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
test eax, eax
jne 0x403521
mov eax, dword [esp + 0x328]
test eax, eax
jne 0x403521
mov byte [esp + 0x13], 1
mov bl, byte [esp + 0x13]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x403539
cmp eax, 0xffffffff
je 0x403539
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
add esp, 0x314
ret