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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb48
mov eax, dword [0x41d008]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
xor edi, edi
push 0x206
push eax
mov word [ebp - 0x720], ax
lea eax, [ebp - 0x71e]
push eax
mov dword [ebp - 0xb44], edi
mov dword [ebp - 0xb48], edi
call fcn.00406ff0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x310], ax
lea eax, [ebp - 0x30e]
push eax
call fcn.00406ff0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x928], ax
lea eax, [ebp - 0x926]
push eax
call fcn.00406ff0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xb30], ax
lea eax, [ebp - 0xb2e]
push eax
call fcn.00406ff0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x518], ax
lea eax, [ebp - 0x516]
push eax
call fcn.00406ff0
add esp, 0x3c
mov dword [ebp - 0xb3c], edi
lea eax, [ebp - 0xb44]
mov dword [ebp - 0xb34], edi
mov dword [ebp - 0xb38], 0x104
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x402cd0
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040596a
mov esp, ebp
pop ebp
ret 4
push ebx
push esi
xor ebx, ebx
lea eax, [ebp - 0xb38]
push ebx
push ebx
push ebx
push ebx
push eax
lea eax, [ebp - 0x928]
push eax
push ebx
push dword [ebp - 0xb44]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x402e69
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x402d10
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards_
lea eax, [ebp - 0x310]
push eax
call edi
lea eax, [ebp - 0x928]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0xb48]
push eax
lea eax, [ebp - 0x310]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x402e31
lea eax, [ebp - 0xb34]
mov dword [ebp - 0xb3c], 1
push eax
lea eax, [ebp - 0xb30]
mov dword [ebp - 0xb34], 0x104
push eax
lea eax, [ebp - 0xb3c]
push eax
push 0
push str.ServiceName
push dword [ebp - 0xb48]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xb48]
test eax, eax
jne 0x402e8f
call esi
push str.._
lea eax, [ebp - 0x518]
push eax
call edi
lea eax, [ebp - 0xb30]
push eax
lea eax, [ebp - 0x518]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
lea eax, [ebp - 0x518]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x402e2b
push 0
lea eax, [ebp - 0xb34]
mov dword [ebp - 0xb40], 0x1010101
push eax
push 0x104
lea eax, [ebp - 0x108]
push eax
push 4
lea eax, [ebp - 0xb40]
push eax
push 0x170002
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x402e93
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xb38]
mov dword [ebp - 0xb38], 0x104
push eax
lea eax, [ebp - 0x928]
inc ebx
push eax
push ebx
push dword [ebp - 0xb44]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x402d10
xor edi, edi
mov ecx, dword [ebp - 0xb44]
pop esi
pop ebx
test ecx, ecx
je 0x402e7c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0040596a
mov esp, ebp
pop ebp
ret 4
call esi
jmp 0x402e31
movzx eax, byte [ebp - 0x103]
push eax
movzx eax, byte [ebp - 0x104]
push eax
movzx eax, byte [ebp - 0x105]
push eax
movzx eax, byte [ebp - 0x106]
push eax
movzx eax, byte [ebp - 0x107]
push eax
movzx eax, byte [ebp - 0x108]
push eax
push str._02X:_02X:_02X:_02X:_02X:_02X
push 0xffffffffffffffff
lea eax, [ebp - 0x720]
push 0x104
push eax
call fcn.00406423
lea ecx, [ebp - 0x720]
add esp, 0x28
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402ee7
sub ecx, edx
lea eax, [ebp - 0x720]
sar ecx, 1
push ecx
push eax
mov ecx, 0x41f51c
call fcn.00402050
mov edi, 1
jmp 0x402e69