Function at 0x4b8e30
Capabilities:
Get local ipv4 addresses
Get mac address on windows
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1b0
mov dword [esp + 0x18], 0x3c00
mov dword [esp + 0x10], 0
mov eax, dword [0xaaa68c]
push 0x3c00
call dword [eax]
add esp, 4
test eax, eax
je 0x4b93dd
mov ebx, eax
push 0x250
mov eax, dword [0xaaa68c]
call dword [eax]
add esp, 4
test eax, eax
je 0x4b8ecb
mov esi, eax
lea edi, [esp + 0x18]
push edi
push ebx
push 0
push 0
push 0
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
test eax, eax
je 0x4b8f37
cmp eax, 0x6f
jne 0x4b93a3
mov eax, dword [esp + 0x18]
cmp eax, 0x3c01
jb 0x4b8edb
mov ecx, dword [0xaaa690]
push eax
push ebx
call dword [ecx]
add esp, 8
test eax, eax
je 0x4b93a3
mov ecx, dword [esp + 0x18]
mov dword [esp + 8], ecx
mov ebx, eax
jmp 0x4b8ee3
mov eax, dword [0xaaa684]
push ebx
call dword [eax]
add esp, 4
jmp 0x4b93dd
mov dword [esp + 8], 0x3c00
push edi
push ebx
push 0
push 0
push 0
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
cmp eax, 0x6f
jne 0x4b8f2f
mov eax, dword [esp + 0x18]
cmp dword [esp + 8], eax
jae 0x4b8f15
mov ecx, dword [0xaaa690]
push eax
push ebx
call dword [ecx]
add esp, 8
test eax, eax
jne 0x4b8f17
jmp 0x4b93a3
mov eax, ebx
push edi
mov ebx, eax
push eax
push 0
push 0
push 0
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
cmp eax, 0x6f
je 0x4b93a3
test eax, eax
jne 0x4b93a3
mov dword [esp + 0x14], 4
xor ecx, ecx
xorps xmm2, xmm2
mov dword [esp + 0x24], ebx
mov edx, ebx
jmp 0x4b8f5f
mov edx, dword [esp + 0x1c]
mov edx, dword [edx + 8]
test edx, edx
je 0x4b926d
cmp dword [edx + 0x44], 1
mov dword [esp + 0x1c], edx
jne 0x4b8f50
mov ebx, dword [edx + 0x1c]
test ebx, ebx
je 0x4b8f50
add edx, 0xb0
mov dword [esp + 0x2c], edx
mov edi, esi
jmp 0x4b8f9b
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x14], ecx
nop word cs:[eax + eax]
mov esi, edi
mov ebx, dword [ebx + 8]
mov edi, esi
test ebx, ebx
je 0x4b8f50
movaps xmmword [esp + 0x60], xmm2
movaps xmmword [esp + 0x50], xmm2
movaps xmmword [esp + 0x40], xmm2
movaps xmmword [esp + 0x30], xmm2
mov byte [esp + 0x70], 0
mov esi, dword [ebx + 0xc]
movzx eax, word [esi]
cmp eax, 0x17
je 0x4b9010
cmp eax, 2
jne 0x4b8f90
mov eax, dword [esi + 4]
inc eax
cmp eax, 2
jb 0x4b8f90
cmp ecx, dword [esp + 0x14]
mov dword [esp + 0xc], ecx
jne 0x4b9182
lea eax, [ecx + 4]
mov dword [esp + 0x14], eax
imul eax, eax, 0x94
push eax
push edi
mov eax, dword [0xaaa690]
call dword [eax]
add esp, 8
test eax, eax
jne 0x4b9184
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x14], ecx
mov esi, edi
jmp 0x4b9258
movdqu xmm0, xmmword [esi + 8]
mov eax, dword [0xaaa688]
movdqu xmm1, xmmword [eax]
pcmpeqb xmm1, xmm0
pmovmskb eax, xmm1
cmp eax, 0xffff
je 0x4b8f90
cmp ecx, dword [esp + 0x14]
mov dword [esp + 0xc], ecx
jne 0x4b9060
lea eax, [ecx + 4]
mov dword [esp + 0x14], eax
imul eax, eax, 0x94
push eax
push edi
mov eax, dword [0xaaa690]
call dword [eax]
xorps xmm2, xmm2
add esp, 8
test eax, eax
jne 0x4b9062
jmp 0x4b8f7e
mov eax, edi
mov dword [esp + 8], eax
lea ecx, [esi + 8]
lea eax, [esp + 0x98]
movups xmmword [eax], xmm2
mov dword [esp + 0x94], 0x17
mov dword [esp + 0x20], ecx
movdqu xmm0, xmmword [ecx]
movdqu xmmword [eax], xmm0
lea eax, [esp + 0x94]
push eax
call fcn.004b9ef0
add esp, 4
test eax, eax
je 0x4b90ab
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x48]
mov dword [esp + 0x28], ecx
jmp 0x4b90b7
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0xac]
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0xac]
push eax
push 0
push esi
push 0
push 0
push dword [esp + 0x44]
call sub.IPHLPAPI.DLL_GetBestRoute2
mov ecx, dword [esp + 0xfc]
cmp ecx, 0xffffffff
sete dl
add edi, ecx
setb cl
or cl, dl
test cl, 1
mov ecx, 0xffffffff
cmovne edi, ecx
neg eax
mov eax, 0
sbb eax, eax
or eax, edi
mov ecx, dword [esp + 0xc]
imul edi, ecx, 0x94
mov edx, dword [esp + 8]
mov dword [edx + edi], eax
mov dword [edx + edi + 4], ecx
push 0x41
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x28]
push 0x17
call fcn.004bbb80
add esp, 0x10
test eax, eax
je 0x4b9250
add edi, dword [esp + 8]
add edi, 8
movzx eax, word [esi + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x4b9223
sub esp, 0x18
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x48]
mov dword [esp + 0xc], eax
mov dword [esp], edi
mov dword [esp + 8], str.__s_:_u___u
call fcn.004b9b70
add esp, 0x18
jmp 0x4b9245
mov eax, edi
mov dword [esp + 8], eax
lea ecx, [esi + 4]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x1c]
mov edi, dword [ecx + 0xa8]
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0xac]
push ecx
push 0
push esi
push 0
push 0
push dword [esp + 0x44]
call sub.IPHLPAPI.DLL_GetBestRoute2
mov ecx, dword [esp + 0xfc]
cmp ecx, 0xffffffff
sete dl
add edi, ecx
setb cl
or cl, dl
test cl, 1
mov ecx, 0xffffffff
cmovne edi, ecx
neg eax
mov eax, 0
sbb eax, eax
or eax, edi
mov ecx, dword [esp + 0xc]
imul edi, ecx, 0x94
mov edx, dword [esp + 8]
mov dword [edx + edi], eax
mov dword [edx + edi + 4], ecx
push 0x41
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x28]
push 2
call fcn.004bbb80
add esp, 0x10
test eax, eax
je 0x4b9250
add edi, dword [esp + 8]
add edi, 8
movzx eax, word [esi + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
sub esp, 0x14
mov dword [esp + 0x10], eax
lea eax, [esp + 0x44]
mov dword [esp + 0xc], eax
mov dword [esp], edi
mov dword [esp + 8], str.__s_:_u
call fcn.004b9b70
add esp, 0x14
mov ecx, dword [esp + 0xc]
inc ecx
mov esi, dword [esp + 8]
jmp 0x4b9258
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0xc]
xorps xmm2, xmm2
mov ebx, dword [ebx + 8]
mov edi, esi
test ebx, ebx
jne 0x4b8f9b
jmp 0x4b8f50
push 0x4b9ba0
push 0x94
push ecx
push esi
mov dword [esp + 0x1c], ecx
call sub.api_ms_win_crt_utility_l1_1_0.dll_qsort
add esp, 0x10
cmp dword [esp + 0xc], 0
je 0x4b939f
mov dword [esp + 8], esi
lea eax, [esi + 8]
mov dword [esp + 0x20], eax
xor eax, eax
jmp 0x4b92bd
push dword [esp + 0x1c]
push ebx
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strncat
add esp, 0xc
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [esp + 0xc]
je 0x4b9395
mov esi, 0
test eax, eax
mov dword [esp + 0x14], eax
je 0x4b9304
imul eax, eax, 0x94
mov ecx, dword [esp + 8]
lea edi, [ecx + eax]
add edi, 8
xor esi, esi
mov ebx, dword [esp + 0x20]
push edi
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x4b9300
inc esi
add ebx, 0x94
mov eax, dword [esp + 0x14]
cmp eax, esi
jne 0x4b92e0
jmp 0x4b9308
mov eax, dword [esp + 0x14]
cmp esi, eax
jne 0x4b92b2
imul eax, eax, 0x94
mov ecx, dword [esp + 8]
lea ebx, [ecx + eax]
add ebx, 8
push ebx
call fcn.004c6280
add esp, 4
mov esi, eax
mov edi, dword [esp + 0x10]
test edi, edi
je 0x4b9340
push edi
call fcn.004c6280
add esp, 4
add eax, 2
jmp 0x4b9345
mov eax, 1
mov dword [esp + 0x1c], esi
add eax, esi
push eax
push edi
mov eax, dword [0xaaa690]
call dword [eax]
add esp, 8
mov esi, eax
test eax, eax
mov eax, dword [esp + 0x14]
je 0x4b92b2
test edi, edi
jne 0x4b936c
mov byte [esi], 0
mov dword [esp + 0x10], esi
push esi
call fcn.004c6280
add esp, 4
test eax, eax
je 0x4b92a0
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov word [esi + eax], 0x2c
jmp 0x4b92a0
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 8]
jmp 0x4b93a3
mov ebx, dword [esp + 0x24]
mov edi, dword [0xaaa684]
push esi
call dword [edi]
add esp, 4
push ebx
call dword [edi]
add esp, 4
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x4b93dd
push 1
push ebx
push dword [ebp + 8]
call fcn.004ba220
add esp, 0xc
mov esi, eax
push ebx
call dword [edi]
mov eax, esi
add esp, 4
test esi, esi
jne 0x4b9b65
mov dword [esp + 0x10], 0
call fcn.004cb500
cmp eax, 3
jne 0x4b9b63
lea edi, [esp + 0x78]
push edi
push 0x20019
push 0
push 0x98eab7
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4b9560
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x30], 0
mov dword [esp + 0x10], 0
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0
push str.SearchList
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
sete cl
cmp eax, 0xea
sete dl
or dl, cl
mov eax, dword [esp + 0x30]
test eax, eax
setne cl
and cl, dl
cmp cl, 1
jne 0x4b94bc
inc eax
push eax
mov eax, dword [0xaaa68c]
call dword [eax]
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x4b94bc
mov esi, eax
lea eax, [esp + 0x30]
push eax
push esi
push 0
push 0
push str.SearchList
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
setne cl
mov eax, dword [esp + 0x30]
cmp eax, 1
sete dl
or dl, cl
cmp dl, 1
jne 0x4b94b8
mov eax, dword [0xaaa684]
push esi
call dword [eax]
add esp, 4
mov dword [esp + 0x10], 0
jmp 0x4b94bc
mov byte [esi + eax], 0
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x30], 0
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0
push 0x98eaf5
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
sete cl
cmp eax, 0xea
sete dl
or dl, cl
mov eax, dword [esp + 0x30]
test eax, eax
setne cl
and cl, dl
cmp cl, 1
jne 0x4b9556
inc eax
push eax
mov eax, dword [0xaaa68c]
call dword [eax]
add esp, 4
test eax, eax
je 0x4b9556
mov esi, eax
lea eax, [esp + 0x30]
push eax
push esi
push 0
push 0
push 0x98eaf5
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
setne cl
mov eax, dword [esp + 0x30]
cmp eax, 1
sete dl
or dl, cl
cmp dl, 1
je 0x4b954b
mov byte [esi + eax], 0
lea ecx, [esp + 0x10]
mov edx, esi
call fcn.004b9bd0
mov eax, dword [0xaaa684]
push esi
call dword [eax]
add esp, 4
push dword [esp + 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push 0x20019
push 0
push str.SoftwarePoliciesMicrosoftWindows_NTDNSClient
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4b9624
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x30], 0
lea edi, [esp + 0x30]
push edi
push 0
push 0
push 0
push str.SearchList
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
sete cl
cmp eax, 0xea
sete dl
or dl, cl
mov eax, dword [esp + 0x30]
test eax, eax
setne cl
and cl, dl
cmp cl, 1
jne 0x4b9616
inc eax
push eax
mov eax, dword [0xaaa68c]
call dword [eax]
add esp, 4
test eax, eax
je 0x4b9616
mov esi, eax
push edi
push eax
push 0
push 0
push str.SearchList
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
setne cl
mov eax, dword [esp + 0x30]
cmp eax, 1
sete dl
or dl, cl
cmp dl, 1
je 0x4b960b
mov byte [esi + eax], 0
lea ecx, [esp + 0x10]
mov edx, esi
call fcn.004b9bd0
mov eax, dword [0xaaa684]
push esi
call dword [eax]
add esp, 4
push dword [esp + 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esp + 0x78]
push edi
push 0x20019
push 0
push str.SoftwarePoliciesMicrosoftSystemDNSClient
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4b96e8
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x30], 0
lea edi, [esp + 0x30]
push edi
push 0
push 0
push 0
push str.PrimaryDNSSuffix
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
sete cl
cmp eax, 0xea
sete dl
or dl, cl
mov eax, dword [esp + 0x30]
test eax, eax
setne cl
and cl, dl
cmp cl, 1
jne 0x4b96da
inc eax
push eax
mov eax, dword [0xaaa68c]
call dword [eax]
add esp, 4
test eax, eax
je 0x4b96da
mov esi, eax
push edi
push eax
push 0
push 0
push str.PrimaryDNSSuffix
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
setne cl
mov eax, dword [esp + 0x30]
cmp eax, 1
sete dl
or dl, cl
cmp dl, 1
je 0x4b96cf
mov byte [esi + eax], 0
lea ecx, [esp + 0x10]
mov edx, esi
call fcn.004b9bd0
mov eax, dword [0xaaa684]
push esi
call dword [eax]
add esp, 4
push dword [esp + 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esp + 0x78]
push edi
push 0x20019
push 0
push str.SystemCurrentControlSetServicesTcpipParametersInterfaces
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4b9746
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4b9b63
mov edi, dword [ebp + 8]
lea eax, [edi + 0x10]
push eax
push 0x98eaa0
push esi
call fcn.004c66e0
add esp, 0xc
mov dword [edi + 0xc], eax
mov eax, dword [0xaaa684]
push esi
call dword [eax]
add esp, 4
xor ecx, ecx
cmp dword [edi + 0xc], 0
mov eax, 0xe
cmovne eax, ecx
jmp 0x4b9b65
mov dword [esp + 0x18], 0x100
mov eax, dword [esp + 0x78]
sub esp, 0x20
pxor xmm0, xmm0
movdqu xmmword [esp + 0x10], xmm0
lea esi, [esp + 0x38]
mov dword [esp + 0xc], esi
lea ebx, [esp + 0xc8]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4b9b4d
mov edi, 1
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
jmp 0x4b9806
push dword [esp + 0xc]
push esi
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strncat
add esp, 0xc
mov dword [esp + 8], ebx
push esi
mov eax, dword [0xaaa684]
call dword [eax]
add esp, 4
lea esi, [esp + 0x18]
lea ebx, [esp + 0xa8]
push dword [esp + 0x94]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], 0x100
mov eax, dword [esp + 0x78]
sub esp, 0x20
pxor xmm0, xmm0
movdqu xmmword [esp + 0x10], xmm0
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
inc edi
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4b9b45
lea eax, [esp + 0x94]
push eax
push 1
push 0
push ebx
push dword [esp + 0x88]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4b97cf
mov ebx, dword [esp + 0x94]
mov dword [esp + 0x30], 0
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0
push str.SearchList
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
sete cl
cmp eax, 0xea
sete dl
or dl, cl
mov eax, dword [esp + 0x30]
test eax, eax
setne cl
and cl, dl
cmp cl, 1
jne 0x4b9933
inc eax
push eax
mov eax, dword [0xaaa68c]
call dword [eax]
add esp, 4
test eax, eax
je 0x4b9933
mov esi, eax
lea eax, [esp + 0x30]
push eax
push esi
push 0
push 0
push str.SearchList
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
setne cl
mov eax, dword [esp + 0x30]
cmp eax, 1
sete dl
or dl, cl
cmp dl, 1
je 0x4b9928
mov byte [esi + eax], 0
push esi
call fcn.004c6280
add esp, 4
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x4b98d6
push ebx
call fcn.004c6280
add esp, 4
add eax, 2
jmp 0x4b98db
mov eax, 1
add eax, dword [esp + 0xc]
push eax
push ebx
mov eax, dword [0xaaa690]
call dword [eax]
add esp, 8
test eax, eax
je 0x4b9928
mov ecx, ebx
mov ebx, eax
test ecx, ecx
jne 0x4b98fa
mov byte [ebx], 0
push ebx
call fcn.004c6280
add esp, 4
test eax, eax
je 0x4b9916
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov word [ebx + eax], 0x2c
push dword [esp + 0xc]
push esi
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strncat
add esp, 0xc
mov dword [esp + 8], ebx
push esi
mov eax, dword [0xaaa684]
call dword [eax]
add esp, 4
mov ebx, dword [esp + 0x94]
mov dword [esp + 0x30], 0
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0
push 0x98eaf5
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
sete cl
cmp eax, 0xea
sete dl
or dl, cl
mov eax, dword [esp + 0x30]
test eax, eax
setne cl
and cl, dl
cmp cl, 1
jne 0x4b9a42
inc eax
push eax
mov eax, dword [0xaaa68c]
call dword [eax]
add esp, 4
test eax, eax
je 0x4b9a42
mov esi, eax
lea eax, [esp + 0x30]
push eax
push esi
push 0
push 0
push 0x98eaf5
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
setne cl
mov eax, dword [esp + 0x30]
cmp eax, 1
sete dl
or dl, cl
cmp dl, 1
je 0x4b9a37
mov byte [esi + eax], 0
push esi
call fcn.004c6280
add esp, 4
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x4b99e5
push ebx
call fcn.004c6280
add esp, 4
add eax, 2
jmp 0x4b99ea
mov eax, 1
add eax, dword [esp + 0xc]
push eax
push ebx
mov eax, dword [0xaaa690]
call dword [eax]
add esp, 8
test eax, eax
je 0x4b9a37
mov ecx, ebx
mov ebx, eax
test ecx, ecx
jne 0x4b9a09
mov byte [ebx], 0
push ebx
call fcn.004c6280
add esp, 4
test eax, eax
je 0x4b9a25
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov word [ebx + eax], 0x2c
push dword [esp + 0xc]
push esi
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strncat
add esp, 0xc
mov dword [esp + 8], ebx
push esi
mov eax, dword [0xaaa684]
call dword [eax]
add esp, 4
mov ebx, dword [esp + 0x94]
mov dword [esp + 0x30], 0
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0
push str.DhcpDomain
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
sete cl
cmp eax, 0xea
sete dl
or dl, cl
mov eax, dword [esp + 0x30]
test eax, eax
setne cl
and cl, dl
cmp cl, 1
jne 0x4b97b7
inc eax
push eax
mov eax, dword [0xaaa68c]
call dword [eax]
add esp, 4
test eax, eax
je 0x4b97b7
mov esi, eax
lea eax, [esp + 0x30]
push eax
push esi
push 0
push 0
push str.DhcpDomain
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
setne cl
mov eax, dword [esp + 0x30]
cmp eax, 1
sete dl
or dl, cl
cmp dl, 1
je 0x4b97ac
mov byte [esi + eax], 0
push esi
call fcn.004c6280
add esp, 4
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x4b9af8
push ebx
call fcn.004c6280
add esp, 4
add eax, 2
jmp 0x4b9afd
mov eax, 1
add eax, dword [esp + 0xc]
push eax
push ebx
mov eax, dword [0xaaa690]
call dword [eax]
add esp, 8
test eax, eax
je 0x4b97ac
mov ecx, ebx
mov ebx, eax
test ecx, ecx
jne 0x4b9b20
mov byte [ebx], 0
push ebx
call fcn.004c6280
add esp, 4
test eax, eax
je 0x4b979a
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov word [ebx + eax], 0x2c
jmp 0x4b979a
mov eax, dword [esp + 8]
mov dword [esp + 0x10], eax
push dword [esp + 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x4b9710
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret