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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bd08c
mov eax, dword fs:[0]
push eax
sub esp, 0x594
mov eax, dword [0x100f51d4]
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 dword [ebp - 0x584], edx
mov dword [ebp - 0x580], ecx
mov dword [ebp - 0x574], 0
mov dword [ebp - 0x570], 0
mov dword [ebp - 0x56c], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x574]
push 8
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10010e10
mov edi, dword [ebp - 0x574]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x10055655
push 0x64
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.10097030
add esp, 0xc
lea eax, [ebp - 0xe0]
push 0x64
push 0
push eax
call fcn.10097030
add esp, 0xc
xor ebx, ebx
nop
lea eax, [ebp - 0x594]
mov dword [ebp - 0x588], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x588]
push eax
lea eax, [ebp - 0x558]
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x100555f4
mov dword [ebp - 0x568], eax
mov dword [ebp - 0x564], eax
mov dword [ebp - 0x560], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x55c], eax
lea eax, [ebp - 0x55c]
push eax
push 1
push 0
lea eax, [ebp - 0x558]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100555dc
mov edi, dword [ebp - 0x55c]
mov dword [ebp - 0x564], eax
mov dword [ebp - 0x564], eax
lea eax, [ebp - 0x55c]
push eax
lea eax, [ebp - 0x350]
mov dword [ebp - 0x568], edi
push eax
lea eax, [ebp - 0x58c]
mov dword [ebp - 0x55c], 0x208
push eax
push 0
push str.ServiceName
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1005543d
mov eax, dword [ebp - 0x58c]
cmp eax, 1
je 0x100553db
cmp eax, 2
jne 0x1005543d
mov eax, dword [ebp - 0x55c]
test eax, eax
je 0x100553f8
test al, 1
jne 0x1005543d
shr eax, 1
cmp word [ebp + eax*2 - 0x352], 0
je 0x10055401
jmp 0x1005543d
xor eax, eax
mov word [ebp - 0x350], ax
lea eax, [ebp - 0x55c]
mov dword [ebp - 0x578], 0
push eax
lea edx, [ebp - 0x578]
mov dword [ebp - 0x55c], 0
lea ecx, [ebp - 0x350]
call fcn.10054d00
add esp, 4
test eax, eax
je 0x1005545d
cmp dword [ebp - 0x578], 0
jne 0x1005545d
mov byte [ebp - 4], 0
test edi, edi
je 0x10055452
push edi
call esi
mov dword [ebp - 0x568], 0
mov edi, dword [ebp - 0x574]
jmp 0x100555e0
push 0x64
lea eax, [ebp - 0x148]
push 0
push eax
call fcn.10097030
add esp, 0xc
lea eax, [ebp - 0x55c]
lea edx, [ebp - 0x148]
push eax
push ecx
lea ecx, [ebp - 0x350]
call fcn.10055060
add esp, 8
test eax, eax
je 0x100555cd
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x57c]
call fcn.10026a00
mov byte [ebp - 4], 2
lea eax, [ebp - 0x57c]
push dword [ebp - 0x584]
push eax
push ecx
mov ecx, dword [ebp - 0x584]
lea eax, [ebp - 0x59c]
push eax
call fcn.10055f20
cmp dword [ebp - 0x55c], 0
je 0x1005552b
cmp byte [ebp - 0xe0], 0
je 0x100554f8
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jns 0x10055583
lea ecx, [ebp - 0xe0]
mov edx, 0x64
lea esi, [ebp - 0x148]
mov eax, ecx
sub esi, eax
lea ecx, [ecx]
lea eax, [edx + 0x7fffff9a]
test eax, eax
je 0x1005557b
mov al, byte [esi + ecx]
test al, al
je 0x1005557b
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x10055510
jmp 0x1005557f
cmp byte [ebp - 0x78], 0
je 0x10055546
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jns 0x10055583
lea ecx, [ebp - 0x78]
mov edx, 0x64
lea esi, [ebp - 0x148]
mov eax, ecx
sub esi, eax
jmp 0x10055560
lea eax, [edx + 0x7fffff9a]
test eax, eax
je 0x1005557b
mov al, byte [esi + ecx]
test al, al
je 0x1005557b
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x10055560
jmp 0x1005557f
test edx, edx
jne 0x10055580
dec ecx
mov byte [ecx], 0
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov ecx, dword [ebp - 0x57c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x100555cd
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x1005569b
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10055441
mov byte [ebp - 4], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10055441
mov byte [ebp - 4], 0
inc ebx
mov dword [ebp - 0x564], 0
cmp ebx, 0x64
jl 0x10055310
cmp byte [ebp - 0x78], 0
je 0x10055620
lea edx, [ebp - 0x78]
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x10055600
mov ecx, dword [ebp - 0x580]
lea eax, [ebp - 0x78]
sub edx, esi
push edx
push eax
call fcn.10050ba0
mov esi, 1
jmp 0x10055657
cmp byte [ebp - 0xe0], 0
je 0x10055655
lea ecx, [ebp - 0xe0]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10055632
sub ecx, edx
lea eax, [ebp - 0xe0]
push ecx
mov ecx, dword [ebp - 0x580]
push eax
call fcn.10050ba0
mov esi, 1
jmp 0x10055657
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10055673
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x574], 0
mov eax, esi
mov dword [ebp - 0x570], 0
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.10071699
mov esp, ebp
pop ebp
ret
mov ecx, edx
call esi
jmp 0x100555cd