Function at 0x417940
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x586f0c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x8c], edi
call fcn.004c17d7
mov esi, eax
add esp, 4
test esi, esi
jne 0x417986
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bf32e
mov esp, ebp
pop ebp
ret
push ebx
push 0x2f
push esi
call fcn.004be370
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4179a3
or edi, 0xffffffff
mov dword [ebp - 0x88], edi
jmp 0x4179f3
mov byte [ebx], 0
inc ebx
call fcn.004bdedf
lea ecx, [ebp - 0xa4]
push ecx
push ebx
mov dword [eax], 0
call fcn.00416a40
add esp, 8
mov dword [ebp - 0x88], eax
call fcn.004bdedf
cmp dword [eax], 0
jne 0x417d6b
mov eax, dword [ebp - 0xa4]
cmp byte [eax], 0
jne 0x417d6b
cmp eax, ebx
je 0x417d6b
mov edi, dword [ebp - 0x88]
push 0x88
call fcn.00415f00
mov ebx, eax
push 0x80
lea edx, [ebx + 4]
push 0
push edx
call fcn.004bfd10
push ebx
mov eax, esi
call fcn.00417470
add esp, 0x14
test eax, eax
je 0x417aaf
cmp edi, 0x20
jle 0x417a5b
mov eax, dword [ebp - 0x8c]
push eax
push str.Illegal_netmask_in___s_._Must_be_between_0_and_32._n
call dword [0x580448]
push esi
call fcn.004be321
push ebx
call fcn.004be321
add esp, 0x10
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bf32e
mov esp, ebp
pop ebp
ret
mov eax, edi
call fcn.004176f0
mov eax, edi
test edi, edi
jg 0x417a6d
mov eax, 0x20
push eax
push esi
push str.Add_IPv4_range__s__ld_to_addrset._n
call dword [0x58044c]
mov eax, dword [ebp - 0x98]
mov dword [ebx], 0
mov ecx, dword [eax]
mov dword [ebx + 0x84], ecx
push esi
mov dword [eax], ebx
call fcn.004be321
add esp, 0x10
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bf32e
mov esp, ebp
pop ebp
ret
push ebx
call fcn.004be321
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push edx
push eax
push esi
lea eax, [ebp - 0x94]
call fcn.00417350
add esp, 0x10
test eax, eax
je 0x417aff
push eax
call fcn.00417120
push eax
push esi
push str.Error_resolving_name___s_:__s_n
call dword [0x580448]
push esi
call fcn.004be321
add esp, 0x14
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bf32e
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x94], 0
jne 0x417b17
push esi
push str.Warning:_no_addresses_found_for__s._n
call dword [0x580448]
add esp, 8
push esi
call fcn.004be321
mov edi, dword [ebp - 0x94]
add esp, 4
test edi, edi
je 0x417d39
mov edi, edi
push 0x88
call fcn.00415f00
mov esi, eax
push 0x80
lea ebx, [esi + 4]
push 0
push ebx
call fcn.004bfd10
mov eax, dword [0x58aee0]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x18]
add esp, 0x10
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x9c], edx
test eax, eax
jne 0x417b76
push 1
call fcn.00401032
mov dword [0x58aee0], eax
mov edx, dword [ebp - 0xa0]
push 2
push 0
push 0
push 0x80
lea ecx, [ebp - 0x84]
push ecx
mov ecx, dword [ebp - 0x9c]
push edx
push ecx
call eax
push eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x417c6a
mov eax, dword [edi + 0x18]
mov dword [esi], 0
mov cl, byte [eax + 4]
mov dl, byte [eax + 6]
mov bl, byte [eax + 5]
mov al, byte [eax + 7]
mov byte [ebp - 0x8e], dl
movzx ecx, cl
mov byte [ebp - 0x8d], al
mov edx, ecx
shr edx, 5
and ecx, 0x1f
lea edx, [esi + edx*4 + 4]
mov eax, 1
shl eax, cl
movzx ecx, bl
or dword [edx], eax
mov edx, ecx
shr edx, 5
and ecx, 0x1f
lea edx, [esi + edx*4 + 0x24]
mov eax, 1
shl eax, cl
movzx ecx, byte [ebp - 0x8e]
or dword [edx], eax
mov edx, ecx
and ecx, 0x1f
shr edx, 5
mov eax, 1
shl eax, cl
movzx ecx, byte [ebp - 0x8d]
or dword [esi + edx*4 + 0x44], eax
lea edx, [esi + edx*4 + 0x44]
mov edx, ecx
shr edx, 5
lea eax, [esi + edx*4 + 0x64]
and ecx, 0x1f
mov edx, 1
shl edx, cl
or dword [eax], edx
mov eax, dword [ebp - 0x88]
cmp eax, 0x20
jg 0x417d4f
mov ebx, esi
call fcn.004176f0
mov eax, dword [ebp - 0x88]
test eax, eax
jg 0x417c5b
mov eax, 0x20
push eax
lea eax, [ebp - 0x84]
push eax
push str.Add_IPv4__s__ld_to_addrset._n
jmp 0x417cc4
cmp eax, 0x17
jne 0x417cdf
mov eax, dword [edi + 0x18]
mov dword [esi], 1
mov ecx, dword [eax + 8]
mov dword [ebx], ecx
mov edx, dword [eax + 0xc]
mov dword [ebx + 4], edx
mov ecx, dword [eax + 0x10]
mov dword [ebx + 8], ecx
mov edx, dword [eax + 0x14]
mov eax, dword [ebp - 0x88]
mov dword [ebx + 0xc], edx
cmp eax, 0x80
jg 0x417d5d
lea ebx, [esi + 0x14]
call fcn.00417760
mov eax, dword [ebp - 0x88]
test eax, eax
jg 0x417cb7
mov eax, 0x80
push eax
lea eax, [ebp - 0x84]
push eax
push str.Add_IPv6__s__ld_to_addrset._n
call dword [0x58044c]
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax]
mov dword [esi + 0x84], ecx
add esp, 0xc
mov dword [eax], esi
jmp 0x417d0a
mov edx, dword [edi + 0xc]
mov ecx, dword [edi + 8]
push edx
mov edx, dword [ebp - 0x8c]
push ecx
push eax
push edx
lea eax, [ebp - 0x84]
push eax
push str.ignoring_address__s_for__s._Family__d_socktype__d_protocol__d._n
call dword [0x58044c]
push esi
call fcn.004be321
add esp, 0x1c
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x417b30
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x417d39
mov esi, eax
mov eax, dword [0x58aee4]
test eax, eax
jne 0x417d36
push 2
call fcn.00401032
mov dword [0x58aee4], eax
push esi
call eax
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bf32e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x8c]
push ecx
push str.Illegal_netmask_in___s_._Must_be_between_0_and_32._n
jmp 0x417d71
mov edx, dword [ebp - 0x8c]
push edx
push str.Illegal_netmask_in___s_._Must_be_between_0_and_128._n
jmp 0x417d71
push edi
push str.Error_parsing_netmask_in___s_._n
call dword [0x580448]
push esi
call fcn.004be321
mov ecx, dword [ebp - 4]
add esp, 0xc
pop ebx
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004bf32e
mov esp, ebp
pop ebp
ret