Function at 0x4218e0
Capabilities:
Get mac address on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56ed2b
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x5b8250]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push 0x288
call fcn.0051d4c8
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
add esp, 4
mov edi, eax
mov dword [ebp - 0x178], 0x288
lea eax, [ebp - 0x178]
mov dword [ebp - 0x17c], edi
push eax
push edi
call esi
cmp eax, 0x6f
jne 0x42197d
mov eax, dword [ebp - 0x178]
dec eax
cmp eax, 0xfffe
ja 0x421b90
push edi
call fcn.00538881
push dword [ebp - 0x178]
call fcn.0051d4c8
add esp, 8
mov edi, eax
lea eax, [ebp - 0x178]
mov dword [ebp - 0x17c], edi
push eax
push edi
call esi
test eax, eax
jne 0x421b90
cmp dword [ebp - 0x17c], eax
je 0x421b90
lea esi, [edi + 8]
test esi, esi
je 0x421b86
cmp byte [esi], 0
je 0x421b86
push 0x50
push str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_
lea ecx, [ebp - 0x174]
mov dword [ebp - 0x160], 0xf
mov dword [ebp - 0x164], 0
mov byte [ebp - 0x174], 0
call fcn.004072b0
mov dword [ebp - 4], 0
cmp byte [esi], 0
jne 0x4219e2
xor ecx, ecx
jmp 0x4219f0
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4219e7
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x174]
call fcn.0040eed0
push 0xb
push str.Connection
lea ecx, [ebp - 0x174]
call fcn.0040eed0
push 0x104
lea eax, [ebp - 0x15b]
mov dword [ebp - 0x180], 1
push 0
push eax
mov dword [ebp - 0x184], 0x104
mov byte [ebp - 0x15c], 0
call fcn.005392b0
add esp, 0xc
lea ecx, [ebp - 0x184]
cmp dword [ebp - 0x160], 0x10
lea eax, [ebp - 0x174]
cmovae eax, dword [ebp - 0x174]
push ecx
lea ecx, [ebp - 0x15c]
push ecx
lea ecx, [ebp - 0x180]
push ecx
push str.PnPInstanceId
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
push 3
lea eax, [ebp - 0x15c]
push 0x593e78
push eax
call fcn.00542292
add esp, 0xc
test eax, eax
je 0x421ab2
push 3
lea eax, [ebp - 0x15c]
push 0x593e7c
push eax
call fcn.00542292
add esp, 0xc
test eax, eax
jne 0x421b68
cmp dword [ebx + 0x10], 0
je 0x421ac6
push 1
push 0x593e80
mov ecx, ebx
call fcn.0040eed0
xor esi, esi
cmp dword [edi + 0x190], esi
jbe 0x421b44
push 0x3f
lea eax, [ebp - 0x53]
mov byte [ebp - 0x54], 0
push 0
push eax
call fcn.005392b0
movzx eax, byte [edi + esi + 0x194]
push eax
push str._.2X
lea eax, [ebp - 0x54]
push 0x40
push eax
call fcn.00541b88
add esp, 0x1c
cmp byte [ebp - 0x54], 0
jne 0x421b07
xor eax, eax
jmp 0x421b19
lea eax, [ebp - 0x54]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x421b10
sub eax, edx
push eax
lea eax, [ebp - 0x54]
mov ecx, ebx
push eax
call fcn.0040eed0
cmp esi, dword [edi + 0x190]
jae 0x421b3b
push 1
push 0x593e8c
mov ecx, ebx
call fcn.0040eed0
inc esi
cmp esi, dword [edi + 0x190]
jb 0x421ad0
cmp byte [edi + 8], 0
lea edx, [edi + 8]
jne 0x421b51
xor ecx, ecx
jmp 0x421b5f
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x421b56
sub ecx, esi
push ecx
push edx
mov ecx, ebx
call fcn.0040eed0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x160], 0x10
jb 0x421b86
push dword [ebp - 0x174]
call fcn.005385cc
add esp, 4
mov edi, dword [edi]
test edi, edi
jne 0x421991
push dword [ebp - 0x17c]
call fcn.00538881
xor eax, eax
add esp, 4
cmp dword [ebx + 0x10], eax
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret 4