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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542fa9
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x5ac020]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x154], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0
call fcn.0045dcd0
mov dword [ebp - 0x140], eax
mov dword [ebp - 4], 4
lea eax, [ebp - 0x148]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45ca76
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea eax, [ebp - 0x54]
push 0x19
push eax
xor edi, edi
push edi
push dword [ebp - 0x148]
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x45ca6e
push 0x3a
xor eax, eax
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
lea ecx, [ebp - 0x138]
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards_
inc edi
mov dword [ebp - 0x124], 7
mov dword [ebp - 0x128], 0
mov word [ebp - 0x138], ax
call fcn.00401f10
mov byte [ebp - 4], 5
cmp word [ebp - 0x54], 0
jne 0x45c924
xor eax, eax
jmp 0x45c93f
lea eax, [ebp - 0x54]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45c930
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x138]
call fcn.0040e600
cmp dword [ebp - 0x124], 8
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
lea eax, [ebp - 0x138]
cmovae eax, dword [ebp - 0x138]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45ca1f
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x64
push eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x14c], 1
push eax
lea eax, [ebp - 0x14c]
push eax
push 0
push str.ServiceName
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45ca1a
lea eax, [ebp - 0x54]
push eax
call fcn.005012d5
add esp, 4
mov dword [ebp - 0x144], eax
lea eax, [ebp - 0x144]
lea ecx, [ebp - 0x140]
push eax
call fcn.0045d7d0
cmp word [ebp - 0x120], 0
mov esi, eax
jne 0x45c9ed
xor ecx, ecx
jmp 0x45ca05
lea ecx, [ebp - 0x120]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45c9f6
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x120]
mov ecx, esi
push eax
call fcn.00401f10
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push dword [ebp - 0x18]
call ebx
mov byte [ebp - 4], 4
cmp dword [ebp - 0x124], 8
jb 0x45ca3a
push dword [ebp - 0x138]
call fcn.0051d3d0
add esp, 4
xor eax, eax
mov dword [ebp - 0x124], 7
push 0x19
mov word [ebp - 0x138], ax
lea eax, [ebp - 0x54]
push eax
push edi
push dword [ebp - 0x148]
mov dword [ebp - 0x128], 0
call esi
test eax, eax
je 0x45c8d1
push dword [ebp - 0x148]
call ebx
cmp dword [ebp - 0x13c], 0
je 0x45cbdf
mov eax, dword [ebp - 0x140]
mov esi, dword [eax]
cmp esi, eax
je 0x45cbc7
lea ebx, [esi + 0x14]
jmp 0x45caa0
push 4
xor eax, eax
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
lea ecx, [ebp - 0x138]
push 0x5785d8
mov dword [ebp - 0x124], 7
mov dword [ebp - 0x128], 0
mov word [ebp - 0x138], ax
call fcn.00401f10
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x138]
push 0xffffffffffffffff
push 0
push ebx
call fcn.0040e530
cmp dword [ebp - 0x124], 8
lea eax, [ebp - 0x138]
push 0
cmovae eax, dword [ebp - 0x138]
push 0
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x45cb83
xor eax, eax
mov dword [ebp - 0x144], 0x1010102
push eax
mov dword [ebp - 0x18], eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x14c]
push eax
push 6
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp - 0x144]
push eax
push 0x170002
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x20]
mov eax, dword [ecx]
lea edx, [ebp - 0x18]
cmp eax, dword [edx]
jne 0x45cc38
movzx eax, word [ecx + 4]
cmp ax, word [edx + 4]
jne 0x45cc38
mov byte [ebp - 4], 4
cmp dword [ebp - 0x124], 8
jb 0x45cb9e
push dword [ebp - 0x138]
call fcn.0051d3d0
add esp, 4
xor eax, eax
mov dword [ebp - 0x124], 7
mov dword [ebp - 0x128], 0
mov word [ebp - 0x138], ax
cmp esi, dword [ebp - 0x140]
jne 0x45caa0
mov ecx, dword [ebp - 0x154]
mov eax, dword [ebp - 0x150]
mov dword [ecx], 0
mov dword [eax], 0
xor esi, esi
mov dword [ebp - 4], 0x10
lea ecx, [ebp - 0x140]
mov eax, dword [ebp - 0x140]
push eax
push dword [eax]
lea eax, [ebp - 0x144]
push eax
call fcn.0045d8c0
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x140]
call fcn.0051d3d0
add esp, 4
mov eax, esi
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.004ffcef
mov esp, ebp
pop ebp
ret 8
push 0xe6
push str.HardwareID.cpp
push 1
push 6
call fcn.00500b6a
mov ecx, dword [ebp - 0x154]
add esp, 0x10
mov dword [ecx], eax
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov cx, word [ebp - 0x1c]
mov word [eax + 4], cx
mov eax, dword [ebp - 0x150]
mov dword [eax], 6
mov byte [ebp - 4], 4
cmp dword [ebp - 0x124], 8
jb 0x45cc8a
push dword [ebp - 0x138]
call fcn.0051d3d0
add esp, 4
xor eax, eax
mov dword [ebp - 0x124], 7
mov dword [ebp - 0x128], 0
mov word [ebp - 0x138], ax
lea esi, [eax + 1]
jmp 0x45cbe1