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

Disassembly:
push ebp
lea ebp, [esp - 0x104]
sub esp, 0x104
push 0xffffffffffffffff
push 0x100338f8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x100445fc]
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 ebx, dword [ebp + 0x114]
xor esi, esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 4], esi
mov edi, 0x80
mov eax, dword [ebp - 0x24]
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], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
add esi, 1
test eax, eax
mov dword [ebp - 0x2c], esi
jne 0x10002a69
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
push eax
lea edx, [ebp]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100027b6
push str.Could_not_read_from_HKLMEnum..._
lea ecx, [ebp - 0x2c]
call fcn.100020b0
lea ecx, [ebp]
push ecx
push eax
lea edx, [ebp - 0x50]
push edx
mov byte [ebp - 4], 1
call fcn.10001f60
add esp, 0xc
push 0x1003e1e8
lea eax, [ebp - 0x50]
push eax
call fcn.10020738
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], edi
call esi
test eax, eax
jne 0x10002a2b
lea ecx, [ebp + 0x80]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.100020b0
mov byte [ebp - 4], 2
call fcn.10005f6c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x1000280e
push 0x80004005
call fcn.100010a0
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], edi
call esi
test eax, eax
jne 0x1000286b
lea eax, [ebp + 0x80]
lea edx, [eax + 1]
jmp 0x10002850
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10002850
sub eax, edx
push eax
lea ecx, [ebp + 0x80]
push ecx
lea ecx, [ebp - 0x20]
call fcn.10001aa0
lea ecx, [ebp - 0x40]
call fcn.100015e0
push 0x100366c0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.100020b0
lea edx, [ebp - 0x1c]
push edx
push eax
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 5
call fcn.10001ea0
add esp, 0xc
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.10001dc0
mov eax, dword [ebp - 0x54]
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 0x100028c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x44]
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 0x100028ec
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 - 0x3c]
call fcn.10001dc0
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x38]
call fcn.10001dc0
mov eax, dword [ebp + 0x110]
xor ecx, ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], ecx
xor edi, edi
mov eax, dword [ebx + 8]
cmp edi, eax
jge 0x100029c8
test ecx, ecx
jne 0x100029d8
test edi, edi
jl 0x100029c3
cmp edi, eax
jge 0x100029c3
mov eax, dword [ebx + 4]
mov edx, dword [ebp - 0x1c]
lea esi, [edi + edi*4]
add esi, esi
add esi, esi
add eax, esi
test edx, edx
setne cl
test ecx, ecx
jne 0x10002959
push 0x80004005
call fcn.100010a0
mov eax, dword [eax + 4]
push edx
push eax
call fcn.10020134
add esp, 8
test eax, eax
sete al
test al, al
je 0x100029b8
cmp edi, dword [ebx + 8]
mov dword [ebp - 0x28], 1
jge 0x100029c3
mov ebx, dword [ebx + 4]
lea ecx, [ebp - 0x40]
add ebx, esi
push ecx
mov ecx, ebx
call fcn.10001dc0
lea edx, [ebp - 0x3c]
lea ecx, [ebx + 4]
push edx
call fcn.10001dc0
lea eax, [ebp - 0x38]
lea ecx, [ebx + 8]
push eax
call fcn.10001dc0
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
mov dword [ebx + 0xc], ecx
lea ecx, [ebx + 0x10]
push edx
call fcn.10001dc0
mov ebx, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x28]
add edi, 1
jmp 0x10002914
jmp fcn.10005796
test ecx, ecx
jne 0x100029d8
lea ecx, [ebp - 0x40]
push ecx
push eax
mov ecx, ebx
call fcn.10002040
lea ecx, [ebp - 0x40]
call fcn.10001680
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 0x10002a03
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 0x10002a26
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, 0x80
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x2c]
jmp 0x1000273b
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.100205e4
add ebp, 0x104
mov esp, ebp
pop ebp
ret