Function at 0x4031b6
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov eax, 0x406896
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x18
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x20]
mov esi, 0xf003f
push eax
push esi
push ebx
push 0x4094b4
push 0x80000002
mov byte [ebp - 4], 3
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4032a7
lea ecx, [ebp - 0x1c]
call fcn.00402e41
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x1c], ecx
jne 0x4032a7
lea eax, [ebp - 0x24]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push 0x4094c0
push ecx
mov dword [ebp - 0x20], ebx
call edi
cmp eax, ebx
jne 0x4032a7
lea ecx, [ebp - 0x18]
call fcn.00402e41
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x18], ecx
jne 0x4032a7
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], ebx
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push 0x4094cc
push ecx
call edi
cmp eax, ebx
jne 0x4032a7
lea ecx, [ebp - 0x14]
call fcn.00402e41
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x14], ecx
jne 0x4032a7
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], ebx
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push 0x4094d8
push ecx
call edi
cmp eax, ebx
jne 0x4032a7
lea ecx, [ebp - 0x10]
call fcn.00402e41
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x10], ecx
je 0x4032db
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00402e41
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00402e41
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.00402e41
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402e41
jmp 0x40337d
cmp dword [ebp + 0xc], ebx
jne 0x403325
push dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebx
je 0x403381
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00402e41
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00402e41
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.00402e41
cmp dword [ebp - 0x1c], ebx
je 0x40337d
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40337d
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0xc]
push 1
push ebx
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x403381
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x403359
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x403366
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x18], ebx
je 0x403373
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x1c], ebx
je 0x40337d
push dword [ebp - 0x1c]
call esi
xor eax, eax
jmp 0x4033bb
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x403394
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x4033a1
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x18], ebx
je 0x4033ae
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x1c], ebx
je 0x4033b8
push dword [ebp - 0x1c]
call esi
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret