Function at 0x405820
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539a0b
mov eax, dword fs:[0]
push eax
sub esp, 0x400
mov eax, dword [0x599808]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0040b12a
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x40586c
push 0x80004005
call fcn.004014e0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x40c], esi
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x400]
push eax
push 0
push 0xf003f
push 0
push 0x549ebf
push 0
push str.SoftwareSecurityXplodedNetDatabaseScanner
push SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4058be
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x405a7e
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xf0
push dword [edi + 0xc4]
call ebx
neg eax
sbb eax, eax
neg eax
push 4
mov dword [ebp - 0x404], eax
lea eax, [ebp - 0x404]
push eax
push 4
push 0
push str.SingleHost
push dword [ebp - 0x400]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x405909
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x3e8
lea eax, [ebp - 0x3f8]
push eax
push 0x3ec
mov ecx, edi
call fcn.00418e4f
lea ecx, [ebp - 0x3f8]
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405930
sub ecx, edx
push ecx
lea eax, [ebp - 0x3f8]
push eax
push 1
push 0
push str.StartHostAddress
push dword [ebp - 0x400]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x405960
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x3e8
lea eax, [ebp - 0x3f8]
push eax
push 0x3eb
mov ecx, edi
call fcn.00418e4f
lea ecx, [ebp - 0x3f8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405981
sub ecx, edx
push ecx
lea eax, [ebp - 0x3f8]
push eax
push 1
push 0
push str.EndHostAddress
push dword [ebp - 0x400]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4059b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
push 0xf0
push dword [edi + 0x27c0]
mov dword [ebp - 0x3fc], 0
call ebx
cmp eax, 1
jne 0x4059d7
or dword [ebp - 0x3fc], eax
push 0
push 0
push 0xf0
push dword [edi + 0x2834]
call ebx
cmp eax, 1
jne 0x4059f4
or dword [ebp - 0x3fc], 0x10
push 0
push 0
push 0xf0
push dword [edi + 0x28a8]
call ebx
cmp eax, 1
jne 0x405a14
or dword [ebp - 0x3fc], 0x100
push 0
push 0
push 0xf0
push dword [edi + 0x291c]
call ebx
cmp eax, 1
jne 0x405a34
or dword [ebp - 0x3fc], 0x10000
push 0
push 0
push 0xf0
push dword [edi + 0x2990]
call ebx
cmp eax, 1
jne 0x405a54
or dword [ebp - 0x3fc], 0x1000
push 4
lea eax, [ebp - 0x3fc]
push eax
push 4
push 0
push str.DatabaseType
push dword [ebp - 0x400]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x400]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405a9f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051eae1
mov esp, ebp
pop ebp
ret