Function at 0x486fcc
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
mov eax, dword [0x56afe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0xf4]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ebx, eax
xor esi, esi
cmp ebx, 7
je 0x4870c1
cmp ebx, 3
je 0x4870c1
cmp ebx, 8
je 0x48701d
cmp ebx, 4
je 0x48701d
cmp ebx, 5
je 0x48701d
cmp ebx, 6
jne 0x487119
sub esp, 0x18
mov ecx, esp
push str.Dnscache
call fcn.004108e3
mov ecx, edi
call fcn.00486c44
push 0x208
lea eax, [ebp - 0x20c]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push str._windir_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x208
lea eax, [ebp - 0x414]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push str.._system32ipconfig.exe
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x414]
mov ecx, edi
push eax
call fcn.004883d1
test eax, eax
je 0x487119
push esi
push 0x527fb4
push str._flushdns
push str.ipconfig.exe
push str.open
push esi
mov ecx, 0x576d98
call fcn.004dba26
jmp 0x487119
sub esp, 0x18
mov ecx, esp
push str.PlugPlay
call fcn.004108e3
mov ecx, edi
call fcn.00486c44
sub esp, 0x18
mov ecx, esp
push str.Power
call fcn.004108e3
mov ecx, edi
call fcn.00486c44
sub esp, 0x18
mov ecx, esp
push str.AudioEndpointBuilder
call fcn.004108e3
mov ecx, edi
call fcn.00486c44
sub esp, 0x18
mov ecx, esp
push str.Audiosrv
call fcn.004108e3
mov ecx, edi
call fcn.00486c44
mov ecx, dword [edi + 0xf4]
mov eax, dword [ecx]
call dword [eax + 0x48]
mov esi, eax
lea ecx, [ebp - 0x418]
push 0x527fb4
mov dword [ebp - 0x41c], esi
call fcn.00402af5
cmp esi, 8
jne 0x487148
mov esi, 0x53c538
jmp 0x487152
cmp esi, 4
jne 0x487166
mov esi, 0x53c480
push esi
call sub.msvcrt.dll_wcslen
pop ecx
push eax
push esi
lea ecx, [ebp - 0x418]
call fcn.00404550
mov esi, dword [ebp - 0x418]
push 0x527fb4
push esi
call sub.msvcrt.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x4871d9
push 0xc0
lea ecx, [ebp - 0x418]
call fcn.00402af5
push 0
push dword [eax]
mov eax, dword [edi + 0x14]
push 0x77f
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x418]
lea ecx, [ecx - 0x10]
call fcn.004042e9
lea ecx, [edi + 0xf8]
call fcn.0048bb58
cmp dword [edi + 0x20], 0
jne 0x487337
mov eax, dword [edi + 0x14]
push 0
push esi
push 0x77f
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp ebx, 8
jne 0x4872ea
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x414]
push 0x104
push eax
push str._windir_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x3c
lea eax, [ebp - 0x458]
push 0
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x458], 0x3c
push 0x208
push eax
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x438], eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x454], 0x1040
mov dword [ebp - 0x44c], str.open
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0x414]
push str.._system32_arp.exe
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x20c]
push eax
call fcn.0041505c
pop ecx
test eax, eax
je 0x4872ea
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.004883d1
test eax, eax
je 0x4872ea
mov eax, dword [edi + 0x14]
push 0
push 0x53d290
push 0x77f
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x458]
mov dword [ebp - 0x448], str.arp.exe
push eax
mov ecx, 0x576d98
mov dword [ebp - 0x444], 0x53d2f8
call fcn.004dba5c
push 0x1388
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x41c], 0xa
jne 0x487303
call fcn.0041c55b
test eax, eax
je 0x487303
mov ecx, edi
call fcn.004874fb
cmp ebx, 4
jne 0x48732a
mov ecx, edi
call fcn.00487fd5
cmp eax, 7
je 0x487322
cmp eax, 0xa
je 0x487322
cmp eax, 6
jbe 0x48732a
push 1
jmp 0x487324
push 0
call fcn.0048852b
pop ecx
cmp dword [edi + 0x20], 0
jne 0x487337
mov ecx, edi
call fcn.0048734e
lea ecx, [esi - 0x10]
call fcn.004042e9
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00522d04
leave
ret