Function at 0x4b8880
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 [0xb5ad4c]
push 0x3c00
call dword [eax]
add esp, 4
test eax, eax
je 0x4b8e2d
mov ebx, eax
push 0x250
mov eax, dword [0xb5ad4c]
call dword [eax]
add esp, 4
test eax, eax
je 0x4b891b
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 0x4b8987
cmp eax, 0x6f
jne 0x4b8df3
mov eax, dword [esp + 0x18]
cmp eax, 0x3c01
jb 0x4b892b
mov ecx, dword [0xb5ad50]
push eax
push ebx
call dword [ecx]
add esp, 8
test eax, eax
je 0x4b8df3
mov ecx, dword [esp + 0x18]
mov dword [esp + 8], ecx
mov ebx, eax
jmp 0x4b8933
mov eax, dword [0xb5ad44]
push ebx
call dword [eax]
add esp, 4
jmp 0x4b8e2d
mov dword [esp + 8], 0x3c00
push edi
push ebx
push 0
push 0
push 0
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
cmp eax, 0x6f
jne 0x4b897f
mov eax, dword [esp + 0x18]
cmp dword [esp + 8], eax
jae 0x4b8965
mov ecx, dword [0xb5ad50]
push eax
push ebx
call dword [ecx]
add esp, 8
test eax, eax
jne 0x4b8967
jmp 0x4b8df3
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 0x4b8df3
test eax, eax
jne 0x4b8df3
mov dword [esp + 0x14], 4
xor ecx, ecx
xorps xmm2, xmm2
mov dword [esp + 0x24], ebx
mov edx, ebx
jmp 0x4b89af
mov edx, dword [esp + 0x1c]
mov edx, dword [edx + 8]
test edx, edx
je 0x4b8cbd
cmp dword [edx + 0x44], 1
mov dword [esp + 0x1c], edx
jne 0x4b89a0
mov ebx, dword [edx + 0x1c]
test ebx, ebx
je 0x4b89a0
add edx, 0xb0
mov dword [esp + 0x2c], edx
mov edi, esi
jmp 0x4b89eb
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 0x4b89a0
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 0x4b8a60
cmp eax, 2
jne 0x4b89e0
mov eax, dword [esi + 4]
inc eax
cmp eax, 2
jb 0x4b89e0
cmp ecx, dword [esp + 0x14]
mov dword [esp + 0xc], ecx
jne 0x4b8bd2
lea eax, [ecx + 4]
mov dword [esp + 0x14], eax
imul eax, eax, 0x94
push eax
push edi
mov eax, dword [0xb5ad50]
call dword [eax]
add esp, 8
test eax, eax
jne 0x4b8bd4
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x14], ecx
mov esi, edi
jmp 0x4b8ca8
movdqu xmm0, xmmword [esi + 8]
mov eax, dword [0xb5ad48]
movdqu xmm1, xmmword [eax]
pcmpeqb xmm1, xmm0
pmovmskb eax, xmm1
cmp eax, 0xffff
je 0x4b89e0
cmp ecx, dword [esp + 0x14]
mov dword [esp + 0xc], ecx
jne 0x4b8ab0
lea eax, [ecx + 4]
mov dword [esp + 0x14], eax
imul eax, eax, 0x94
push eax
push edi
mov eax, dword [0xb5ad50]
call dword [eax]
xorps xmm2, xmm2
add esp, 8
test eax, eax
jne 0x4b8ab2
jmp 0x4b89ce
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.004b9940
add esp, 4
test eax, eax
je 0x4b8afb
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x48]
mov dword [esp + 0x28], ecx
jmp 0x4b8b07
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.004bb5d0
add esp, 0x10
test eax, eax
je 0x4b8ca0
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 0x4b8c73
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.004b95c0
add esp, 0x18
jmp 0x4b8c95
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.004bb5d0
add esp, 0x10
test eax, eax
je 0x4b8ca0
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.004b95c0
add esp, 0x14
mov ecx, dword [esp + 0xc]
inc ecx
mov esi, dword [esp + 8]
jmp 0x4b8ca8
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 0x4b89eb
jmp 0x4b89a0
push 0x4b95f0
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 0x4b8def
mov dword [esp + 8], esi
lea eax, [esi + 8]
mov dword [esp + 0x20], eax
xor eax, eax
jmp 0x4b8d0d
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 0x4b8de5
mov esi, 0
test eax, eax
mov dword [esp + 0x14], eax
je 0x4b8d54
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 0x4b8d50
inc esi
add ebx, 0x94
mov eax, dword [esp + 0x14]
cmp eax, esi
jne 0x4b8d30
jmp 0x4b8d58
mov eax, dword [esp + 0x14]
cmp esi, eax
jne 0x4b8d02
imul eax, eax, 0x94
mov ecx, dword [esp + 8]
lea ebx, [ecx + eax]
add ebx, 8
push ebx
call fcn.004c5cd0
add esp, 4
mov esi, eax
mov edi, dword [esp + 0x10]
test edi, edi
je 0x4b8d90
push edi
call fcn.004c5cd0
add esp, 4
add eax, 2
jmp 0x4b8d95
mov eax, 1
mov dword [esp + 0x1c], esi
add eax, esi
push eax
push edi
mov eax, dword [0xb5ad50]
call dword [eax]
add esp, 8
mov esi, eax
test eax, eax
mov eax, dword [esp + 0x14]
je 0x4b8d02
test edi, edi
jne 0x4b8dbc
mov byte [esi], 0
mov dword [esp + 0x10], esi
push esi
call fcn.004c5cd0
add esp, 4
test eax, eax
je 0x4b8cf0
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov word [esi + eax], 0x2c
jmp 0x4b8cf0
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 8]
jmp 0x4b8df3
mov ebx, dword [esp + 0x24]
mov edi, dword [0xb5ad44]
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 0x4b8e2d
push 1
push ebx
push dword [ebp + 8]
call fcn.004b9c70
add esp, 0xc
mov esi, eax
push ebx
call dword [edi]
mov eax, esi
add esp, 4
test esi, esi
jne 0x4b95b5
mov dword [esp + 0x10], 0
call fcn.004caf50
cmp eax, 3
jne 0x4b95b3
lea edi, [esp + 0x78]
push edi
push 0x20019
push 0
push 0xa3f177
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4b8fb0
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 0x4b8f0c
inc eax
push eax
mov eax, dword [0xb5ad4c]
call dword [eax]
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x4b8f0c
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 0x4b8f08
mov eax, dword [0xb5ad44]
push esi
call dword [eax]
add esp, 4
mov dword [esp + 0x10], 0
jmp 0x4b8f0c
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 0xa3f1b5
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 0x4b8fa6
inc eax
push eax
mov eax, dword [0xb5ad4c]
call dword [eax]
add esp, 4
test eax, eax
je 0x4b8fa6
mov esi, eax
lea eax, [esp + 0x30]
push eax
push esi
push 0
push 0
push 0xa3f1b5
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 0x4b8f9b
mov byte [esi + eax], 0
lea ecx, [esp + 0x10]
mov edx, esi
call fcn.004b9620
mov eax, dword [0xb5ad44]
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 0x4b9074
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 0x4b9066
inc eax
push eax
mov eax, dword [0xb5ad4c]
call dword [eax]
add esp, 4
test eax, eax
je 0x4b9066
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 0x4b905b
mov byte [esi + eax], 0
lea ecx, [esp + 0x10]
mov edx, esi
call fcn.004b9620
mov eax, dword [0xb5ad44]
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 0x4b9138
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 0x4b912a
inc eax
push eax
mov eax, dword [0xb5ad4c]
call dword [eax]
add esp, 4
test eax, eax
je 0x4b912a
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 0x4b911f
mov byte [esi + eax], 0
lea ecx, [esp + 0x10]
mov edx, esi
call fcn.004b9620
mov eax, dword [0xb5ad44]
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 0x4b9196
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4b95b3
mov edi, dword [ebp + 8]
lea eax, [edi + 0x10]
push eax
push 0xa3f160
push esi
call fcn.004c6130
add esp, 0xc
mov dword [edi + 0xc], eax
mov eax, dword [0xb5ad44]
push esi
call dword [eax]
add esp, 4
xor ecx, ecx
cmp dword [edi + 0xc], 0
mov eax, 0xe
cmovne eax, ecx
jmp 0x4b95b5
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 0x4b959d
mov edi, 1
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
jmp 0x4b9256
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 [0xb5ad44]
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 0x4b9595
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 0x4b921f
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 0x4b9383
inc eax
push eax
mov eax, dword [0xb5ad4c]
call dword [eax]
add esp, 4
test eax, eax
je 0x4b9383
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 0x4b9378
mov byte [esi + eax], 0
push esi
call fcn.004c5cd0
add esp, 4
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x4b9326
push ebx
call fcn.004c5cd0
add esp, 4
add eax, 2
jmp 0x4b932b
mov eax, 1
add eax, dword [esp + 0xc]
push eax
push ebx
mov eax, dword [0xb5ad50]
call dword [eax]
add esp, 8
test eax, eax
je 0x4b9378
mov ecx, ebx
mov ebx, eax
test ecx, ecx
jne 0x4b934a
mov byte [ebx], 0
push ebx
call fcn.004c5cd0
add esp, 4
test eax, eax
je 0x4b9366
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 [0xb5ad44]
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 0xa3f1b5
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 0x4b9492
inc eax
push eax
mov eax, dword [0xb5ad4c]
call dword [eax]
add esp, 4
test eax, eax
je 0x4b9492
mov esi, eax
lea eax, [esp + 0x30]
push eax
push esi
push 0
push 0
push 0xa3f1b5
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 0x4b9487
mov byte [esi + eax], 0
push esi
call fcn.004c5cd0
add esp, 4
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x4b9435
push ebx
call fcn.004c5cd0
add esp, 4
add eax, 2
jmp 0x4b943a
mov eax, 1
add eax, dword [esp + 0xc]
push eax
push ebx
mov eax, dword [0xb5ad50]
call dword [eax]
add esp, 8
test eax, eax
je 0x4b9487
mov ecx, ebx
mov ebx, eax
test ecx, ecx
jne 0x4b9459
mov byte [ebx], 0
push ebx
call fcn.004c5cd0
add esp, 4
test eax, eax
je 0x4b9475
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 [0xb5ad44]
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 0x4b9207
inc eax
push eax
mov eax, dword [0xb5ad4c]
call dword [eax]
add esp, 4
test eax, eax
je 0x4b9207
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 0x4b91fc
mov byte [esi + eax], 0
push esi
call fcn.004c5cd0
add esp, 4
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x4b9548
push ebx
call fcn.004c5cd0
add esp, 4
add eax, 2
jmp 0x4b954d
mov eax, 1
add eax, dword [esp + 0xc]
push eax
push ebx
mov eax, dword [0xb5ad50]
call dword [eax]
add esp, 8
test eax, eax
je 0x4b91fc
mov ecx, ebx
mov ebx, eax
test ecx, ecx
jne 0x4b9570
mov byte [ebx], 0
push ebx
call fcn.004c5cd0
add esp, 4
test eax, eax
je 0x4b91ea
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov word [ebx + eax], 0x2c
jmp 0x4b91ea
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 0x4b9160
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret