Function at 0x406041
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
call dbg.is_ipv6_supported
mov dword [ebp - 0x14], eax
call dbg.set_empty_options
add dword [ebp + 8], 4
mov dword [ebp - 0x10], 1
jmp 0x4066e4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 4], str.__all
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x4060a8
mov dword [esp], 0xff
call dbg.set_option
mov dword [esp], 0xff
call dbg.clean_opt_mac
jmp 0x4067a8
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 4], 0x41112b
mov dword [esp], eax
call sym._strcmp
test eax, eax
je 0x4060da
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 4], str.__version
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x4060e4
call dbg.version
jmp 0x4067a8
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 4], 0x411138
mov dword [esp], eax
call sym._strcmp
test eax, eax
je 0x406116
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 4], str.__help
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x406127
mov dword [esp], 0
call dbg.usage
jmp 0x4067a8
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x10], 1
jne 0x406162
mov dword [esp + 4], 0x411142
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x406162
mov dword [0x416058], 0
jmp 0x4063e4
cmp dword [ebp - 0x10], 1
jne 0x40618e
mov dword [esp + 4], 0x411146
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x40618e
mov dword [0x416058], 1
jmp 0x4063e4
cmp dword [ebp - 0x10], 1
jne 0x4061ba
mov dword [esp + 4], str.clean
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x4061ba
mov dword [0x416058], 2
jmp 0x4063e4
cmp dword [ebp - 0x10], 1
jne 0x4061e6
mov dword [esp + 4], str.restart
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x4061e6
mov dword [0x416058], 3
jmp 0x4063e4
mov dword [esp + 4], 0x411158
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._strcmp
test eax, eax
je 0x406214
mov dword [esp + 4], str.__verbose
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x406223
mov dword [0x41604c], 1
jmp 0x4063e4
mov dword [esp + 4], 0x411165
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._strcmp
test eax, eax
je 0x406251
mov dword [esp + 4], str.__debug
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x406260
mov dword [0x416050], 1
jmp 0x4063e4
mov dword [esp + 4], str.__gateway
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x406283
mov dword [ebp - 0xc], 1
jmp 0x4063e4
mov dword [esp + 4], str.__dns
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x4062a6
mov dword [ebp - 0xc], 2
jmp 0x4063e4
mov dword [esp + 4], str.__search_domain
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x4062c9
mov dword [ebp - 0xc], 4
jmp 0x4063e4
mov dword [esp + 4], str.__dhcp
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x4062ec
mov dword [ebp - 0xc], 0x10
jmp 0x4063e4
mov dword [esp + 4], str.__dhcpv6
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x40630f
mov dword [ebp - 0xc], 0x40
jmp 0x4063e4
mov dword [esp + 4], str.__ip
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x406332
mov dword [ebp - 0xc], 8
jmp 0x4063e4
mov dword [esp + 4], str.__default_route
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x406355
mov dword [ebp - 0xc], 1
jmp 0x4063e4
mov dword [esp + 4], str.__route
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x406375
mov dword [ebp - 0xc], 0x20
jmp 0x4063e4
mov dword [esp + 4], str.__hostname
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x406395
mov dword [ebp - 0xc], pe_nt_image_headers32
jmp 0x4063e4
mov dword [esp + 4], str.__compare
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x4063b8
mov dword [0x416054], 1
jmp 0x4063e4
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Unknown_argument__s
mov dword [esp], 0
call dbg.error
mov dword [esp], 1
call dbg.usage
jmp 0x4067a8
add dword [ebp + 8], 4
add dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0
je 0x406463
mov eax, dword [0x416058]
test eax, eax
jne 0x406463
mov eax, dword [ebp - 0xc]
and eax, 0x7b
test eax, eax
je 0x406443
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
je 0x406438
mov eax, dword [ebp + 8]
mov eax, dword [eax]
movzx eax, byte [eax]
cmp al, 0x2d
je 0x406438
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dbg.add_opt_mac
add dword [ebp + 8], 4
add dword [ebp - 0x10], 1
jmp 0x406443
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dbg.set_option
mov eax, dword [ebp - 0xc]
and eax, 0x84
test eax, eax
je 0x4066e4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dbg.set_option
jmp 0x4066e4
cmp dword [ebp - 0xc], 0
je 0x4066e4
mov eax, dword [0x416058]
cmp eax, 1
jne 0x4066e4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
je 0x406490
mov eax, dword [ebp + 8]
mov eax, dword [eax]
movzx eax, byte [eax]
cmp al, 0x2d
jne 0x4064bc
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.MAC_or_value_should_be_specified_for__s
mov dword [esp], 0
call dbg.error
mov dword [esp], 1
call dbg.usage
jmp 0x4067a8
mov eax, dword [ebp - 0xc]
and eax, 0x7b
test eax, eax
je 0x4066b1
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
add dword [ebp + 8], 4
add dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0x10
je 0x4064ea
cmp dword [ebp - 0xc], 0x40
jne 0x4065ff
mov dword [esp + 4], 0x10
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dbg.get_opt_mac
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x40656b
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x40656b
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], 0x411212
mov dword [esp], eax
call sym._strcmp
test eax, eax
je 0x406544
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], 0x411214
mov dword [esp], eax
call sym._strcmp
test eax, eax
jne 0x40656b
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sym._free
mov dword [esp], 0x411216
mov eax, dword [sym.imp.msvcrt.dll__strdup]
call eax
mov edx, dword [ebp - 0x24]
mov dword [edx + 0xc], eax
jmp 0x4066e3
cmp dword [ebp - 0x24], 0
je 0x40658a
mov dword [esp + 4], str.Internal_error._Wrong___dhcp_or___dhcpv6_option
mov dword [esp], 0
call dbg.error
jmp 0x4067a8
cmp dword [ebp - 0xc], 0x10
jne 0x4065af
mov dword [esp + 8], 0x411212
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dbg.add_set_opt
jmp 0x4066e3
cmp dword [ebp - 0xc], 0x40
jne 0x4066e3
cmp dword [ebp - 0x14], 0
jne 0x4065df
mov dword [esp + 4], str.IPv6_is_not_supported_on_current_OS
mov dword [esp], 0
call dbg.error
mov dword [esp], 3
call sym._exit
mov dword [esp + 8], 0x411214
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov dword [esp], 0x10
call dbg.add_set_opt
jmp 0x4066e3
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
jne 0x406634
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Value_should_be_specified_for__s
mov dword [esp], 0
call dbg.error
mov dword [esp], 1
call dbg.usage
jmp 0x4067a8
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x14], 0
jne 0x406673
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp], eax
call dbg.is_ipv6_value
test eax, eax
je 0x406673
mov dword [esp + 4], str.IPv6_is_not_supported_on_current_OS
mov dword [esp], 0
call dbg.error
mov dword [esp], 3
call sym._exit
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dbg.add_set_opt
cmp dword [ebp - 0x18], 0
je 0x4066a7
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [ebp - 0x18], eax
je 0x4066a7
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._free
add dword [ebp + 8], 4
add dword [ebp - 0x10], 1
jmp 0x4066e4
mov eax, dword [ebp - 0xc]
and eax, 0x84
test eax, eax
je 0x4066e4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dbg.add_set_opt
add dword [ebp + 8], 4
add dword [ebp - 0x10], 1
jmp 0x4066e4
nop
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
jne 0x406072
mov eax, dword [0x416058]
test eax, eax
jne 0x406721
mov eax, dword [0x416044]
test eax, eax
jne 0x40676d
mov dword [esp], 0x7b
call dbg.count_opt_mac
test eax, eax
jne 0x40676d
mov dword [esp], 0xff
call dbg.set_option
jmp 0x40676d
mov eax, dword [0x416058]
cmp eax, 1
jne 0x40676d
mov dword [esp], 0x7b
call dbg.count_opt_mac
test eax, eax
jne 0x40676d
mov dword [esp], 0x84
call dbg.count_opt_mac
test eax, eax
jne 0x40676d
mov dword [esp + 4], str.Nothing_to_set
mov dword [esp], 0
call dbg.error
mov dword [esp], 0
call dbg.usage
jmp 0x4067a8
mov dword [esp], str.PRL_NETTOOLS_OPT
call sym._getenv
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4067a8
mov dword [esp + 4], str.__compare
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.SHELL32.dll_StrStrIA]
call eax
sub esp, 8
test eax, eax
je 0x4067a8
mov dword [0x416054], 1
leave
ret