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

Disassembly:
sub esp, 0x128
mov eax, dword [0x4382c4]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov eax, 0x100
push 0xff
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x35]
push ebx
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x38], 1
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x3c], bl
call fcn.00420f50
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b7ee
mov ecx, dword [esp + 0x10]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x38]
push eax
push ebx
push ebx
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp eax, ebx
je 0x40b804
push eax
push str.IsLocalAdapter_OPEN_NetworkCards_failed__error_num_is___d_
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 8
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40b7fd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x40b949
mov edx, dword [esp + 0x18]
add edx, 1
push edx
call fcn.0041ae22
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x40b7ee
mov eax, dword [esp + 0x18]
add eax, 1
push eax
push ebx
push esi
call fcn.00420f50
add esp, 0xc
xor edi, edi
cmp dword [esp + 0x1c], ebx
jle 0x40b92d
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edi, edi
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x30]
push edx
push esi
push edi
add ecx, 1
push eax
mov dword [esp + 0x40], ecx
call ebp
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40b8dd
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x34]
push edx
push ebx
push str.ServiceName
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40b8d0
mov eax, dword [esp + 0x13c]
lea ecx, [esp + 0x30]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b8c7
cmp dl, bl
je 0x40b8c3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b8c7
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x40b8a7
xor eax, eax
jmp 0x40b8cc
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40b8ff
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40b8f0
push eax
push str.IsLocalAdapter_OPEN_lpszKeyName_failed__error_num_is___d_
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 8
add edi, 1
cmp edi, dword [esp + 0x1c]
jl 0x40b840
jmp 0x40b92d
lea edx, [esp + 0x30]
push edx
push str.IsLocalAdapter_ServiceName_is___s_
mov ecx, 0x43b48c
call fcn.0040a090
mov eax, dword [esp + 0x1c]
add esp, 8
push eax
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
push esi
call fcn.0041b96e
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, ebx
je 0x40b945
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041aec3
add esp, 0x128
ret