Function at 0x4661f0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x55ca98]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
je 0x46630b
test edi, edi
je 0x46630b
movzx eax, word [eax + 8]
sub eax, 2
je 0x46638a
sub eax, 0x15
jne 0x46630b
mov esi, dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [ebp - 0x68]
push eax
push 0x55f398
push 0x17
call esi
test eax, eax
je 0x466433
lea eax, [ebp - 0x58]
push eax
push 0x55f3e0
push 0x17
call esi
test eax, eax
je 0x466433
mov eax, dword [edi]
xor ebx, ebx
mov dword [ebp - 0x70], eax
test eax, eax
je 0x46630b
mov eax, dword [edi + 8]
mov dword [ebp - 0x6c], eax
lea edi, [eax + 0x30]
cmp byte [edi], 0xfe
jne 0x46628f
mov al, byte [edi + 1]
and al, 0xc0
cmp al, 0x80
jne 0x46628f
mov ecx, dword [0x55f3dc]
mov al, 1
jmp 0x466297
mov ecx, dword [0x55f424]
xor al, al
mov esi, ecx
mov dword [ebp - 0x74], ecx
shr esi, 3
lea edx, [ebp - 0x68]
test al, al
lea ecx, [ebp - 0x58]
cmovne ecx, edx
mov edx, edi
sub esi, 4
jb 0x4662c2
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x4662c7
add edx, 4
add ecx, 4
sub esi, 4
jae 0x4662b1
cmp esi, 0xfffffffc
je 0x4662f4
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x46631e
cmp esi, 0xfffffffd
je 0x4662f4
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x46631e
cmp esi, 0xfffffffe
je 0x4662f4
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x46631e
cmp esi, 0xffffffff
je 0x4662f4
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
jne 0x46631e
add dword [ebp - 0x6c], 0xa8
inc ebx
add edi, 0xa8
cmp ebx, dword [ebp - 0x70]
jb 0x466277
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005091c5
mov esp, ebp
pop ebp
ret
push 0x41
lea eax, [ebp - 0x48]
push eax
push edi
push 0x17
call sub.WS2_32.dll_inet_ntop
mov eax, dword [ebp - 0x6c]
cmp byte [eax + 0x30], 0xfe
jne 0x466342
mov al, byte [eax + 0x31]
and al, 0xc0
cmp al, 0x80
jne 0x466342
mov cl, 1
jmp 0x466344
xor cl, cl
push dword [ebp - 0x74]
test cl, cl
mov eax, 0x55f398
mov edx, 0x55f3e0
cmove eax, edx
push eax
lea eax, [ebp - 0x48]
push eax
push str.DeliveryURL__s_is_invalid._nIt_is_not_in_the_expected_network_segment__IPv6:__s__prefix:__d__n
push 0x520
push str.D:UsersphiliDropboxDevelopmentlibpupnppupnpupnp_srcgenagena_device.c
push 2
push 0
call fcn.0040d4d0
add esp, 0x20
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005091c5
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [ebp - 0x7c]
push eax
push 0x55f364
push 2
call esi
test eax, eax
je 0x466433
lea eax, [ebp - 0x78]
push eax
push 0x55f37c
push 2
call esi
test eax, eax
je 0x466433
mov ebx, dword [edi]
xor esi, esi
test ebx, ebx
je 0x46630b
mov eax, dword [ebp - 0x78]
mov ecx, eax
and ecx, dword [ebp - 0x7c]
mov edx, dword [edi + 8]
mov edi, ecx
add edx, 0x2c
mov ecx, dword [edx]
and ecx, eax
cmp ecx, edi
jne 0x4663fc
inc esi
add edx, 0xa8
cmp esi, ebx
jb 0x4663d6
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005091c5
mov esp, ebp
pop ebp
ret
push 0x41
lea eax, [ebp - 0x48]
push eax
push edx
push 2
call sub.WS2_32.dll_inet_ntop
push 0x55f37c
push 0x55f364
lea eax, [ebp - 0x48]
push eax
push str.DeliveryURL__s_is_invalid._nIt_is_not_in_the_expected_network_segment__IPv4:__s__netmask:__s__n
push 0x4f6
push str.D:UsersphiliDropboxDevelopmentlibpupnppupnpupnp_srcgenagena_device.c
push 2
push 0
call fcn.0040d4d0
add esp, 0x20
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005091c5
mov esp, ebp
pop ebp
ret