Function at 0x4ba440
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 [0xad5c20]
push 0x3c00
call dword [eax]
add esp, 4
test eax, eax
je 0x4ba9ed
mov ebx, eax
push 0x250
mov eax, dword [0xad5c20]
call dword [eax]
add esp, 4
test eax, eax
je 0x4ba4db
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 0x4ba547
cmp eax, 0x6f
jne 0x4ba9b3
mov eax, dword [esp + 0x18]
cmp eax, 0x3c01
jb 0x4ba4eb
mov ecx, dword [0xad5c24]
push eax
push ebx
call dword [ecx]
add esp, 8
test eax, eax
je 0x4ba9b3
mov ecx, dword [esp + 0x18]
mov dword [esp + 8], ecx
mov ebx, eax
jmp 0x4ba4f3
mov eax, dword [0xad5c18]
push ebx
call dword [eax]
add esp, 4
jmp 0x4ba9ed
mov dword [esp + 8], 0x3c00
push edi
push ebx
push 0
push 0
push 0
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
cmp eax, 0x6f
jne 0x4ba53f
mov eax, dword [esp + 0x18]
cmp dword [esp + 8], eax
jae 0x4ba525
mov ecx, dword [0xad5c24]
push eax
push ebx
call dword [ecx]
add esp, 8
test eax, eax
jne 0x4ba527
jmp 0x4ba9b3
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 0x4ba9b3
test eax, eax
jne 0x4ba9b3
mov dword [esp + 0x14], 4
xor ecx, ecx
xorps xmm2, xmm2
mov dword [esp + 0x24], ebx
mov edx, ebx
jmp 0x4ba56f
mov edx, dword [esp + 0x1c]
mov edx, dword [edx + 8]
test edx, edx
je 0x4ba87d
cmp dword [edx + 0x44], 1
mov dword [esp + 0x1c], edx
jne 0x4ba560
mov ebx, dword [edx + 0x1c]
test ebx, ebx
je 0x4ba560
add edx, 0xb0
mov dword [esp + 0x2c], edx
mov edi, esi
jmp 0x4ba5ab
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 0x4ba560
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 0x4ba620
cmp eax, 2
jne 0x4ba5a0
mov eax, dword [esi + 4]
inc eax
cmp eax, 2
jb 0x4ba5a0
cmp ecx, dword [esp + 0x14]
mov dword [esp + 0xc], ecx
jne 0x4ba792
lea eax, [ecx + 4]
mov dword [esp + 0x14], eax
imul eax, eax, 0x94
push eax
push edi
mov eax, dword [0xad5c24]
call dword [eax]
add esp, 8
test eax, eax
jne 0x4ba794
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x14], ecx
mov esi, edi
jmp 0x4ba868
movdqu xmm0, xmmword [esi + 8]
mov eax, dword [0xad5c1c]
movdqu xmm1, xmmword [eax]
pcmpeqb xmm1, xmm0
pmovmskb eax, xmm1
cmp eax, 0xffff
je 0x4ba5a0
cmp ecx, dword [esp + 0x14]
mov dword [esp + 0xc], ecx
jne 0x4ba670
lea eax, [ecx + 4]
mov dword [esp + 0x14], eax
imul eax, eax, 0x94
push eax
push edi
mov eax, dword [0xad5c24]
call dword [eax]
xorps xmm2, xmm2
add esp, 8
test eax, eax
jne 0x4ba672
jmp 0x4ba58e
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.004bb500
add esp, 4
test eax, eax
je 0x4ba6bb
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x48]
mov dword [esp + 0x28], ecx
jmp 0x4ba6c7
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.004bd190
add esp, 0x10
test eax, eax
je 0x4ba860
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 0x4ba833
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.004bb180
add esp, 0x18
jmp 0x4ba855
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.004bd190
add esp, 0x10
test eax, eax
je 0x4ba860
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.004bb180
add esp, 0x14
mov ecx, dword [esp + 0xc]
inc ecx
mov esi, dword [esp + 8]
jmp 0x4ba868
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 0x4ba5ab
jmp 0x4ba560
push 0x4bb1b0
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 0x4ba9af
mov dword [esp + 8], esi
lea eax, [esi + 8]
mov dword [esp + 0x20], eax
xor eax, eax
jmp 0x4ba8cd
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 0x4ba9a5
mov esi, 0
test eax, eax
mov dword [esp + 0x14], eax
je 0x4ba914
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 0x4ba910
inc esi
add ebx, 0x94
mov eax, dword [esp + 0x14]
cmp eax, esi
jne 0x4ba8f0
jmp 0x4ba918
mov eax, dword [esp + 0x14]
cmp esi, eax
jne 0x4ba8c2
imul eax, eax, 0x94
mov ecx, dword [esp + 8]
lea ebx, [ecx + eax]
add ebx, 8
push ebx
call fcn.004c7890
add esp, 4
mov esi, eax
mov edi, dword [esp + 0x10]
test edi, edi
je 0x4ba950
push edi
call fcn.004c7890
add esp, 4
add eax, 2
jmp 0x4ba955
mov eax, 1
mov dword [esp + 0x1c], esi
add eax, esi
push eax
push edi
mov eax, dword [0xad5c24]
call dword [eax]
add esp, 8
mov esi, eax
test eax, eax
mov eax, dword [esp + 0x14]
je 0x4ba8c2
test edi, edi
jne 0x4ba97c
mov byte [esi], 0
mov dword [esp + 0x10], esi
push esi
call fcn.004c7890
add esp, 4
test eax, eax
je 0x4ba8b0
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov word [esi + eax], 0x2c
jmp 0x4ba8b0
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 8]
jmp 0x4ba9b3
mov ebx, dword [esp + 0x24]
mov edi, dword [0xad5c18]
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 0x4ba9ed
push 1
push ebx
push dword [ebp + 8]
call fcn.004bb830
add esp, 0xc
mov esi, eax
push ebx
call dword [edi]
mov eax, esi
add esp, 4
test esi, esi
jne 0x4bb175
mov dword [esp + 0x10], 0
call fcn.004ccb10
cmp eax, 3
jne 0x4bb173
lea edi, [esp + 0x78]
push edi
push 0x20019
push 0
push 0x9b8dd7
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4bab70
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 0x4baacc
inc eax
push eax
mov eax, dword [0xad5c20]
call dword [eax]
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x4baacc
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 0x4baac8
mov eax, dword [0xad5c18]
push esi
call dword [eax]
add esp, 4
mov dword [esp + 0x10], 0
jmp 0x4baacc
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 0x9b8e15
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 0x4bab66
inc eax
push eax
mov eax, dword [0xad5c20]
call dword [eax]
add esp, 4
test eax, eax
je 0x4bab66
mov esi, eax
lea eax, [esp + 0x30]
push eax
push esi
push 0
push 0
push 0x9b8e15
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 0x4bab5b
mov byte [esi + eax], 0
lea ecx, [esp + 0x10]
mov edx, esi
call fcn.004bb1e0
mov eax, dword [0xad5c18]
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 0x4bac34
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 0x4bac26
inc eax
push eax
mov eax, dword [0xad5c20]
call dword [eax]
add esp, 4
test eax, eax
je 0x4bac26
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 0x4bac1b
mov byte [esi + eax], 0
lea ecx, [esp + 0x10]
mov edx, esi
call fcn.004bb1e0
mov eax, dword [0xad5c18]
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 0x4bacf8
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 0x4bacea
inc eax
push eax
mov eax, dword [0xad5c20]
call dword [eax]
add esp, 4
test eax, eax
je 0x4bacea
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 0x4bacdf
mov byte [esi + eax], 0
lea ecx, [esp + 0x10]
mov edx, esi
call fcn.004bb1e0
mov eax, dword [0xad5c18]
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 0x4bad56
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4bb173
mov edi, dword [ebp + 8]
lea eax, [edi + 0x10]
push eax
push 0x9b8dc0
push esi
call fcn.004c7cf0
add esp, 0xc
mov dword [edi + 0xc], eax
mov eax, dword [0xad5c18]
push esi
call dword [eax]
add esp, 4
xor ecx, ecx
cmp dword [edi + 0xc], 0
mov eax, 0xe
cmovne eax, ecx
jmp 0x4bb175
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 0x4bb15d
mov edi, 1
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
jmp 0x4bae16
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 [0xad5c18]
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 0x4bb155
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 0x4baddf
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 0x4baf43
inc eax
push eax
mov eax, dword [0xad5c20]
call dword [eax]
add esp, 4
test eax, eax
je 0x4baf43
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 0x4baf38
mov byte [esi + eax], 0
push esi
call fcn.004c7890
add esp, 4
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x4baee6
push ebx
call fcn.004c7890
add esp, 4
add eax, 2
jmp 0x4baeeb
mov eax, 1
add eax, dword [esp + 0xc]
push eax
push ebx
mov eax, dword [0xad5c24]
call dword [eax]
add esp, 8
test eax, eax
je 0x4baf38
mov ecx, ebx
mov ebx, eax
test ecx, ecx
jne 0x4baf0a
mov byte [ebx], 0
push ebx
call fcn.004c7890
add esp, 4
test eax, eax
je 0x4baf26
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 [0xad5c18]
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 0x9b8e15
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 0x4bb052
inc eax
push eax
mov eax, dword [0xad5c20]
call dword [eax]
add esp, 4
test eax, eax
je 0x4bb052
mov esi, eax
lea eax, [esp + 0x30]
push eax
push esi
push 0
push 0
push 0x9b8e15
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 0x4bb047
mov byte [esi + eax], 0
push esi
call fcn.004c7890
add esp, 4
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x4baff5
push ebx
call fcn.004c7890
add esp, 4
add eax, 2
jmp 0x4baffa
mov eax, 1
add eax, dword [esp + 0xc]
push eax
push ebx
mov eax, dword [0xad5c24]
call dword [eax]
add esp, 8
test eax, eax
je 0x4bb047
mov ecx, ebx
mov ebx, eax
test ecx, ecx
jne 0x4bb019
mov byte [ebx], 0
push ebx
call fcn.004c7890
add esp, 4
test eax, eax
je 0x4bb035
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 [0xad5c18]
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 0x4badc7
inc eax
push eax
mov eax, dword [0xad5c20]
call dword [eax]
add esp, 4
test eax, eax
je 0x4badc7
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 0x4badbc
mov byte [esi + eax], 0
push esi
call fcn.004c7890
add esp, 4
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x4bb108
push ebx
call fcn.004c7890
add esp, 4
add eax, 2
jmp 0x4bb10d
mov eax, 1
add eax, dword [esp + 0xc]
push eax
push ebx
mov eax, dword [0xad5c24]
call dword [eax]
add esp, 8
test eax, eax
je 0x4badbc
mov ecx, ebx
mov ebx, eax
test ecx, ecx
jne 0x4bb130
mov byte [ebx], 0
push ebx
call fcn.004c7890
add esp, 4
test eax, eax
je 0x4badaa
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov word [ebx + eax], 0x2c
jmp 0x4badaa
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 0x4bad20
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret