Function at 0x100590e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x4e8
mov eax, dword [0x1010f16c]
xor eax, esp
mov dword [esp + 0x4e4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x28], eax
mov edi, ecx
mov byte [eax], 0
lea eax, [esi + 0x38]
mov dword [esp + 0x10], esi
push eax
call fcn.10059df0
test al, al
jne 0x10059141
push str.Pre_command_failed_
call fcn.10056110
add esp, 4
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x4e4]
xor ecx, esp
call fcn.100908e7
mov esp, ebp
pop ebp
ret 8
lea edx, [edi + 0x98]
mov ecx, edx
mov dword [esp + 0x1c], edx
lea eax, [ecx + 1]
mov dword [esp + 0x18], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10059154
sub ecx, dword [esp + 0x18]
cmp byte [edx], 0x7b
jne 0x10059b3d
cmp byte [ecx + edx - 1], 0x7d
jne 0x10059b3d
cmp ecx, 0x40
jae 0x10059b3d
add ecx, 0xfffffffe
cmp ecx, 0x40
jae 0x10059b63
mov byte [esp + ecx + 0xa8], al
lea eax, [edx + 1]
push ecx
push eax
lea eax, [esp + 0xb0]
push eax
call fcn.100a82c0
add esp, 0xc
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0xac]
push eax
call dword [sym.imp.RPCRT4.dll_UuidFromStringA]
test eax, eax
jne 0x10059b39
lea eax, [edi + 0x70]
push eax
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.IPHLPAPI.DLL_ConvertInterfaceGuidToLuid]
test eax, eax
sete al
test al, al
je 0x10059b39
lea eax, [edi + 0x78]
push eax
lea eax, [edi + 0x70]
push eax
call dword [sym.imp.IPHLPAPI.DLL_ConvertInterfaceLuidToIndex]
test eax, eax
je 0x10059212
push str.Unable_to_get_index_of_adapter
call fcn.10056110
add esp, 4
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x4e4]
xor ecx, esp
call fcn.100908e7
mov esp, ebp
pop ebp
ret 8
lea eax, [esi + 0x50]
lea ecx, [edi + 0x80]
cmp ecx, eax
je 0x1005922d
push dword [esp + 0x34]
push dword [eax + 4]
push dword [eax]
call fcn.1000dc00
lea eax, [esi + 0x5c]
lea ecx, [edi + 0x8c]
cmp ecx, eax
je 0x10059248
push dword [esp + 0x34]
push dword [eax + 4]
push dword [eax]
call fcn.1000dc00
lea eax, [esi + 8]
mov dword [esp + 0x3c], eax
mov eax, dword [eax]
cmp eax, dword [esi + 0xc]
je 0x10059297
mov cl, byte [eax + 0x10]
cmp cl, 0x20
jne 0x10059275
cmp byte [edi + 0x38], 0
jne 0x1005928f
movups xmm0, xmmword [eax]
movups xmmword [edi + 0x28], xmm0
mov cx, word [eax + 0x10]
mov word [edi + 0x38], cx
jmp 0x1005928f
cmp cl, 0x80
jne 0x1005928f
cmp byte [edi + 0x4a], 0
jne 0x1005928f
movups xmm0, xmmword [eax]
movups xmmword [edi + 0x3a], xmm0
mov cx, word [eax + 0x10]
mov word [edi + 0x4a], cx
add eax, 0x12
cmp eax, dword [esi + 0xc]
jne 0x10059256
cmp byte [edi + 0x38], 0
jne 0x100592c2
push str.The_TUN_adapter_on_Windows_requires_an_IPv4_address
call fcn.10056110
add esp, 4
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x4e4]
xor ecx, esp
call fcn.100908e7
mov esp, ebp
pop ebp
ret 8
movzx eax, byte [edi + 0x39]
cmp eax, 0x20
jne 0x100592d5
mov dword [esp + 0xc], 0xffffffff
jmp 0x100592e5
mov ecx, 0x20
sub ecx, eax
or eax, 0xffffffff
shl eax, cl
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x28]
mov dl, 1
bswap eax
mov ecx, str.Dhcp
mov dword [esp + 0x18], eax
call fcn.100687b0
test al, al
je 0x10059327
push dword [edi + 0x78]
lea eax, [esp + 0xec]
push str.netsh_interface_ip_set_address__d_dhcp
push 0x400
push eax
call fcn.100379c0
add esp, 0x10
lea ecx, [esp + 0xe8]
call fcn.10056740
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x18]
and eax, dword [esp + 0xc]
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.WS2_32.dll_htonl]
push dword [esp + 0xc]
mov dword [esp + 0x48], eax
call dword [sym.imp.WS2_32.dll_htonl]
push 0
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x28]
push eax
push 0xc
lea eax, [esp + 0x4c]
push eax
push 0xc
push eax
push 0x220028
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x100593a1
push str.DeviceIoControl_TAP_IOCTL_CONFIG_TUN__failed
call fcn.10056110
add esp, 4
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x4e4]
xor ecx, esp
call fcn.100908e7
mov esp, ebp
pop ebp
ret 8
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_htonl]
push dword [esp + 0xc]
mov dword [esp + 0x44], eax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xc]
not eax
or eax, dword [esp + 0x18]
dec eax
push eax
call dword [sym.imp.WS2_32.dll_htonl]
push 0
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x28]
push eax
push 0x10
lea eax, [esp + 0x4c]
mov dword [esp + 0x58], 0x1e13380
push eax
push 0x10
push eax
push 0x22001c
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10059422
push str.DeviceIoControl_TAP_IOCTL_CONFIG_DHCP_MASQ__failed
call fcn.10056110
add esp, 4
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x4e4]
xor ecx, esp
call fcn.100908e7
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x14]
xor edx, edx
mov ecx, dword [esi + 0x18]
cmp eax, ecx
je 0x100594be
cmp word [eax], 2
jne 0x1005944b
mov ecx, dword [eax + 4]
mov dword [esp + edx*4 + 0x96], ecx
inc edx
cmp edx, 4
je 0x10059452
mov ecx, dword [esi + 0x18]
add eax, 0x1c
cmp eax, ecx
jne 0x10059432
test edx, edx
je 0x100594be
mov al, dl
mov byte [esp + 0x94], 6
shl al, 2
push 0
mov byte [esp + 0x99], al
lea eax, [esp + 0x28]
push eax
push 0xa
lea eax, [esp + 0x4c]
push eax
lea eax, [edx*4 + 2]
push eax
lea eax, [esp + 0xa8]
push eax
push 0x220024
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x100594be
push str.DeviceIoControl_TAP_IOCTL_CONFIG_DHCP_SET_OPT__failed
call fcn.10056110
add esp, 4
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x4e4]
xor ecx, esp
call fcn.100908e7
mov esp, ebp
pop ebp
ret 8
push 0
lea ecx, [esp + 0x28]
push ecx
push 6
lea eax, [edi + 0x14]
push eax
push 6
push eax
push 0x220004
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x100594ee
push str.DeviceIoControl_TAP_IOCTL_GET_MAC__failed
call fcn.10056110
add esp, 4
jmp 0x10059503
mov ecx, dword [esp + 0x28]
mov byte [ecx], 1
mov eax, dword [edi + 0x14]
mov dword [ecx + 1], eax
mov ax, word [edi + 0x18]
mov word [ecx + 5], ax
push 0
lea eax, [esp + 0x28]
mov dword [esp + 0x3c], 1
push eax
push 4
lea eax, [esp + 0x44]
push eax
push 4
push eax
push 0x220018
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10059552
push str.DeviceIoControl_TAP_IOCTL_SET_MEDIA_STATUS__failed
call fcn.10056110
add esp, 4
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x4e4]
xor ecx, esp
call fcn.100908e7
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 4]
test eax, eax
je 0x100595a7
push eax
mov edx, 2
lea ecx, [edi + 0x70]
call fcn.100584d0
add esp, 4
test eax, eax
je 0x1005957c
push eax
push str.SetMtuOnNetworkAdapter_IPv4_failed:__d
call fcn.10056110
add esp, 8
cmp byte [edi + 0x4a], 0
je 0x100595a7
push dword [esi + 4]
mov edx, 0x17
lea ecx, [edi + 0x70]
call fcn.100584d0
add esp, 4
test eax, eax
je 0x100595a7
push eax
push str.SetMtuOnNetworkAdapter_IPv6_failed:__d
call fcn.10056110
add esp, 8
cmp byte [edi + 0x4a], 0
mov byte [edi + 0x1a], 0
je 0x1005962b
lea eax, [edi + 0x60]
push eax
lea edx, [esi + 8]
lea ecx, [edi + 0x70]
call fcn.10058620
mov eax, dword [esi + 0x14]
add esp, 4
mov ecx, dword [esi + 0x18]
cmp eax, ecx
je 0x100595e3
nop dword [eax]
cmp word [eax], 0x17
je 0x100595df
add eax, 0x1c
cmp eax, ecx
jne 0x100595d0
jmp 0x100595e3
mov byte [edi + 0x1a], 1
cmp byte [edi + 0x1a], 0
je 0x1005962b
mov eax, dword [esp + 0x10]
mov esi, dword [esi + 0x14]
mov ecx, dword [eax + 0x18]
mov eax, 0x92492493
sub ecx, esi
imul ecx
add edx, ecx
lea ecx, [edi + 0x70]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, esi
push eax
call fcn.10058a10
add esp, 4
test al, al
jne 0x10059627
push str.SetIPV6DnsOnInterface:_failed
call fcn.10056110
add esp, 4
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0x18]
mov eax, 0x92492493
sub ecx, dword [esi + 0x14]
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x100596a0
cmp byte [esi + 1], 0
je 0x100596a0
push str.Blocking_standard_DNS_on_all_adapters
call fcn.100561a0
movzx eax, byte [edi + 0x1a]
add esp, 4
mov ecx, dword [edi + 4]
push eax
lea eax, [edi + 0x70]
push eax
call fcn.10052db0
lea eax, [edi + 0x20]
mov edx, 2
push eax
push 2
lea ecx, [edi + 0x70]
call fcn.10058560
add esp, 8
test eax, eax
je 0x10059692
push eax
push str.SetMetricOnNetworkAdapter_IPv4_failed:__d
call fcn.10056110
add esp, 8
cmp byte [edi + 0x4a], 0
je 0x10059714
lea eax, [edi + 0x24]
push eax
push 2
jmp 0x100596f2
mov eax, dword [edi + 4]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x100596b8
push ecx
mov dword [eax + 8], 0
call dword [sym.imp.fwpuclnt.dll_FwpmEngineClose0]
lea eax, [edi + 0x20]
mov edx, 2
push eax
push 0x270f
lea ecx, [edi + 0x70]
call fcn.10058560
add esp, 8
test eax, eax
je 0x100596e3
push eax
push str.SetMetricOnNetworkAdapter_IPv4_failed:__d
call fcn.10056110
add esp, 8
cmp byte [edi + 0x4a], 0
je 0x10059714
lea eax, [edi + 0x24]
push eax
push 0x270f
mov edx, 0x17
lea ecx, [edi + 0x70]
call fcn.10058560
add esp, 8
test eax, eax
je 0x10059714
push eax
push str.SetMetricOnNetworkAdapter_IPv6_failed:__d
call fcn.10056110
add esp, 8
mov cl, byte [esi]
movzx eax, byte [0x10115c7c]
cmp cl, 0xff
movzx edx, cl
cmove edx, eax
mov byte [0x10115c7d], cl
mov dword [esp + 0x1c], edx
lea ecx, [esp + 0x50]
push ecx
and dl, 1
lea eax, [esi + 0x2c]
mov byte [esp + 0x10], dl
mov ecx, 2
push eax
push dword [esp + 0x14]
mov dword [esp + 0x40], eax
lea eax, [edi + 0x70]
mov edx, eax
call fcn.10057040
add esp, 0xc
test al, al
jne 0x10059783
push str.Unable_to_read_old_default_gateway_and_delete_old_default_routes.
call fcn.10056110
add esp, 4
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x4e4]
xor ecx, esp
call fcn.100908e7
mov esp, ebp
pop ebp
ret 8
lea eax, [esp + 0x70]
mov ecx, 0x17
push eax
lea eax, [esi + 0x2c]
push eax
push dword [esp + 0x14]
lea edx, [edi + 0x70]
call fcn.10057040
add esp, 0xc
test al, al
jne 0x100597b1
push str.Unable_to_read_old_default_gateway_and_delete_old_default_routes_for_IPv6.
call fcn.10056110
add esp, 4
cmp byte [esp + 0xc], 0
je 0x1005989c
push str.Blocking_all_regular_Internet_traffic_using_routing_rules
call fcn.100561a0
add esp, 4
lea eax, [esp + 0x28]
push eax
push 1
call dword [sym.imp.IPHLPAPI.DLL_ConvertInterfaceIndexToLuid]
test eax, eax
jne 0x1005988f
mov eax, dword [esp + 0x2c]
xor ecx, ecx
shr eax, 0x10
cmp eax, 0x18
jne 0x1005988f
or byte [0x1011582f], 1
lea eax, [esp + 0x28]
push ecx
push eax
lea eax, [esp + 0x48]
xorps xmm0, xmm0
push eax
mov ecx, 2
movaps xmmword [esp + 0x4c], xmm0
call fcn.10058b40
add esp, 0xc
test al, al
jne 0x10059847
push str.Unable_to_add_routes_for_route_based_blocking.
call fcn.10056110
add esp, 4
xor ecx, ecx
call fcn.1005bef0
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x4e4]
xor ecx, esp
call fcn.100908e7
mov esp, ebp
pop ebp
ret 8
push ecx
lea eax, [esp + 0x2c]
mov ecx, 0x17
push eax
lea eax, [esp + 0x48]
push eax
call fcn.10058b40
add esp, 0xc
test al, al
jne 0x1005989c
push str.Unable_to_add_IPv6_routes_for_route_based_blocking.
call fcn.10056110
add esp, 4
xor ecx, ecx
call fcn.1005bef0
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x4e4]
xor ecx, esp
call fcn.100908e7
mov esp, ebp
pop ebp
ret 8
push str.Unable_to_get_localhost_luid___while_adding_route_based_blocking.
call fcn.10056110
add esp, 4
mov eax, dword [esp + 0x1c]
test al, 2
je 0x10059906
push str.Blocking_all_regular_Internet_traffic_using_firewall_rules
call fcn.100561a0
mov al, byte [esp + 0x20]
add esp, 4
or byte [0x1011582f], 2
shr al, 5
and al, 1
movzx eax, al
push eax
lea eax, [edi + 0x70]
mov ecx, eax
call fcn.100532b0
add esp, 4
test al, al
jne 0x10059902
push str.Unable_to_activate_firewall_based_kill_switch
call fcn.10056110
add esp, 4
xor ecx, ecx
call fcn.1005bef0
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x4e4]
xor ecx, esp
call fcn.100908e7
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esp + 0x1c]
movzx ecx, al
call fcn.1005bef0
mov edx, dword [esp + 0x20]
or edx, 1
cmp edx, dword [esp + 0x18]
lea eax, [edx + 1]
cmovne eax, edx
cmp byte [edi + 0x4a], 0
bswap eax
mov dword [edi + 0x4c], eax
je 0x100599c1
mov al, byte [edi + 0x4b]
lea ecx, [edi + 0x50]
movups xmm0, xmmword [edi + 0x3a]
movzx eax, al
mov dword [esp + 0x20], eax
movups xmmword [ecx], xmm0
lea esi, [eax + 7]
mov eax, 0x10
shr esi, 3
sub eax, esi
add ecx, esi
push eax
push 0
push ecx
mov dword [esp + 0x34], ecx
call fcn.100a8dc0
add esp, 0xc
test esi, esi
je 0x100599bd
mov ecx, dword [esp + 0x20]
mov eax, 0xff
and ecx, 7
mov esi, 0xc
sar eax, cl
mov ecx, dword [esp + 0x28]
not al
and byte [ecx - 1], al
lea ecx, [edi + 0x50]
mov al, byte [ecx + 0xf]
lea edx, [ecx + 0xf]
or al, 1
mov dword [esp + 0x20], edx
mov byte [edx], al
lea edx, [edi + 0x3a]
mov byte [esp + 0x17], al
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x100599bd
add ecx, 4
add edx, 4
sub esi, 4
jae 0x100599a0
mov ecx, dword [esp + 0x20]
mov al, byte [esp + 0x17]
xor al, 3
mov byte [ecx], al
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
mov esi, dword [esi + 0x20]
cmp esi, dword [eax + 0x24]
je 0x10059a2e
nop dword [eax]
mov edx, dword [esp + 0x3c]
mov ecx, esi
call fcn.10053970
test al, al
jne 0x10059a22
mov al, byte [esi + 0x10]
cmp al, 0x20
jne 0x100599f8
lea eax, [edi + 8]
mov ecx, 2
push eax
lea eax, [edi + 0x70]
push eax
lea eax, [edi + 0x4c]
jmp 0x10059a12
cmp al, 0x80
jne 0x10059a22
cmp byte [edi + 0x4a], 0
je 0x10059a22
lea eax, [edi + 8]
mov ecx, 0x17
push eax
lea eax, [edi + 0x70]
push eax
lea eax, [edi + 0x50]
push eax
movzx eax, byte [esi + 0x11]
mov edx, esi
push eax
call fcn.10056cd0
add esp, 0x10
mov eax, dword [esp + 0x10]
add esi, 0x12
cmp esi, dword [eax + 0x24]
jne 0x100599d0
mov esi, dword [esp + 0x34]
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], eax
mov esi, dword [esi]
cmp esi, dword [ecx + 0x30]
je 0x10059aea
mov dl, byte [esi + 0x10]
cmp dl, 0x20
jne 0x10059a88
cmp byte [esp + 0x68], 0
je 0x10059a7a
lea eax, [edi + 8]
mov edx, esi
push eax
lea eax, [esp + 0x64]
mov ecx, 2
push eax
lea eax, [esp + 0x58]
push eax
movzx eax, byte [esi + 0x11]
push eax
call fcn.10056cd0
add esp, 0x10
jmp 0x10059ad6
test al, 1
jne 0x10059ade
or eax, 1
push str.Unable_to_read_old_ipv4_default_gateway
jmp 0x10059aca
cmp dl, 0x80
jne 0x10059ade
cmp byte [esp + 0x88], 0
je 0x10059abe
lea eax, [edi + 8]
mov edx, esi
push eax
lea eax, [esp + 0x84]
mov ecx, 0x17
push eax
lea eax, [esp + 0x78]
push eax
movzx eax, byte [esi + 0x11]
push eax
call fcn.10056cd0
add esp, 0x10
jmp 0x10059ad6
test al, 2
jne 0x10059ade
or eax, 2
push str.Unable_to_read_old_ipv6_default_gateway
mov dword [esp + 0x10], eax
call fcn.10056110
add esp, 4
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
add esi, 0x12
cmp esi, dword [ecx + 0x30]
jne 0x10059a47
push dword [edi + 0x78]
mov esi, dword [sym.imp.IPHLPAPI.DLL_FlushIpNetTable2]
push 2
call esi
test eax, eax
je 0x10059b03
push eax
push str.FlushIpNetTable_failed:_0x_X
jmp 0x10059b43
cmp byte [edi + 0x4a], 0
je 0x10059b14
push dword [edi + 0x78]
push 0x17
call esi
test eax, eax
jne 0x10059afb
mov eax, dword [esp + 0x10]
add eax, 0x44
push eax
call fcn.10059df0
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x4e4]
xor ecx, esp
call fcn.100908e7
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esp + 0x1c]
push edx
push str.Unable_to_determine_interface_luid_for__s.
call fcn.10056110
mov ecx, dword [esp + 0x4f4]
add esp, 8
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.100908e7
mov esp, ebp
pop ebp
ret 8
call fcn.10090dc5
int3