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

Disassembly:
push ebp
lea ebp, [esp - 0x104]
sub esp, 0x104
push 0xffffffffffffffff
push 0x439798
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x44d660]
xor eax, ebp
mov dword [ebp + 0x100], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10c]
mov edi, dword [ebp + 0x114]
xor esi, esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x58], esi
mov dword [ebp - 4], esi
mov ebx, 0x80
mov eax, dword [ebp - 0x30]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp]
push edx
push esi
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
add esi, 1
test eax, eax
mov dword [ebp - 0x28], esi
jne 0x406c6a
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
push eax
lea edx, [ebp]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x30]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4069a6
push str.Could_not_read_from_HKLMEnum..._
lea ecx, [ebp - 0x28]
call fcn.00404540
lea ecx, [ebp]
push ecx
push eax
lea edx, [ebp - 0x54]
push edx
mov byte [ebp - 4], 1
call fcn.00406190
add esp, 0xc
push 0x446108
lea eax, [ebp - 0x54]
push eax
call fcn.00425900
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp + 0x80]
push edx
push 0
push 0
push str.PORTNAME
push eax
mov dword [ebp - 0x14], ebx
call esi
test eax, eax
jne 0x406c2c
lea ecx, [ebp + 0x80]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00404540
mov byte [ebp - 4], 2
call fcn.0040ab03
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4069fe
push 0x80004005
call fcn.00401160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp + 0x80]
push edx
push 0
push 0
push str.FRIENDLYNAME
push eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], ebx
call esi
test eax, eax
jne 0x406a5b
lea eax, [ebp + 0x80]
lea edx, [eax + 1]
jmp 0x406a40
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406a40
sub eax, edx
push eax
lea ecx, [ebp + 0x80]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00403c40
lea ecx, [ebp - 0x48]
call fcn.00405af0
push str.._
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 4
call fcn.00404540
lea edx, [ebp - 0x1c]
push edx
push eax
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 5
call fcn.004060d0
add esp, 0xc
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 6
call fcn.00405950
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406ab9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x50]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406adc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x44]
call fcn.00405950
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x40]
call fcn.00405950
mov eax, dword [ebp + 0x110]
xor ecx, ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x2c], ecx
xor ebx, ebx
mov eax, dword [edi + 8]
cmp ebx, eax
jge 0x406bc9
test ecx, ecx
jne 0x406bd9
test ebx, ebx
jl 0x406bc4
cmp ebx, eax
jge 0x406bc4
mov eax, dword [edi + 4]
mov edi, dword [ebp - 0x1c]
lea esi, [ebx + ebx*2]
add esi, esi
add esi, esi
add esi, esi
add eax, esi
test edi, edi
setne cl
test ecx, ecx
jne 0x406b4b
push 0x80004005
call fcn.00401160
mov eax, dword [eax + 4]
push edi
push eax
call fcn.00425888
add esp, 8
test eax, eax
sete al
test al, al
je 0x406bb6
mov eax, dword [ebp - 0x24]
cmp ebx, dword [eax + 8]
mov dword [ebp - 0x2c], 1
jge 0x406bc4
mov edi, dword [eax + 4]
lea ecx, [ebp - 0x48]
add edi, esi
push ecx
mov ecx, edi
call fcn.00405950
lea edx, [ebp - 0x44]
lea ecx, [edi + 4]
push edx
call fcn.00405950
lea eax, [ebp - 0x40]
lea ecx, [edi + 8]
push eax
call fcn.00405950
mov ecx, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
mov dword [edi + 0xc], ecx
lea ecx, [edi + 0x10]
push edx
call fcn.00405950
lea eax, [ebp - 0x34]
lea ecx, [edi + 0x14]
push eax
call fcn.00405950
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
add ebx, 1
jmp 0x406b04
jmp fcn.0040a3c6
test ecx, ecx
jne 0x406bd9
lea ecx, [ebp - 0x48]
push ecx
push eax
mov ecx, edi
call fcn.004062c0
lea ecx, [ebp - 0x48]
call fcn.00405bb0
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406c04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406c27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, 0x80
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x28]
jmp 0x40692b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x100]
xor ecx, ebp
call fcn.00425494
add ebp, 0x104
mov esp, ebp
pop ebp
ret