Function at 0x1005e2f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
lea eax, [ebp - 0x160]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1005e5c6
cmp byte [ebp - 0x160], 0
je 0x1005e5c6
push ebx
push esi
push edi
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
mov byte [ebp - 0x14], 0
mov byte [ebp - 5], 0xf
call fcn.100b94a0
add esp, 0xc
cmp byte [ebp + 0xc], 0
je 0x1005e414
cmp byte [ebp - 5], 0
jge 0x1005e361
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x1005e364
mov eax, 0x1024cb86
jmp 0x1005e364
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 4]
push str._s_netsh.exe_interface_ip_set_address__s_dhcp
push eax
call fcn.10076ec0
mov eax, dword [ebp - 4]
mov esi, 0x1024cb86
test eax, eax
mov ecx, esi
push 1
cmovne ecx, eax
push ecx
call fcn.100af6f0
add esp, 0x18
cmp eax, 0xffffffff
je 0x1005e3df
cmp byte [ebp - 5], 0
jge 0x1005e3aa
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x1005e3ad
mov eax, esi
jmp 0x1005e3ad
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 4]
push str._s_netsh.exe_interface_ip_set_dns__s_dhcp
push eax
call fcn.10076ec0
mov eax, dword [ebp - 4]
test eax, eax
push 1
cmovne esi, eax
push esi
call fcn.100af6f0
add esp, 0x18
cmp eax, 0xffffffff
jne 0x1005e5bf
xor bl, bl
cmp byte [ebp - 5], 0
jge 0x1005e3f8
call fcn.100ad570
push 0
push dword [ebp - 0x14]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
call fcn.100ad570
push 0
push dword [ebp - 4]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1005e3df
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x1005e3df
mov ebx, dword [ebp + 0x18]
test ebx, ebx
je 0x1005e3df
mov edi, dword [ebp + 0x1c]
test edi, edi
je 0x1005e3df
xor ecx, ecx
mov dword [ebp - 0x2c], eax
push 1
push 0x10
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x2c]
push eax
mov dword [ebp - 0x18], 3
call fcn.1008e950
mov eax, 3
mov dword [ebp - 0x2c], esi
push 1
mov word [ebp - 0x18], ax
lea ecx, [ebp - 0x2c]
push 0x10
lea eax, [ebp - 0x5c]
push eax
call fcn.1008e950
mov eax, 3
mov dword [ebp - 0x2c], ebx
push 1
mov word [ebp - 0x18], ax
lea ecx, [ebp - 0x2c]
push 0x10
lea eax, [ebp - 0x4c]
push eax
call fcn.1008e950
cmp byte [ebp - 5], 0
jge 0x1005e4a4
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x1005e4a7
mov eax, 0x1024cb86
jmp 0x1005e4a7
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push eax
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 4]
push str._s_netsh.exe_interface_ip_set_address__s_static__s__s__s_1
push eax
call fcn.10076ec0
mov eax, dword [ebp - 4]
mov esi, 0x1024cb86
test eax, eax
mov ecx, esi
push 1
cmovne ecx, eax
push ecx
call fcn.100af6f0
add esp, 0x24
cmp eax, 0xffffffff
je 0x1005e3df
push 1
push 0x10
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x2c], edi
mov ebx, 3
lea ecx, [ebp - 0x2c]
push eax
mov word [ebp - 0x18], bx
call fcn.1008e950
cmp byte [ebp - 5], 0
jge 0x1005e519
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x1005e51c
mov eax, esi
jmp 0x1005e51c
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x3c]
push ecx
push eax
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 4]
push str._s_netsh.exe_interface_ip_set_dns__s_static__s
push eax
call fcn.10076ec0
mov eax, dword [ebp - 4]
mov ecx, esi
test eax, eax
push 1
cmovne ecx, eax
push ecx
call fcn.100af6f0
add esp, 0x1c
cmp eax, 0xffffffff
je 0x1005e3df
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x1005e5bf
push 1
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x2c]
push 0x10
lea eax, [ebp - 0x3c]
mov word [ebp - 0x18], bx
push eax
call fcn.1008e950
cmp byte [ebp - 5], 0
jge 0x1005e586
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x1005e589
mov eax, 0x1024cb86
jmp 0x1005e589
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x3c]
push ecx
push eax
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 4]
push str._s_netsh.exe_interface_ip_add_dns__s__s_index2
push eax
call fcn.10076ec0
mov eax, dword [ebp - 4]
test eax, eax
push 1
cmovne esi, eax
push esi
call fcn.100af6f0
add esp, 0x1c
cmp eax, 0xffffffff
je 0x1005e3df
mov bl, 1
jmp 0x1005e3e1
xor al, al
mov esp, ebp
pop ebp
ret 0x1c