Function at 0x401550
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]
sub esp, 8
mov dword [ebp - 0x3b8], eax
test eax, eax
jne 0x401841
cmp dword [ebp + 8], 1
jle 0x401600
mov eax, dword [ebx + 4]
mov dword [esp], 0x403066
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
je 0x4015d5
mov eax, dword [ebx + 4]
mov dword [esp], 0x40306c
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll__wcsicmp]
test eax, eax
jne 0x4015cb
mov edx, dword [ebx + 8]
test edx, edx
je 0x401871
mov eax, 0x66
call dbg.ipconfig_message
mov eax, 0x65
call dbg.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 dbg.get_adapters
mov dword [ebp - 0x3c0], eax
test eax, eax
je 0x401d49
mov ebx, eax
mov eax, dword [ebx + 0x40]
mov esi, dword [ebx + 0x28]
lea edi, [ebp - 0x2a4]
call dbg.iftype_to_string
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], 0x67
call sym._ipconfig_message_printfW.constprop.1
mov dword [esp], 0x403076
call dbg.ipconfig_printfW
mov edx, dword [ebx + 0x20]
mov eax, 0x6a
call dbg.print_field
mov esi, dword [ebx + 0x10]
test esi, esi
jne 0x401671
jmp 0x401720
cmp dx, 0x17
je 0x4016c4
mov esi, dword [esi + 8]
test esi, esi
je 0x401720
mov eax, dword [esi + 0xc]
movzx edx, word [eax]
cmp dx, 2
jne 0x401660
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 0x401666
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 0x401666
mov edx, edi
mov eax, 0x79
call dbg.print_field
mov esi, dword [esi + 8]
test esi, esi
jne 0x401671
lea esi, [esi]
lea esi, [esi]
mov eax, dword [ebx + 0xa4]
test eax, eax
jne 0x401773
mov edx, 0x4030e8
mov eax, 0x78
call dbg.print_field
mov dword [esp], 0x403076
call dbg.ipconfig_printfW
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401615
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 0x401739
mov edi, dword [edi + 8]
test edi, edi
je 0x401739
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 dbg.ipconfig_printfW
jmp 0x4017d0
mov edx, edi
mov eax, 0x6b
call dbg.print_field
jmp 0x401666
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 dbg.print_field
jmp 0x4017be
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 0x401c01
call dbg.get_adapters
mov dword [ebp - 0x3d0], eax
test eax, eax
je 0x401d49
mov edi, eax
lea eax, [ebp - 0x3ac]
mov dword [ebp - 0x3bc], eax
lea esi, [esi]
nop
mov eax, dword [edi + 0x40]
mov ebx, dword [edi + 0x28]
call dbg.iftype_to_string
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], 0x67
call sym._ipconfig_message_printfW.constprop.1
mov dword [esp], 0x403076
call dbg.ipconfig_printfW
mov edx, dword [edi + 0x20]
mov eax, 0x6a
call dbg.print_field
mov edx, dword [edi + 0x24]
mov eax, 0x73
call dbg.print_field
mov esi, dword [edi + 0x34]
test esi, esi
je 0x401b15
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 dbg.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 dbg.swprintf
mov edx, dword [ebp - 0x3bc]
mov eax, 0x74
lea ebx, [ebp - 0x2a4]
call dbg.print_field
mov eax, dword [edi + 0x38]
and eax, 4
call dbg.boolean_to_string
mov edx, eax
mov eax, 0x75
call dbg.print_field
mov esi, dword [edi + 0x10]
test esi, esi
jne 0x401a11
jmp 0x401ac0
cmp dx, 0x17
je 0x401a64
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 0x401b04
mov eax, dword [esi + 0xc]
movzx edx, word [eax]
cmp dx, 0x17
jne 0x401a06
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 dbg.print_field
mov esi, dword [esi + 8]
test esi, esi
jne 0x401a11
lea esi, [esi]
lea esi, [esi]
mov eax, dword [edi + 0xa4]
test eax, eax
jne 0x401b23
mov edx, 0x4030e8
mov eax, 0x78
call dbg.print_field
mov dword [esp], 0x403076
call dbg.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 0x40175f
mov edx, ebx
mov eax, 0x6b
call dbg.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 0x401bf0
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 0x401b97
mov edi, dword [edi + 8]
test edi, edi
je 0x401be4
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 0x401b90
mov dword [esp + 4], ebx
mov dword [esp], str._________________________________________1_n
call dbg.ipconfig_printfW
mov edi, dword [edi + 8]
test edi, edi
jne 0x401b97
mov edi, dword [ebp - 0x3c4]
jmp 0x401ad9
mov edx, ebx
mov eax, 0x78
call dbg.print_field
jmp 0x401b6e
mov eax, dword [ebp - 0x3b4]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
test eax, eax
je 0x401d49
mov dword [esp + 4], esi
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
je 0x401c40
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x401896
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 dbg.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 dbg.print_field
mov eax, dword [edi + 0x134]
sub eax, 1
cmp eax, 7
ja 0x401ce2
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 dbg.print_field
mov eax, dword [edi + 0x23c]
call dbg.boolean_to_string
mov edx, eax
mov eax, 0x72
call dbg.print_field
mov dword [esp], 0x403076
call dbg.ipconfig_printfW
jmp 0x401c2a
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_exit]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop