Function at 0x40a600
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x431fc8
push eax
mov dword fs:[0], esp
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
xor edi, edi
cmp ebp, edi
je 0x40a73b
mov ebx, dword [esp + 0x24]
cmp ebx, edi
je 0x40a73b
mov esi, dword [esp + 0x28]
cmp esi, edi
je 0x40a73b
push str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_
lea ecx, [esp + 0x24]
call fcn.00431b90
push ebp
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], edi
call sub.MFC42.DLL_CString::operator
push str.Connection
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x24]
push eax
push 0x20019
push edi
push ecx
push reloc.WS2_32.dll_bind
mov dword [esp + 0x38], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
je 0x40a750
cmp dword [0x441ff4], edi
je 0x40a72a
mov edx, dword [0x441fd4]
mov eax, dword [edx]
cmp eax, 1
je 0x40a6b8
mov ecx, dword [0x441fdc]
cmp dword [ecx], edi
jne 0x40a72a
cmp eax, 1
jle 0x40a72a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call esi
mov ebp, eax
mov eax, dword [0x436030]
cmp eax, edi
jge 0x40a6df
mov edx, dword [0x441fa0]
mov dword [0x436030], edx
call fcn.0041c4b1
test eax, eax
je 0x40a71c
mov eax, dword [0x436030]
push 1
push eax
push 0x98d
push str.C:_build_rel_sp_8_4_6_2_srcwindows_atpclient_arr_srvsAdaptCof.cpp
call fcn.0041c4e1
mov edi, dword [esp + 0x30]
add esp, 0x10
call esi
push eax
push edi
push str.Adapter_GetConnectionNameByNetCfgId__RegOpenKeyExA__s_error__d_n
call fcn.0041c506
add esp, 0xc
call fcn.0041c4cc
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x24]
push esi
push ebx
push edi
push edi
push str.Name
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x24]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x40a7fc
cmp dword [0x441ff4], edi
je 0x40a72a
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 1
je 0x40a79c
mov ecx, dword [0x441fdc]
cmp dword [ecx], edi
jne 0x40a72a
cmp eax, 1
jle 0x40a72a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call esi
mov ebp, eax
mov eax, dword [0x436030]
cmp eax, edi
jge 0x40a7c3
mov edx, dword [0x441fa0]
mov dword [0x436030], edx
call fcn.0041c4b1
test eax, eax
je 0x40a71c
mov eax, dword [0x436030]
push 1
push eax
push 0x99c
push str.C:_build_rel_sp_8_4_6_2_srcwindows_atpclient_arr_srvsAdaptCof.cpp
call fcn.0041c4e1
mov edi, dword [esp + 0x30]
add esp, 0x10
call esi
push eax
push edi
push str.Adapter_GetConnectionNameByNetCfgId__RegQueryValueExA__s::Name_error__d_n
jmp 0x40a70f
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret