Function at 0x459e50
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5237cc
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
mov eax, dword [0x56f28c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 2
mov dword [ebp - 0x3c], 0x80004005
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x18]
call fcn.004457d0
mov byte [ebp - 4], 3
push 0x208
push 0x208
lea ecx, [ebp - 0x18]
call fcn.00418d50
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x537004
push 0x208
lea ecx, [ebp - 0x18]
call fcn.00418d50
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.00428020
lea ecx, [ebp - 0x38]
call fcn.00402b00
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.0046ade0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45a01b
lea ecx, [ebp - 0x40]
call fcn.004457d0
mov byte [ebp - 4], 5
cmp dword [ebp + 0x1c], 0
je 0x459f2a
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push str.__s__interface_ip_set_address_name__s__sourcedhcp
lea eax, [ebp - 0x40]
push eax
call fcn.00428670
add esp, 0x10
jmp 0x459f85
lea ecx, [ebp + 0x18]
call fcn.00445980
movzx ecx, al
test ecx, ecx
je 0x459f5e
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x18]
push eax
push str.__s__interface_ip_set_address_name__s__sourcestatic_addr_s_mask_s_gatewaynone
lea ecx, [ebp - 0x40]
push ecx
call fcn.00428670
add esp, 0x18
jmp 0x459f85
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push str.__s__interface_ip_set_address_name__s__sourcestatic_addr_s_mask_s_gateway_s_gwmetric1
lea edx, [ebp - 0x40]
push edx
call fcn.00428670
add esp, 0x1c
push 0x4e20
lea eax, [ebp - 0x38]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x60], esp
lea edx, [ebp - 0x40]
push edx
call fcn.00418970
mov dword [ebp - 0x29c], eax
call fcn.00456500
add esp, 0xc
mov dword [ebp - 0x2a0], eax
mov eax, dword [ebp - 0x2a0]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x38]
call fcn.00403860
push eax
lea ecx, [ebp - 0x64]
call fcn.00448790
mov dword [ebp - 0x2a4], eax
mov ecx, dword [ebp - 0x2a4]
mov dword [ebp - 0x2a8], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x2a8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push str.change_ip:_strAdapterName:_s__cmd:__s__out:__s
call fcn.0044a070
add esp, 0x10
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x64]
call fcn.004458f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.004458f0
jmp 0x45a028
push str.netsh.exe_not_exist.
call fcn.0044a070
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x14], 0
sete cl
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jne 0x45a077
mov dword [ebp - 0x44], 0
jmp 0x45a04c
mov edx, dword [ebp - 0x44]
add edx, 1
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x44], 5
jae 0x45a077
push 0
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax*4 + 0x537cd8]
push ecx
lea ecx, [ebp - 0x38]
call fcn.0045cac0
cmp eax, 0xffffffff
je 0x45a075
mov dword [ebp - 0x10], 1
jmp 0x45a077
jmp 0x45a043
cmp dword [ebp - 0x10], 0
je 0x45a3f3
push str.netsh_change_ip_failed.
call fcn.0044a070
add esp, 4
call fcn.00448b90
test eax, eax
je 0x45a233
lea ecx, [ebp - 0x5c]
call fcn.004bfc60
mov byte [ebp - 4], 7
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x68], esp
lea edx, [ebp - 0x5c]
push edx
call fcn.0045cb90
mov dword [ebp - 0x2ac], eax
mov eax, dword [ebp - 0x2ac]
mov dword [ebp - 0x2b0], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp + 0x1c]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x6c], esp
lea edx, [ebp + 0x18]
push edx
call fcn.00418970
mov dword [ebp - 0x2b4], eax
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov byte [ebp - 4], 7
call fcn.00458b30
add esp, 0x2c
mov dword [ebp - 0x2b8], eax
xor eax, eax
cmp dword [ebp - 0x2b8], 0
setge al
mov dword [ebp - 0x14], eax
mov ecx, 0x572598
call fcn.00445980
movzx ecx, al
test ecx, ecx
jne 0x45a222
mov ecx, 0x57259c
call fcn.0045ce70
movzx edx, al
test edx, edx
jne 0x45a222
mov ecx, 0x57259c
call fcn.0045ce70
movzx eax, al
test eax, eax
je 0x45a15b
mov dword [ebp - 0x2bc], str.none
jmp 0x45a174
push 0
mov ecx, 0x57259c
call fcn.004d1880
mov ecx, eax
call fcn.0046ade0
mov dword [ebp - 0x2bc], eax
mov ecx, dword [ebp - 0x2bc]
push ecx
mov edx, dword [0x572598]
push edx
push str.change_dns__s_____s.
call fcn.0044a070
add esp, 0xc
push 0x53733c
lea ecx, [ebp - 0x78]
call fcn.00427f00
mov byte [ebp - 4], 9
push 0x537340
lea ecx, [ebp - 0x7c]
call fcn.00427f00
mov byte [ebp - 4], 0xa
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x70], esp
push 0x57259c
call fcn.0045cb90
mov dword [ebp - 0x2c0], eax
mov eax, dword [ebp - 0x2c0]
mov dword [ebp - 0x2c4], eax
mov byte [ebp - 4], 0xb
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x74], esp
push 0x537338
call fcn.00427f00
mov dword [ebp - 0x2c8], eax
lea ecx, [ebp - 0x78]
push ecx
lea edx, [ebp - 0x7c]
push edx
push 0x572598
mov byte [ebp - 4], 0xa
call fcn.00458b30
add esp, 0x2c
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x7c]
call fcn.004458f0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x78]
call fcn.004458f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x5c]
call fcn.0045cc90
jmp 0x45a3f3
lea ecx, [ebp + 0x18]
call fcn.0046ade0
push eax
lea ecx, [ebp - 0x100]
call fcn.0044dc60
mov dword [ebp - 0x2cc], eax
mov eax, dword [ebp - 0x2cc]
mov dword [ebp - 0x2d0], eax
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x2d0]
call fcn.0046ade0
push eax
lea ecx, [ebp + 0x14]
call fcn.0046ade0
push eax
lea ecx, [ebp - 0x184]
call fcn.0044dc60
mov dword [ebp - 0x2d4], eax
mov ecx, dword [ebp - 0x2d4]
mov dword [ebp - 0x2d8], ecx
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x2d8]
call fcn.0046ade0
push eax
lea ecx, [ebp + 0x10]
call fcn.0046ade0
push eax
lea ecx, [ebp - 0x208]
call fcn.0044dc60
mov dword [ebp - 0x2dc], eax
mov edx, dword [ebp - 0x2dc]
mov dword [ebp - 0x2e0], edx
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x2e0]
call fcn.0046ade0
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0046ade0
push eax
lea ecx, [ebp - 0x28c]
call fcn.0044dc60
mov dword [ebp - 0x2e4], eax
mov eax, dword [ebp - 0x2e4]
mov dword [ebp - 0x2e8], eax
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x2e8]
call fcn.0046ade0
push eax
call fcn.00459ba0
add esp, 0x10
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x28c]
call fcn.0044dc90
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x208]
call fcn.0044dc90
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x184]
call fcn.0044dc90
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x100]
call fcn.0044dc90
mov ecx, dword [ebp + 0x1c]
push ecx
lea ecx, [ebp + 0x14]
call fcn.0046ade0
push eax
lea ecx, [ebp - 0x290]
call fcn.00445870
mov dword [ebp - 0x2ec], eax
mov edx, dword [ebp - 0x2ec]
mov dword [ebp - 0x2f0], edx
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x2f0]
call fcn.0046ade0
push eax
lea ecx, [ebp + 0x10]
call fcn.0046ade0
push eax
lea ecx, [ebp - 0x294]
call fcn.00445870
mov dword [ebp - 0x2f4], eax
mov eax, dword [ebp - 0x2f4]
mov dword [ebp - 0x2f8], eax
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x2f8]
call fcn.0046ade0
push eax
push 0
mov ecx, dword [ebp + 0xc]
call fcn.0046ade0
push eax
call fcn.00459db0
add esp, 0x14
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x294]
call fcn.004458f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x290]
call fcn.004458f0
cmp dword [ebp - 0x14], 0
jne 0x45a405
cmp dword [0x572594], 0
je 0x45a403
int3
jmp 0x45a410
xor ecx, ecx
jne 0x45a3f3
mov dword [ebp - 0x3c], 0
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x298], edx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.00402b90
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.004458f0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.004458f0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.004458f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
call fcn.004458f0
mov eax, dword [ebp - 0x298]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004ffa01
mov esp, ebp
pop ebp
ret