Function at 0x4397e9
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd2a7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
lea ecx, [ebp - 0x10]
call fcn.00406f30
mov dword [ebp - 4], 0
push 0x5d4040
lea ecx, [ebp - 0x10]
call fcn.004ad249
push 4
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x10]
call fcn.004a93ee
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x50]
push edx
lea ecx, [ebp - 0x10]
call fcn.004ad1f9
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.004ad0c0
lea ecx, [ebp - 0x1c]
call fcn.00406f30
mov byte [ebp - 4], 2
mov eax, dword [0x5d3e24]
push eax
push 0x5312b0
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004a988a
add esp, 0xc
lea edx, [ebp - 0x24]
push edx
push 1
push 0
lea ecx, [ebp - 0x1c]
call fcn.00406f50
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4398b6
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00406f50
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x24], 0
je 0x4398c6
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [0x5d3e24]
push eax
push 0x5312cc
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004a988a
add esp, 0x10
lea edx, [ebp - 0x24]
push edx
push 1
push 0
lea ecx, [ebp - 0x1c]
call fcn.00406f50
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x439921
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00406f50
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x24], 0
je 0x439931
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00406f50
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4399fd
mov dword [ebp - 0x20], 0
jmp 0x439968
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x3e8
jge 0x439997
mov ecx, dword [ebp - 0x20]
push ecx
push 0x5312ec
lea edx, [ebp - 0x44]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x43995f
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x20], 0
jmp 0x4399b3
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp + 0xc]
jge 0x4399fd
mov edx, dword [ebp - 0x20]
push edx
push 0x5312f8
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ecx, dword [ebp - 0x20]
imul ecx, ecx, 0x440
mov edx, dword [ebp + 8]
add edx, ecx
push edx
mov eax, dword [ebp + 0xc]
sub eax, 1
xor ecx, ecx
cmp dword [ebp - 0x20], eax
sete cl
push ecx
lea edx, [ebp - 0x44]
push edx
call fcn.00438e19
add esp, 0xc
jmp 0x4399aa
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004ad0c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004ad0c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret