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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x39c
mov eax, dword [0x5023a4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
mov dword [ebp - 0x39c], ecx
push 0x104
lea eax, [ebp - 0x174]
mov dword [ebp - 0x394], edi
push edi
push eax
call fcn.0049b560
add esp, 0xc
lea eax, [ebp - 0x394]
push eax
push 8
push edi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4991d1
mov eax, dword [ebp - 0x394]
test eax, eax
je 0x4991d1
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x380], 0x104
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x380]
push ecx
lea ecx, [ebp - 0x174]
push ecx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4991c7
nop dword [eax]
lea eax, [ebp - 0x398]
push eax
push 1
push 0
lea eax, [ebp - 0x174]
push eax
push dword [ebp - 0x394]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x499100
push 0x104
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.0049b560
add esp, 0xc
mov dword [ebp - 0x384], 0x104
lea eax, [ebp - 0x384]
mov dword [ebp - 0x388], 1
push eax
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x388]
push eax
push 0
push str.ServiceName
push dword [ebp - 0x398]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4990f8
push 0x104
push eax
lea eax, [ebp - 0x37c]
push eax
call fcn.0049b560
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x37c]
push str.._s
push eax
call fcn.00498ab0
push 0x64
lea eax, [ebp - 0x70]
mov dword [ebp - 0x38c], 0x1010101
xorps xmm0, xmm0
push 0
push eax
movlpd qword [ebp - 0xc], xmm0
call fcn.0049b560
add esp, 0x24
lea eax, [ebp - 0x37c]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x499131
push dword [ebp - 0x398]
call ebx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x380]
inc esi
push eax
lea eax, [ebp - 0x174]
push eax
push esi
push dword [ebp - 0x394]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x499010
jmp 0x4991c7
push 0
lea ecx, [ebp - 0x390]
push ecx
push 8
lea ecx, [ebp - 0xc]
push ecx
push 4
lea ecx, [ebp - 0x38c]
push ecx
push 0x170002
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4991ae
movzx eax, byte [ebp - 7]
push eax
movzx eax, byte [ebp - 8]
push eax
movzx eax, byte [ebp - 9]
push eax
movzx eax, byte [ebp - 0xa]
push eax
movzx eax, byte [ebp - 0xb]
push eax
movzx eax, byte [ebp - 0xc]
push eax
lea eax, [ebp - 0x70]
push str._02X_02X_02X_02X_02X_02X
push eax
call fcn.00410e30
lea ecx, [ebp - 0x70]
add esp, 0x20
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x499190
mov esi, dword [ebp - 0x39c]
lea eax, [ebp - 0x70]
sub ecx, edx
push ecx
push eax
lea ecx, [esi + 0x18]
call fcn.00402a10
jmp 0x4991b4
mov esi, dword [ebp - 0x39c]
push dword [ebp - 0x398]
call ebx
cmp dword [esi + 0x28], edi
mov eax, 1
cmovne edi, eax
push dword [ebp - 0x394]
call ebx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0049765c
mov esp, ebp
pop ebp
ret