Function at 0x430930
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497248
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2948
call fcn.0043da10
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
xor ecx, ecx
mov dword [ebp - 0x14], 0x80
mov edi, dword [ebp + 8]
mov eax, ecx
inc ecx
push esi
mov dword [ebp - 0x24], ecx
push esi
push esi
lea ecx, [ebp - 0x14]
push esi
lea edx, [ebp - 0x154]
push ecx
push edx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x430c18
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x154]
push eax
push 0x20019
push esi
push ecx
push edi
mov dword [ebp - 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x430a13
mov dl, byte [ebp + 0x13]
push esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x34], dl
call fcn.00431020
mov edi, str.Could_not_read_from_HKLMEnum..._
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [ebp - 0x34]
push ebx
call fcn.00431140
test al, al
je 0x430a05
mov edi, dword [ebp - 0x30]
mov ecx, ebx
mov eax, ecx
mov esi, str.Could_not_read_from_HKLMEnum..._
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], ebx
mov byte [ebx + ecx], 0
lea edx, [ebp - 0x34]
push 0x4a7550
push edx
call fcn.0043e2f7
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0xd4]
push eax
push ecx
push esi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push str.PORTNAME
push edx
mov dword [ebp - 0x14], 0x80
call esi
test eax, eax
jne 0x430bb8
mov ecx, 0x1ff
lea edi, [ebp - 0x953]
mov byte [ebp - 0x954], al
mov edx, dword [ebp - 0x18]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0xd4]
push eax
push ecx
push 0
push 0
push str.FRIENDLYNAME
push edx
mov dword [ebp - 0x14], 0x80
call esi
test eax, eax
jne 0x430aa2
lea edi, [ebp - 0xd4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x954]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0xd4]
lea edx, [ebp - 0x2958]
push ecx
push str.._s
push edx
mov dword [ebp - 0x958], 0
call fcn.0043da3f
lea edi, [ebp - 0xd4]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x2158]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x1958]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x954]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [ebx + 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x958], ecx
cmp edx, dword [ebx + 8]
je 0x430ba0
test eax, eax
jne 0x430bb8
lea esi, [ebp - 0xd4]
lea eax, [edx + 0x800]
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x430b67
test cl, cl
je 0x430b63
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x430b67
add eax, 2
add esi, 2
test cl, cl
jne 0x430b43
xor eax, eax
jmp 0x430b6c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x430b92
mov ebx, dword [ebp + 0x10]
mov eax, 1
mov ecx, 0x801
lea esi, [ebp - 0x2958]
mov edi, edx
mov dword [ebp - 0x1c], eax
rep movsd dword es:[edi], dword [esi]
add edx, 0x2004
jmp 0x430b2a
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp + 0x10]
add edx, 0x2004
jmp 0x430b2a
test eax, eax
jne 0x430bb8
mov eax, dword [ebx + 8]
lea edx, [ebp - 0x2958]
push edx
push 1
push eax
mov ecx, ebx
call fcn.00431260
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x14], 0x80
xor esi, esi
jmp 0x43096d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc