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

Disassembly:
sub esp, 0x328
push ebx
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push edi
mov ebx, ecx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0xf003f
push 0
push 0x6528b61a
push 0
push str.Software
push 0x80000001
mov dword [esp + 0x54], ebx
call esi
test eax, eax
je 0x65272cf6
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x20]
push eax
push 0
push 0xf003f
push 0
push 0x6528b61a
push 0
push str.Software
push 0x80000002
call esi
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x28]
push ecx
push 0xf003f
push 0
push str.Sybase
push edx
call esi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov eax, dword [esp + 0x1c]
push eax
call ebp
test edi, edi
jne 0x65272ee6
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x24]
push ecx
push 0xf003f
push edi
push str.SQL_Anywhere
push edx
call esi
mov edi, eax
mov eax, dword [esp + 0x28]
push eax
call ebp
test edi, edi
jne 0x65272ee6
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push edi
push str.SQL_Remote
push edx
call esi
mov edi, eax
mov eax, dword [esp + 0x24]
push eax
call ebp
test edi, edi
jne 0x65272ee6
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
lea eax, [ebx + 0x88]
push edi
push eax
push edx
mov dword [esp + 0x40], eax
call esi
test eax, eax
jne 0x65272ee6
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x13c]
push ecx
mov ecx, dword [esp + 0x1c]
xor esi, esi
push esi
push esi
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x24c]
push eax
push esi
mov ebx, pe_nt_image_headers32
push ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x38], ebx
call edi
test eax, eax
jne 0x65272e43
lea ecx, [ecx]
mov edx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x13c]
push eax
mov eax, dword [edx + 0x9c]
push 1
push 0
lea ecx, [esp + 0x248]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x65272ed8
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x13c]
push edx
mov edx, dword [esp + 0x1c]
push eax
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x24c]
push ecx
inc esi
push esi
push edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x38], ebx
call edi
test eax, eax
je 0x65272de0
mov eax, dword [esp + 0x14]
push eax
call ebp
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, 0xc
mov esi, str.This_location_is_deprecated_use_SoftwareSybase
lea edi, [esp + 0x38]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x38]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x65272e70
mov eax, dword [str.SQL_Remote]
mov ecx, dword [0x6528e618]
mov dx, word [0x6528e61c]
mov dword [edi], eax
mov al, byte [0x6528e61e]
mov dword [edi + 4], ecx
mov word [edi + 8], dx
mov byte [edi + 0xa], al
lea eax, [esp + 0x38]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x65272ea2
sub eax, edx
mov edx, dword [esp + 0x10]
inc eax
push eax
lea ecx, [esp + 0x3c]
push ecx
push 1
push 0
push 0x6529c618
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x10]
push eax
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x328
ret
mov ecx, dword [esp + 0x14]
push ecx
call ebp
mov edx, dword [esp + 0x10]
push edx
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x328
ret