Function at 0x100182a0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1003a336
mov eax, dword fs:[0]
push eax
sub esp, 0xab8
mov eax, dword [0x10043330]
xor eax, esp
mov dword [esp + 0xab0], eax
push ebx
push esi
push edi
mov eax, dword [0x10043330]
xor eax, esp
push eax
lea eax, [esp + 0xac8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
xor ebx, ebx
push 0x80000002
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x1001830d
xor al, al
jmp 0x100186a8
mov eax, dword [esp + 0x10]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x34]
push edx
push ebx
push ebx
push ebx
push eax
mov dword [esp + 0x48], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x10018306
xor esi, esi
cmp dword [esp + 0x18], ebx
mov dword [esp + 0x1c], esi
jbe 0x1001869b
push 0x3fe
lea ecx, [esp + 0x2c2]
push ebx
push ecx
mov word [esp + 0x2c8], bx
call fcn.1002fb20
mov eax, dword [esp + 0x1c]
add esp, 0xc
push 0x400
lea edx, [esp + 0x2c0]
push edx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x10018686
push 0x3fe
lea ecx, [esp + 0x6c2]
push ebx
push ecx
mov word [esp + 0x6c8], bx
call fcn.1002fb20
add esp, 0xc
mov dword [esp + 0x28], 0x400
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], bx
push 0x39
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
lea esi, [esp + 0x58]
mov dword [esp + 0xad8], ebx
call fcn.100031f0
push 1
push 0x1003f190
mov ecx, esi
call fcn.10003120
lea eax, [esp + 0x2bc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100183e4
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x2c0]
push edx
lea ecx, [esp + 0x58]
call fcn.10003120
mov eax, dword [esp + 0x54]
mov edi, 8
cmp dword [esp + 0x68], edi
mov dword [esp + 0x14], ebx
jae 0x1001841c
lea eax, [esp + 0x54]
lea ecx, [esp + 0x14]
push ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10018668
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x6c0]
push ecx
push ebx
push ebx
push str.ServiceName
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10018482
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xad0], 0xffffffff
cmp dword [esp + 0x68], edi
jb 0x10018686
mov ecx, dword [esp + 0x54]
push ecx
jmp 0x1001867e
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
push 4
push str.._
lea esi, [esp + 0x3c]
mov byte [esp + 0xad8], 1
call fcn.100031f0
lea eax, [esp + 0x6bc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100184c0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x6c0]
push eax
lea ecx, [esp + 0x3c]
call fcn.10003120
cmp dword [esp + 0x4c], edi
mov eax, dword [esp + 0x38]
jae 0x100184ef
lea eax, [esp + 0x38]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x30], esi
je 0x10018644
push 0x1ff
lea eax, [esp + 0xc1]
push ebx
push eax
mov byte [esp + 0xc8], bl
call fcn.1002fb20
add esp, 0xc
push ebx
lea ecx, [esp + 0x30]
push ecx
push 0x200
lea edx, [esp + 0xc8]
push edx
push 4
lea eax, [esp + 0x38]
push eax
push 0x170002
push esi
mov dword [esp + 0x44], 0x1010101
mov dword [esp + 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, ebx
je 0x1001863d
push 0x48
lea ecx, [esp + 0x76]
push ebx
push ecx
mov dword [esp + 0x79], ebx
mov byte [esp + 0x7d], bl
call fcn.1002fb20
mov dx, word [esp + 0xcc]
movzx ecx, byte [esp + 0xcd]
mov eax, dword [esp + 0xc8]
add esp, 0xc
push ecx
mov word [esp + 0x74], dx
movzx edx, dl
push edx
mov ecx, eax
mov edx, eax
shr ecx, 0x18
push ecx
shr edx, 0x10
mov dword [esp + 0x78], eax
movzx ecx, dl
shr eax, 8
push ecx
movzx edx, al
movzx eax, byte [esp + 0xcc]
push edx
push eax
push 0x1003f258
mov ecx, 0x18
lea edi, [esp + 0x8e]
call fcn.10004080
movzx ecx, byte [esp + 0x8d]
movzx edx, byte [esp + 0x8c]
movzx eax, byte [esp + 0x8b]
add esp, 0x1c
push ecx
movzx ecx, byte [esp + 0x72]
push edx
movzx edx, byte [esp + 0x75]
push eax
movzx eax, byte [esp + 0x78]
push ecx
push edx
push eax
push str._0.2X__0.2X__0.2X__0.2X__0.2X__0.2X
mov eax, 0x30
lea edi, [esp + 0xa6]
call fcn.100040e0
mov esi, dword [esp + 0x3c]
add esp, 0x1c
lea eax, [esp + 0x6c]
call fcn.10018d60
mov esi, dword [esp + 0x30]
mov edi, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x4c], edi
jb 0x10018657
mov ecx, dword [esp + 0x38]
push ecx
call fcn.1002b322
add esp, 4
mov word [esp + 0x38], bx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], 7
mov dword [esp + 0xad0], 0xffffffff
cmp dword [esp + 0x68], edi
jb 0x10018686
mov edx, dword [esp + 0x54]
push edx
call fcn.1002b322
add esp, 4
mov esi, dword [esp + 0x1c]
add esi, 1
cmp esi, dword [esp + 0x18]
mov dword [esp + 0x1c], esi
jb 0x1001833f
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [esp + 0xac8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xab0]
xor ecx, esp
call fcn.1002b6af
mov esp, ebp
pop ebp
ret