Function at 0x401540
Capabilities:
Get networking parameters
Initialize winsock library
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x19c]
push ebx
sub esp, 0x3dc
mov ebx, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0x202
call dword [sym.imp.ws2_32.dll_WSAStartup]
mov dword [ebp - 0x3b8], eax
sub esp, 8
test eax, eax
jne 0x401848
cmp dword [ebp + 8], 1
jle 0x4015f0
mov eax, dword [ebx + 4]
mov dword [esp], 0x402066
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
je 0x4015c5
mov eax, dword [ebx + 4]
mov dword [esp], 0x40206c
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
jne 0x4015bb
mov edx, dword [ebx + 8]
test edx, edx
je 0x401878
mov eax, 0x66
call sym._ipconfig_message
mov eax, 0x65
call sym._ipconfig_message
call dword [sym.imp.ws2_32.dll_WSACleanup]
mov dword [ebp - 0x3b8], 1
mov eax, dword [ebp - 0x3b8]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._get_adapters
mov dword [ebp - 0x3c0], eax
test eax, eax
je 0x401d59
mov ebx, eax
lea esi, [esi]
mov eax, dword [ebx + 0x40]
mov esi, dword [ebx + 0x28]
lea edi, [ebp - 0x2a4]
call sym._iftype_to_string
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], 0x67
call sym._ipconfig_message_printfW.constprop.0
mov dword [esp], 0x402076
call sym._ipconfig_printfW
mov edx, dword [ebx + 0x20]
mov eax, 0x6a
call sym._print_field
mov esi, dword [ebx + 0x10]
test esi, esi
jne 0x401669
jmp 0x401718
cmp dx, 0x17
je 0x4016c0
mov esi, dword [esi + 8]
test esi, esi
je 0x401718
mov eax, dword [esi + 0xc]
movzx edx, word [eax]
cmp dx, 2
jne 0x401658
mov edx, dword [esi + 0x10]
lea ecx, [ebp - 0x3ac]
mov dword [esp + 0xc], edi
mov dword [ebp - 0x3ac], 0x36
mov dword [esp + 0x10], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_WSAAddressToStringW]
sub esp, 0x14
test eax, eax
je 0x401830
mov eax, dword [esi + 0xc]
movzx edx, word [eax]
cmp dx, 0x17
jne 0x40165e
lea esi, [esi]
mov edx, dword [esi + 0x10]
lea ecx, [ebp - 0x3ac]
mov dword [esp + 0xc], edi
mov dword [ebp - 0x3ac], 0x36
mov dword [esp + 0x10], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_WSAAddressToStringW]
sub esp, 0x14
test eax, eax
jne 0x40165e
mov edx, edi
mov eax, 0x79
call sym._print_field
mov esi, dword [esi + 8]
test esi, esi
jne 0x401669
lea esi, [esi]
mov eax, dword [ebx + 0xa4]
test eax, eax
jne 0x401770
mov edx, 0x4020e8
mov eax, 0x78
call sym._print_field
mov dword [esp], 0x402076
call sym._ipconfig_printfW
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401608
mov eax, dword [ebp - 0x3c0]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
call dword [sym.imp.ws2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x3b8]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
lea ecx, [ebp - 0x3ac]
lea esi, [ebp - 0x2a4]
mov dword [ebp - 0x3ac], 0x36
mov dword [esp + 4], eax
mov eax, dword [sym.imp.ws2_32.dll_WSAAddressToStringW]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp], edx
mov dword [ebp - 0x3bc], eax
call eax
sub esp, 0x14
test eax, eax
je 0x401860
mov eax, dword [ebx + 0xa4]
mov edi, dword [eax + 8]
test edi, edi
jne 0x4017db
jmp 0x401731
mov edi, dword [edi + 8]
test edi, edi
je 0x401731
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
lea ecx, [ebp - 0x3ac]
mov dword [esp + 0xc], esi
mov dword [ebp - 0x3ac], 0x36
mov dword [esp], eax
mov eax, dword [ebp - 0x3bc]
mov dword [esp + 0x10], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], edx
call eax
sub esp, 0x14
test eax, eax
jne 0x4017d0
mov dword [esp + 4], esi
mov dword [esp], str._________________________________________1_n
call sym._ipconfig_printfW
jmp 0x4017d0
mov edx, edi
mov eax, 0x6b
call sym._print_field
jmp 0x40165e
mov dword [ebp - 0x3b8], 1
mov eax, dword [ebp - 0x3b8]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, esi
mov eax, 0x78
call sym._print_field
jmp 0x4017bb
lea esi, [ebp - 0x3b4]
mov dword [esp], 0
mov ebx, dword [sym.imp.iphlpapi.dll_GetNetworkParams]
mov dword [esp + 4], esi
call ebx
sub esp, 8
cmp eax, 0x6f
je 0x401c18
call sym._get_adapters
mov dword [ebp - 0x3d0], eax
test eax, eax
je 0x401d59
mov edi, eax
lea eax, [ebp - 0x3ac]
mov dword [ebp - 0x3bc], eax
nop
mov eax, dword [edi + 0x40]
mov ebx, dword [edi + 0x28]
call sym._iftype_to_string
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], 0x67
call sym._ipconfig_message_printfW.constprop.0
mov dword [esp], 0x402076
call sym._ipconfig_printfW
mov edx, dword [edi + 0x20]
mov eax, 0x6a
call sym._print_field
mov edx, dword [edi + 0x24]
mov eax, 0x73
call sym._print_field
mov esi, dword [edi + 0x34]
test esi, esi
je 0x401b20
lea eax, [edi + 0x2c]
mov dword [ebp - 0x3c4], eax
mov eax, esi
sub eax, 1
mov dword [ebp - 0x3c8], eax
mov eax, dword [ebp - 0x3bc]
je 0x40199c
lea eax, [edi + esi + 0x2b]
mov edx, dword [ebp - 0x3bc]
lea ebx, [edi + 0x2c]
mov dword [ebp - 0x3cc], esi
mov dword [ebp - 0x3c0], eax
mov esi, ebx
mov ebx, edx
lea esi, [esi]
movzx eax, byte [esi]
mov dword [esp], ebx
add esi, 1
add ebx, 6
mov dword [esp + 8], str._02X_
mov dword [esp + 0xc], eax
mov dword [esp + 4], 4
call sym._swprintf
cmp dword [ebp - 0x3c0], esi
jne 0x401950
mov esi, dword [ebp - 0x3cc]
mov ebx, dword [ebp - 0x3c8]
add dword [ebp - 0x3c4], ebx
mov ecx, dword [ebp - 0x3bc]
lea eax, [esi + esi*2]
lea eax, [ecx + eax*2 - 6]
mov ecx, dword [ebp - 0x3c4]
movzx edx, byte [ecx]
mov dword [esp + 8], str._02X
mov dword [esp + 4], 3
mov dword [esp + 0xc], edx
mov dword [esp], eax
call sym._swprintf
mov edx, dword [ebp - 0x3bc]
mov eax, 0x74
lea ebx, [ebp - 0x2a4]
call sym._print_field
mov eax, dword [edi + 0x38]
and eax, 4
call sym._boolean_to_string
mov edx, eax
mov eax, 0x75
call sym._print_field
mov esi, dword [edi + 0x10]
test esi, esi
jne 0x401a11
jmp 0x401ac0
cmp dx, 0x17
je 0x401a68
mov esi, dword [esi + 8]
test esi, esi
je 0x401ac0
mov eax, dword [esi + 0xc]
movzx edx, word [eax]
cmp dx, 2
jne 0x401a00
mov edx, dword [esi + 0x10]
lea ecx, [ebp - 0x3b0]
mov dword [esp + 0xc], ebx
mov dword [ebp - 0x3b0], 0x36
mov dword [esp + 0x10], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_WSAAddressToStringW]
sub esp, 0x14
test eax, eax
je 0x401b08
mov eax, dword [esi + 0xc]
movzx edx, word [eax]
cmp dx, 0x17
jne 0x401a06
lea esi, [esi]
mov edx, dword [esi + 0x10]
lea ecx, [ebp - 0x3b0]
mov dword [esp + 0xc], ebx
mov dword [ebp - 0x3b0], 0x36
mov dword [esp + 0x10], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_WSAAddressToStringW]
sub esp, 0x14
test eax, eax
jne 0x401a06
mov edx, ebx
mov eax, 0x79
call sym._print_field
mov esi, dword [esi + 8]
test esi, esi
jne 0x401a11
lea esi, [esi]
mov eax, dword [edi + 0xa4]
test eax, eax
jne 0x401b30
mov edx, 0x4020e8
mov eax, 0x78
call sym._print_field
mov dword [esp], 0x402076
call sym._ipconfig_printfW
mov edi, dword [edi + 8]
test edi, edi
jne 0x4018c0
mov eax, dword [ebp - 0x3d0]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x401757
mov edx, ebx
mov eax, 0x6b
call sym._print_field
jmp 0x401a06
xor eax, eax
mov word [ebp - 0x3ac], ax
jmp 0x4019c1
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
lea ecx, [ebp - 0x3b0]
lea ebx, [ebp - 0x2a4]
mov dword [ebp - 0x3b0], 0x36
mov dword [esp + 4], eax
mov eax, dword [sym.imp.ws2_32.dll_WSAAddressToStringW]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp], edx
mov dword [ebp - 0x3c0], eax
call eax
sub esp, 0x14
test eax, eax
je 0x401c00
mov eax, dword [edi + 0xa4]
mov esi, dword [eax + 8]
test esi, esi
je 0x401ad9
mov dword [ebp - 0x3c4], edi
mov edi, esi
mov esi, dword [ebp - 0x3c0]
jmp 0x401ba7
mov edi, dword [edi + 8]
test edi, edi
je 0x401bf4
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x3b0]
mov dword [esp + 0xc], ebx
mov dword [ebp - 0x3b0], 0x36
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0
mov dword [esp + 4], ecx
mov dword [esp], eax
call esi
sub esp, 0x14
test eax, eax
jne 0x401ba0
mov dword [esp + 4], ebx
mov dword [esp], str._________________________________________1_n
call sym._ipconfig_printfW
mov edi, dword [edi + 8]
test edi, edi
jne 0x401ba7
mov edi, dword [ebp - 0x3c4]
jmp 0x401ad9
mov edx, ebx
mov eax, 0x78
call sym._print_field
jmp 0x401b7b
mov eax, dword [ebp - 0x3b4]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
test eax, eax
je 0x401d59
mov dword [esp + 4], esi
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
je 0x401c50
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x40189d
lea esi, [ebp - 0x3ac]
mov ebx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 8], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 0x84
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call ebx
mov edx, esi
mov eax, 0x6c
lea esi, [ebp - 0x2a4]
sub esp, 0x18
call sym._print_field
lea eax, [edi + 0x84]
mov dword [esp + 0x14], 0x84
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call ebx
mov eax, 0x7a
mov edx, esi
mov ebx, 0x69
sub esp, 0x18
call sym._print_field
mov eax, dword [edi + 0x134]
sub eax, 1
cmp eax, 7
ja 0x401cf2
mov ebx, dword [eax*4 + str.noipiiiq]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 4], ebx
mov dword [esp + 0xc], 0x32
mov dword [esp + 8], 0x4040a0
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
mov edx, 0x4040a0
mov eax, 0x6d
sub esp, 0x10
call sym._print_field
mov eax, dword [edi + 0x23c]
call sym._boolean_to_string
mov edx, eax
mov eax, 0x72
call sym._print_field
mov dword [esp], 0x402076
call sym._ipconfig_printfW
jmp 0x401c41
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_exit]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop