Function at 0x5a2b183
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x5b920e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x230]
push eax
push 0x20019
xor esi, esi
push esi
push str.SystemCurrentControlSetServicesTcpIpLinkage
mov ebx, 0x80000002
push ebx
mov dword [ebp - 0x23c], 1
call edi
test eax, eax
jne 0x5a2b3f1
lea eax, [ebp - 0x244]
push eax
push esi
lea eax, [ebp - 0x238]
push eax
push esi
push str.Bind
push dword [ebp - 0x230]
mov dword [ebp - 0x244], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call esi
cmp eax, 0xea
je 0x5a2b20e
test eax, eax
jne 0x5a2b3dc
push dword [ebp - 0x244]
call fcn.05ac9465
pop ecx
mov dword [ebp - 0x234], eax
test eax, eax
je 0x5a2b3dc
lea ecx, [ebp - 0x244]
push ecx
push eax
lea eax, [ebp - 0x238]
push eax
push 0
push str.Bind
push dword [ebp - 0x230]
call esi
test eax, eax
jne 0x5a2b3d0
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x230], 0
mov esi, 0x104
push esi
push str.SystemCurrentControlSetServices_
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.05aceeba
lea eax, [ebp - 0x22c]
push eax
call fcn.05acc196
mov ecx, esi
sub ecx, eax
mov eax, dword [ebp - 0x234]
push ecx
add eax, 0x10
push eax
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.05acef87
lea eax, [ebp - 0x22c]
push eax
call fcn.05acc196
mov ecx, esi
sub ecx, eax
push ecx
push str.ParametersTcpip
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.05acef87
push dword [ebp - 0x234]
call fcn.05ac8e2e
and dword [ebp - 0x234], 0
add esp, 0x3c
lea eax, [ebp - 0x240]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x22c]
push eax
push ebx
call edi
test eax, eax
jne 0x5a2b3d0
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0x20
pop edi
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x238]
push eax
xor ebx, ebx
push ebx
push str.IPAddress
push dword [ebp - 0x240]
mov dword [ebp - 0x248], edi
call esi
test eax, eax
jne 0x5a2b3c4
lea eax, [ebp - 0x24]
push str.0.0.0.0
push eax
call fcn.05acab90
pop ecx
pop ecx
test eax, eax
jne 0x5a2b384
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x238]
push eax
push ebx
push str.DhcpIPAddress
push dword [ebp - 0x240]
mov dword [ebp - 0x248], edi
call esi
test eax, eax
jne 0x5a2b3c4
lea eax, [ebp - 0x24]
push str.0.0.0.0
push eax
call fcn.05acab90
pop ecx
pop ecx
test eax, eax
je 0x5a2b3c4
mov esi, dword [ebp - 0x24c]
push 0x14
mov ecx, esi
call fcn.05a17bd9
lea eax, [ebp - 0x24]
push eax
push 2
push str.__d:_s_
mov ecx, esi
call fcn.05a28116
push eax
mov ecx, esi
call fcn.05a28116
push eax
mov ecx, esi
call fcn.05a17c6c
push eax
call fcn.05ac95f9
mov dword [ebp - 0x23c], ebx
add esp, 0x18
push dword [ebp - 0x240]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x234]
call fcn.05ac8e2e
pop ecx
cmp dword [ebp - 0x230], 0
je 0x5a2b3f1
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x23c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.05ac7ec0
leave
ret