Function at 0x410480
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x314
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x119]
mov byte [esp + 0x118], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x118]
push eax
call dword [sym.imp.arr_inst.dll_int___cdecl_GetAdapterSerialID_char__]
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x410731
mov eax, dword [0x441ff4]
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41055a
mov ecx, dword [0x441fd4]
mov eax, dword [ecx]
cmp eax, 3
je 0x4104f6
mov edx, dword [0x441fdc]
cmp dword [edx], 0
jne 0x41055a
cmp eax, 3
jle 0x41055a
call ebp
mov esi, eax
call ebx
mov edi, eax
mov eax, dword [0x436030]
test eax, eax
jge 0x410511
mov eax, dword [0x441fa0]
mov dword [0x436030], eax
call fcn.0041c4b1
test eax, eax
je 0x41054c
mov ecx, dword [0x436030]
push 3
push ecx
push 0xef4
push str.C:_build_rel_sp_8_4_6_2_srcwindows_atpclient_arr_srvsAdaptCof.cpp
call fcn.0041c4e1
lea edx, [esp + 0x12c]
push edx
push str.GetAdapterSerialID_success__the_ID_is__s._n
call fcn.0041c506
add esp, 0x18
call fcn.0041c4cc
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x221]
mov byte [esp + 0x220], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x11c]
lea ecx, [esp + 0x220]
push eax
push str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_sConnection
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x220]
push edx
push eax
push 0
push str.Name
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov dword [esp + 0x10], eax
mov eax, dword [0x441ff4]
test eax, eax
je 0x410669
mov edx, dword [0x441fd4]
mov eax, dword [edx]
cmp eax, 3
je 0x4105fa
mov ecx, dword [0x441fdc]
cmp dword [ecx], 0
jne 0x410669
cmp eax, 3
jle 0x410669
call ebp
mov esi, eax
call ebx
mov edi, eax
mov eax, dword [0x436030]
test eax, eax
jge 0x410617
mov edx, dword [0x441fa0]
mov dword [0x436030], edx
call fcn.0041c4b1
test eax, eax
je 0x41065b
mov eax, dword [0x436030]
push 3
push eax
push 0xf00
push str.C:_build_rel_sp_8_4_6_2_srcwindows_atpclient_arr_srvsAdaptCof.cpp
call fcn.0041c4e1
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x28]
push ecx
lea eax, [esp + 0x130]
push edx
push eax
push str.EnableArrayVirtualAdapter:_RegBuff_is__s__nRet_is__d__name_is__s._n
call fcn.0041c506
add esp, 0x20
call fcn.0041c4cc
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x410693
lea ecx, [esp + 0x18]
push ecx
call fcn.004107d0
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x314
ret
mov eax, dword [0x441ff4]
test eax, eax
je 0x410724
mov edx, dword [0x441fd4]
mov eax, dword [edx]
cmp eax, 2
je 0x4106bd
mov ecx, dword [0x441fdc]
cmp dword [ecx], 0
jne 0x410724
cmp eax, 2
jle 0x410724
call ebp
mov esi, eax
call ebx
mov edi, eax
mov eax, dword [0x436030]
test eax, eax
jge 0x4106da
mov edx, dword [0x441fa0]
mov dword [0x436030], edx
call fcn.0041c4b1
test eax, eax
je 0x410716
mov eax, dword [0x436030]
push 2
push eax
push 0xf07
push str.C:_build_rel_sp_8_4_6_2_srcwindows_atpclient_arr_srvsAdaptCof.cpp
call fcn.0041c4e1
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x28]
push ecx
push edx
push str.Get_adapter_connection_name_failed__the_ret_is__d__the_name_is__s._n
call fcn.0041c506
add esp, 0x1c
call fcn.0041c4cc
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x314
ret
mov eax, dword [0x441ff4]
test eax, eax
je 0x4107c0
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 2
je 0x41075a
mov ecx, dword [0x441fdc]
cmp dword [ecx], 0
jne 0x4107c0
cmp eax, 2
jle 0x4107c0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x436030]
test eax, eax
jge 0x41077f
mov edx, dword [0x441fa0]
mov dword [0x436030], edx
call fcn.0041c4b1
test eax, eax
je 0x4107b2
mov eax, dword [0x436030]
push 2
push eax
push 0xef8
push str.C:_build_rel_sp_8_4_6_2_srcwindows_atpclient_arr_srvsAdaptCof.cpp
call fcn.0041c4e1
push ebp
push str.GetAdapterSerialID_failed__the_error:_d_n
call fcn.0041c506
add esp, 0x18
call fcn.0041c4cc
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x314
ret